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