| | |
| | | <div class="equipmentCard"> |
| | | <div class="label">处理率</div> |
| | | <div class="number"> |
| | | {{ warningManage }} |
| | | {{ disposeRate }} |
| | | <div class="downIcon iconfont"></div> |
| | | </div> |
| | | |
| | |
| | | |
| | | <div class="hashRate"> |
| | | <div class="left"> |
| | | <div class="title">预警数据占比:</div> |
| | | <div class="title">整改数据详情</div> |
| | | <div class="info"> |
| | | <div class="equipmentInfo" style="margin-top: 25px"> |
| | | <div class="equipmentCard"> |
| | |
| | | } |
| | | return parseInt(this.solvedTotal / this.tableDataList.length) |
| | | }, |
| | | warningManage() { |
| | | if (this.warningChecked == 0 || this.warningTotal == 0) { |
| | | disposeRate() { |
| | | if (this.solvedTotal == 0 || this.warningTotal == 0) { |
| | | return 0 |
| | | } |
| | | return parseInt((this.warningChecked / this.warningTotal) * 100) + "%" |
| | | return parseInt((this.solvedTotal / this.warningTotal) * 100) + "%" |
| | | }, |
| | | permissionMenuList() { |
| | | let user = JSON.parse(sessionStorage.getItem("userInfo")) |
| | |
| | | }, |
| | | |
| | | { |
| | | 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" |
| | | }, |
| | | |
| | | { |
| | | name: "数据报表", |
| | | icon: "/images/manageCenter/push.png", |
| | | openPath: "/dataReport", |
| | | path: "/dataReport", |
| | | permission: "" |
| | | }, |
| | | |
| | | { |
| | |
| | | }, |
| | | { |
| | | name: "点位变更", |
| | | icon: "/images/manageCenter/manage.png", |
| | | icon: "/images/manageCenter/cam.png", |
| | | openPath: "/invalidCamera", |
| | | path: "/invalidCamera", |
| | | permission: "invalidCamera" |
| | | permission: "positionMng" |
| | | } |
| | | ], |
| | | cameraTree: [], |
| | |
| | | //key 1=误报数据,2=已整改,3=未整改,4=已排查 doc_count=数量 total=总量 |
| | | decodeWarningRate(b64data) { |
| | | if (b64data) { |
| | | this.warningTotal = 0 |
| | | this.warningSolved = 0 |
| | | this.warningChecked = 0 |
| | | this.warningTotal = 0 // 总量 |
| | | this.warningSolved = 0 // 已整改 |
| | | this.warningChecked = 0 //已排查 |
| | | let falseAlarm = 0 // 误报 |
| | | |
| | | let decodeString = Base64.decode(b64data) |
| | | if (decodeString != "") { |
| | | let decodeResult = JSON.parse(decodeString) |
| | | if (decodeResult && decodeResult.total > 0) { |
| | | this.warningTotal = decodeResult.total |
| | | decodeResult.buckets.forEach((element) => { |
| | | switch (element.key) { |
| | | case 1: |
| | | falseAlarm += element.doc_count |
| | | break |
| | | case 2: |
| | | this.warningSolved += element.doc_count |
| | | break |
| | |
| | | break |
| | | } |
| | | }) |
| | | |
| | | // 2023/4/12 修改, 预警总量不统计误报 |
| | | // this.warningTotal = decodeResult.total - falseAlarm |
| | | this.warningTotal = decodeResult.total |
| | | } |
| | | // console.log("WarningRate:", decodeResult) |
| | | } |
| | |
| | | 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() {}, |
| | |
| | | display: flex; |
| | | |
| | | .productItem { |
| | | margin-right: 20px; |
| | | margin: 0px 10px; |
| | | width: 190px; |
| | | height: 90px; |
| | | display: flex; |