| | |
| | | </el-menu> |
| | | </el-tab-pane> |
| | | <el-tab-pane |
| | | label="集群" |
| | | name="cluster" |
| | | :style="`height:${height - 56}px;`" |
| | | v-if="showCluster" |
| | | ></el-tab-pane> |
| | | <el-tab-pane |
| | | label="数据栈" |
| | | name="dataStack" |
| | | :style="`height:${height - 56}px;`" |
| | |
| | | return true; |
| | | }, |
| | | showCam() { |
| | | return this.appName === "Camera" || this.appName === "Search"; |
| | | debugger |
| | | return this.appName === "Camera" || (this.appName === "Search" && this.buttonAuthority.indexOf("search:camera") >= 0); |
| | | }, |
| | | showCluster() { |
| | | return this.appName === "Cluster"; |
| | | }, |
| | | // 数据栈配置必须显示。 检索通过权限控制显示, 未安装数据栈也不显示 |
| | | showDataStack() { |
| | | return this.appName === "DataStack" || this.appName === "Search"; |
| | | if (this.appName === "DataStack") { |
| | | return true; |
| | | } |
| | | |
| | | if (this.appName === "Search") { |
| | | // 未安装数据栈配置 |
| | | if (this.installedApps.indexOf("dataStack") >= 0) { |
| | | if (this.isAdmin) { |
| | | return true; |
| | | } |
| | | |
| | | if (this.buttonAuthority.indexOf("search:stack") >= 0) { |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | | |
| | | return false; |
| | | }, |
| | | showLock() { |
| | | return this.edit; |
| | |
| | | dataStack: "videoMonitor:dataStack", |
| | | activeIndexVideo: "", |
| | | buttonAuthority: sessionStorage.getItem("buttonAuthoritys") || [], |
| | | installedApps: sessionStorage.getItem("apps") || [], |
| | | loginName: JSON.parse(sessionStorage.getItem("userInfo")).username || "用户名", |
| | | searchTypeOptions: [ |
| | | { |
| | |
| | | promiseArr.push(createCamera(camera)); |
| | | } |
| | | let _this = this; |
| | | Promise.allSettled(promiseArr).then(res=>{ |
| | | res.forEach(item=>{ |
| | | if(item.status === 'fulfilled'){ |
| | | Promise.allSettled(promiseArr).then(res => { |
| | | res.forEach(item => { |
| | | if (item.status === 'fulfilled') { |
| | | succeed++; |
| | | }else{ |
| | | } else { |
| | | failed++; |
| | | } |
| | | }); |
| | |
| | | message: "操作完成, 导入成功:" + succeed + "个 失败:" + failed + "个" |
| | | }) |
| | | _this.TreeDataPool.fetchTreeData(); |
| | | }).catch(e=>{ |
| | | }).catch(e => { |
| | | console.log(e) |
| | | }); |
| | | |
| | | |
| | | } |
| | | } catch (e) { |
| | | this.menuLoading = false |
| | |
| | | border: none; |
| | | box-shadow: none; |
| | | .el-tabs__header { |
| | | display: none; |
| | | border-bottom: none; |
| | | margin: 0 0 15px; |
| | | //margin: 0 0 15px; |
| | | } |
| | | .el-tabs__content { |
| | | padding: 0; |
| | |
| | | .search-input { |
| | | padding-top: 8px; |
| | | padding-bottom: 12px; |
| | | text-align: left; |
| | | .dev-tree-close { |
| | | width: 10%; |
| | | margin-left: 10px; |