From a0de664a5e0a1b4d8d1f7e0277951824608df1ba Mon Sep 17 00:00:00 2001 From: LokerL Date: Fri, 13 Dec 2024 20:41:20 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=9C=88=E5=BA=A6=E6=95=B0?= =?UTF-8?q?=E6=8D=AE-=E6=8A=A5=E8=A1=A8=E7=94=9F=E6=88=90=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=9D=83=E9=99=90=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/dataStatistics/monthData/create-report.vue | 2 ++ 1 file changed, 2 insertions(+) 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(() => {