feat: 月度数据-报表生成添加权限检查

This commit is contained in:
LokerL 2024-12-13 20:41:20 +08:00
parent 54602a8a8d
commit a0de664a5e
1 changed files with 2 additions and 0 deletions

View File

@ -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(() => {