diff --git a/ruoyi-ui/src/views/dataStatistics/monthData/create-report.vue b/ruoyi-ui/src/views/dataStatistics/monthData/create-report.vue index 1b5ca58..96185d2 100644 --- a/ruoyi-ui/src/views/dataStatistics/monthData/create-report.vue +++ b/ruoyi-ui/src/views/dataStatistics/monthData/create-report.vue @@ -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(() => {