From b73200f9537a39f484708409a6f8840ebb0db82c Mon Sep 17 00:00:00 2001 From: mark <mark18340872469@163.com> Date: 星期二, 27 九月 2022 17:10:16 +0800 Subject: [PATCH] 又改 --- src/views/manageCenter/index.vue | 47 +++++++++++++++++++++-------------------------- 1 files changed, 21 insertions(+), 26 deletions(-) diff --git a/src/views/manageCenter/index.vue b/src/views/manageCenter/index.vue index 4e0abc8..e688e33 100644 --- a/src/views/manageCenter/index.vue +++ b/src/views/manageCenter/index.vue @@ -198,7 +198,7 @@ <el-table-column prop="count" align="center" label="鏁存敼鏁伴噺" show-overflow-tooltip></el-table-column> </el-table> - <el-pagination + <!-- <el-pagination @current-change="refrash" @size-change="handleSizeChange" :current-page="page" @@ -207,7 +207,7 @@ :page-sizes="[5, 10, 15, 20, 25]" :total="solvedTotal" background - ></el-pagination> + ></el-pagination> --> </div> </div> </div> @@ -314,11 +314,19 @@ }, { - name: "鎺ㄩ�佺鐞�", + name: "鐢ㄦ埛绠$悊", icon: "/images/manageCenter/push.png", - openPath: "/report", - path: "/report", - permission: "dataPushMng" + openPath: "/subAccount", + path: "/subAccount", + permission: "accountMng" + }, + + { + name: "鏁版嵁鎺ㄩ��", + icon: "/images/manageCenter/push.png", + openPath: "/dataPush", + path: "/dataPush", + permission: "reportMng" }, { @@ -330,10 +338,10 @@ }, { name: "鐐逛綅鍙樻洿", - icon: "/images/manageCenter/manage.png", + icon: "/images/manageCenter/cam.png", openPath: "/invalidCamera", path: "/invalidCamera", - permission: "invalidCamera" + permission: "positionMng" } ], cameraTree: [], @@ -611,7 +619,7 @@ if (decodeString != "") { let decodeResult = JSON.parse(decodeString) if (decodeResult) { - console.log("warningStatics", decodeResult) + // console.log("warningStatics", decodeResult) decodeResult.forEach((element) => { this.solvedTotal = this.solvedTotal + element.doc_count this.tableDataList.push({ @@ -758,23 +766,10 @@ this.pieChart.setOption(this.pieOption) }, jump(route) { - const userInfo = JSON.parse(sessionStorage.getItem("userInfo")) - - const val = userInfo.permissions.find((item) => { - return item == route.permission + const { href } = this.$router.resolve({ + path: route.path }) - if (val) { - if (route.path === "/search" || route.path === "/dataView") { - const { href } = this.$router.resolve({ - path: route.path - }) - window.open(href, "_blank") - return - } - this.$router.push(route.path) - } else if (!userInfo.parentId) { - this.$router.push(route.openPath) - } + window.open(href, "_blank") }, refrash() {}, handleSizeChange() {}, @@ -868,7 +863,7 @@ display: flex; .productItem { - margin-right: 20px; + margin: 0px 10px; width: 190px; height: 90px; display: flex; -- Gitblit v1.8.0