| | |
| | | text-align: center; |
| | | border: 0px solid transparent; |
| | | } |
| | | |
| | | ::-webkit-scrollbar { |
| | | width: 6px; |
| | | height: 6px; |
| | | background-color: #f5f5f5; |
| | | } |
| | | </style> |
| | | |
| | | </head> |
| | |
| | | size="small" |
| | | clearable |
| | | @input="querySearchAsync('dir')" |
| | | :style="'width:120px;'" |
| | | :style="'width:148px;'" |
| | | > |
| | | <i |
| | | class="el-icon-search el-input__icon" |
| | |
| | | this.isInstall = false;
|
| | | this.$message({
|
| | | type: 'success',
|
| | | message: '安装成功,将跳转至我的算法中查看'
|
| | | message: '安装成功,将跳转至"已激活"中查看'
|
| | | });
|
| | | setTimeout(() => {
|
| | | this.getAllSdk();
|
| | |
| | | RightSide |
| | | }, |
| | | computed: { |
| | | app() { |
| | | app () { |
| | | return this.getUrlKey() !== null ? "DataStack" : "Camera" |
| | | } |
| | | }, |
| | | data() { |
| | | data () { |
| | | return { |
| | | leftWith: 0, |
| | | screenHeight: 0 |
| | | } |
| | | }, |
| | | mounted() { |
| | | mounted () { |
| | | this.screenHeight = document.documentElement.clientHeight; |
| | | window.onresize = () => { |
| | | return (() => { |
| | |
| | | |
| | | }, |
| | | methods: { |
| | | getUrlKey() { |
| | | getUrlKey () { |
| | | let name = "dataStack" |
| | | return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null |
| | | } |
| | |
| | | } |
| | | .resize-bar:hover ~ .resize-line::after, |
| | | .resize-bar:active ~ .resize-line::after { |
| | | content: ""; |
| | | content: ''; |
| | | position: absolute; |
| | | width: 16px; |
| | | height: 16px; |
| | |
| | | background-size: 100% 100%; |
| | | } |
| | | } |
| | | |
| | | </style> |
| | |
| | | DataStackInfo, |
| | | SeparateRules, |
| | | LinkageRule }, |
| | | data() { |
| | | data () { |
| | | return { |
| | | activeName: "camera-info", |
| | | buttonAuthority: sessionStorage.getItem("buttonAuthoritys") || [], |
| | |
| | | }; |
| | | }, |
| | | computed: { |
| | | isAdmin() { |
| | | isAdmin () { |
| | | if ( |
| | | sessionStorage.getItem("userInfo") && |
| | | sessionStorage.getItem("userInfo") !== "" |
| | |
| | | |
| | | return false; |
| | | }, |
| | | firstLabeName() { |
| | | firstLabeName () { |
| | | return this.TreeDataPool.treeActiveName === "camera" ? "摄像机信息" : "数据栈信息" |
| | | } |
| | | }, |
| | |
| | | } |
| | | }, |
| | | "TreeDataPool.selectedNodes": { |
| | | handler(nodes) { |
| | | handler (nodes) { |
| | | if (this.activeName == "linkage-rule") { |
| | | this.$refs.linkRule.initCameraData(); |
| | | } |
| | |
| | | deep: true |
| | | }, |
| | | "DataStackPool.selectedDir": { |
| | | handler(node, oldNode) { |
| | | handler (node, oldNode) { |
| | | if (this.TreeDataPool.treeActiveName !== 'dataStack') { |
| | | return |
| | | } |
| | |
| | | }, |
| | | |
| | | }, |
| | | created() { |
| | | created () { |
| | | if (this.TreeDataPool.treeActiveName == 'camera') { |
| | | if (this.isShow('cameraAccess:cameraInfo')) { |
| | | this.activeName = "camera-info" |
| | |
| | | this.selectedNodes = []; |
| | | this.VideoManageData.init(); |
| | | }, |
| | | beforeDestroy() { |
| | | beforeDestroy () { |
| | | clearInterval(this.intervalTimer); |
| | | //this.TreeDataPool.treeActiveName = "camera"; |
| | | }, |
| | | mounted() { |
| | | mounted () { |
| | | this.$nextTick(() => { |
| | | bus.$on("addCameraOnTree", node => { |
| | | this.handAddDevice(node); |
| | |
| | | }, 10000) |
| | | }, |
| | | methods: { |
| | | isShow(authority) { |
| | | isShow (authority) { |
| | | return this.isAdmin || this.buttonAuthority.indexOf("," + authority + ",") > -1 |
| | | }, |
| | | handAddDevice(node) { |
| | | handAddDevice (node) { |
| | | let _this = this; |
| | | setTimeout(() => { |
| | | _this.$refs.cameraInfo.addDevice(node); |
| | | _this.activeName = "camera-info"; |
| | | }, 100); |
| | | }, |
| | | handAddDIr(node) { |
| | | handAddDIr (node) { |
| | | let _this = this; |
| | | setTimeout(() => { |
| | | _this.$refs.dataStackInfo.addDir(node); |
| | | _this.activeName = "camera-info"; |
| | | }, 100); |
| | | }, |
| | | handleClick(tab, event) { |
| | | handleClick (tab, event) { |
| | | this.TreeDataPool.multiple = tab.name === "linkage-rule"; |
| | | if (tab.name === "camera-info") { |
| | | if (this.TreeDataPool.treeActiveName == 'camera') { |
| | |
| | | overflow-y: auto; |
| | | padding: 0; |
| | | } |
| | | .video-tab > .el-tabs__content::-webkit-scrollbar { |
| | | /*滚动条整体样式*/ |
| | | width: 6px; /*高宽分别对应横竖滚动条的尺寸*/ |
| | | height: 6px; |
| | | } |
| | | .el-tab-pane { |
| | | width: 100%; |
| | | //height: 100%; |