| | |
| | | return this.productList |
| | | } |
| | | |
| | | return this.productList.filter(item => { |
| | | return this.productList.filter((item) => { |
| | | return user.permissions.indexOf(item.permission) >= 0 |
| | | }) |
| | | |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | }, |
| | | { |
| | | name: "ç»è®¡åæ", |
| | | icon: "/images/manageCenter/search.png", |
| | | icon: "/images/manageCenter/datav.png", |
| | | openPath: "/dataView", |
| | | path: "/dataView", |
| | | permission: "dataViewMng" |
| | |
| | | |
| | | { |
| | | name: "æ¨é管ç", |
| | | icon: "/images/manageCenter/manage2.png", |
| | | icon: "/images/manageCenter/push.png", |
| | | openPath: "/report", |
| | | path: "/report", |
| | | permission: "dataPushMng" |
| | |
| | | |
| | | { |
| | | name: "宿¶çæ§", |
| | | icon: "/images/manageCenter/manage2.png", |
| | | icon: "/images/manageCenter/video.png", |
| | | openPath: "/video", |
| | | path: "/video", |
| | | permission: "videoMng" |
| | |
| | | // basic 为åè´¦æ·é»è®¤çç©ºåæ®µ,表示å¯ç®¡ççæåæºç®å½ä¸ºç©º |
| | | if (checkedCameras == "basic") { |
| | | this.cameraTree = ["basic"] |
| | | this.authorizedCameras = ["basic"] |
| | | } else { |
| | | let cameraIds = checkedCameras.split(",") |
| | | this.authorizedCameras = cameraIds |
| | | this.TreeDataPool.removeNoAuthorizedNode(this.cameraTree, cameraIds) |
| | | } |
| | | } |
| | | } |
| | | |
| | | let tmpTree = JSON.parse(JSON.stringify(this.cameraTree)) |
| | | |
| | | for (let i = 0; i < tmpTree.length; i++) this.clearNode(tmpTree[i]) |
| | | this.menuTree = tmpTree |
| | | |
| | | console.log(this.cameraTree) |
| | | // console.log(this.cameraTree) |
| | | } |
| | | }, |
| | | clearNode(tree) { |
| | |
| | | let selectedNode = {} |
| | | let orgNodeIds = [] |
| | | |
| | | if (this.selectedOrg == "") { |
| | | if (this.selectedOrg == "" || this.selectedOrg == null) { |
| | | return this.authorizedCameras |
| | | } |
| | | |
| | | function findNode(node) { |
| | | if (node.id == selectedNodeId) { |
| | | selectedNode = node |
| | | |
| | | return |
| | | } |
| | | |
| | |
| | | let decodeResult = JSON.parse(decodeString) |
| | | decodeResult = [] |
| | | if (decodeResult) { |
| | | console.log("decodeResult", decodeResult) |
| | | // console.log("decodeResult", decodeResult) |
| | | decodeResult.forEach((element) => { |
| | | this.solvedTotal = this.solvedTotal + element.doc_count |
| | | this.tableDataList.push({ date: element.key_as_string, count: element.doc_count }) |
| | |
| | | } |
| | | }, |
| | | handleTreeChange(value) { |
| | | // console.log("change:", value) |
| | | if (value == null) { |
| | | this.selectedOrg = "" |
| | | |
| | | return |
| | | } |
| | | this.selectedOrg = value[value.length - 1] |
| | | }, |
| | | getInfo() { |