✨ feat: 月度数据-报表生成添加权限检查
This commit is contained in:
parent
54602a8a8d
commit
a0de664a5e
|
@ -71,6 +71,7 @@ import {
|
|||
getDeviceReportMonthList,
|
||||
updateDeviceReportMonth,
|
||||
} from "@/api/statistics/monthData.js";
|
||||
import { checkRole } from "@/utils/permission";
|
||||
|
||||
export default {
|
||||
name: "CreateReport",
|
||||
|
@ -117,6 +118,7 @@ export default {
|
|||
this.dateValue = `${year}-${month}`;
|
||||
},
|
||||
changeAvgValue(index, row) {
|
||||
if (!checkRole(['admin','power'])) return;
|
||||
this.$set(row, "enable_edit", true);
|
||||
this.oldValue = row.avgValue;
|
||||
this.$nextTick(() => {
|
||||
|
|
Loading…
Reference in New Issue