{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceMonitor\\VideoMonitor.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceMonitor\\VideoMonitor.vue","mtime":1687856981167},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.array.find\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { dragControllerDiv } from '@/mixins/dragControllerDiv';\nimport DHVideoPlayPlugin from \"./components/DHVideoPlayPlugin.vue\";\nimport easyPlayerPlugin from \"./components/easyPlayerPlugin.vue\"; // import videoPlayPlugin from './components/videoPlayPlugin.vue'\n\nimport videoMonitor from '@/api/videoMonitorapi.js';\nexport default {\n name: 'VideoMonitor',\n components: {\n DHVideoPlayPlugin: DHVideoPlayPlugin,\n // videoPlayPlugin,\n easyPlayerPlugin: easyPlayerPlugin\n },\n data: function data() {\n return {\n platform: 'ZG',\n option: {},\n activeName: 'first',\n filterText: '',\n filterText2: '',\n treeKey: '',\n currentNodeKey: '',\n currentNodeKey2: '',\n currentNodeKey3: '',\n currentNode: null,\n options: [],\n data: [],\n data2: [],\n data3: [],\n defaultProps: {\n children: 'children',\n label: 'label'\n },\n queryParam: {\n pageBean: {\n pageSize: 10,\n page: 1\n },\n params: {\n treeKey: null\n }\n }\n };\n },\n computed: {\n plusAndEditLight: function plusAndEditLight() {\n var light = false;\n\n if (!this.currentNode) {\n light = false;\n } else {\n var isRoot = this.currentNode.data.id == 0 ? true : false;\n\n if (isRoot || !this.currentNode.childNodes.length) {\n light = false;\n } else if (!isRoot && this.currentNode.childNodes.length) {\n light = true;\n }\n }\n\n return light;\n },\n deleteLight: function deleteLight() {\n var light = false;\n\n if (!this.currentNode) {\n light = false;\n } else {\n var isRoot = this.currentNode.data.id == 0 ? true : false;\n\n if (isRoot) {\n light = false;\n } else {\n light = true;\n }\n }\n\n return light;\n },\n upDownLight: function upDownLight() {\n var light = false;\n\n if (!this.currentNode) {\n light = false;\n } else if (!this.currentNode.childNodes.length) {\n light = true;\n }\n\n return light;\n }\n },\n watch: {\n filterText: function filterText(val) {\n this.$refs.tree1.filter(val);\n },\n filterText2: function filterText2(val) {\n this.$refs.tree2.filter(val);\n }\n },\n mounted: function mounted() {\n var _this = this;\n\n dragControllerDiv();\n this.getTreen();\n this.$bus.$on('showPopper', function (size) {\n _this.cutWindowSelect(size);\n });\n this.$bus.$on('hidePopper', function () {\n _this.$nextTick(function () {\n if (_this.$refs && _this.$refs.videoIframe) {\n _this.$refs.videoIframe.repairWindow();\n }\n });\n });\n },\n methods: {\n cutWindowSelect: function cutWindowSelect(size) {\n var _this2 = this;\n\n this.$nextTick(function () {\n var sizeV = _this2.$refs.videoIframe.$el.getBoundingClientRect();\n\n var iLeft, iTop, iWidth, iHeight;\n iLeft = size.left - sizeV.left - 2;\n iTop = size.top - sizeV.top;\n iWidth = size.width;\n iHeight = size.height + 4;\n\n _this2.$refs.videoIframe.cutWindow(iLeft, 0, iWidth, iHeight);\n });\n },\n // 根据监控点获取视频流地址\n getSiteVideoURL: function getSiteVideoURL(cameraIndexCode) {\n var _this3 = this;\n\n var query = {\n cameraIndexCode: cameraIndexCode // 监控点编码\n\n };\n this.$http.post('${portal}/biz/catalog/base/previewURLs', query).then(function (res) {\n if (res.data.state && res.data.value) {\n var data = res.data.value;\n\n _this3.$nextTick(function () {\n _this3.$refs.videoIframe.useVideoURL(data);\n });\n } else {\n _this3.$message.warning('获取监控点资源失败!');\n }\n });\n },\n getDateList: function getDateList() {\n var _this4 = this;\n\n videoManger.getListPage(this.queryParam, function (res) {\n if (res.state) {\n _this4.tableData = res.value;\n _this4.total = res.value.total;\n _this4.relationList.rscd = _this4.relation;\n _this4.loading = false;\n }\n });\n },\n getTreen: function getTreen() {\n var _this5 = this;\n\n videoMonitor.getVideoF({}, function (res) {\n _this5.options = res.value;\n _this5.treeKey = _this5.options[0].code;\n _this5.query = {\n zoneCode: _this5.treeKey\n };\n videoMonitor.getVideoTreeSite(_this5.query, function (res) {\n _this5.data = res.value;\n _this5.queryParam.params.treeKey = _this5.data[0].code;\n }); // videoMonitor.getVideoTree(this.query, (res) => {\n // this.data = res.value\n // // console.log(this.videoTree,666)\n // this.queryParam.params.treeKey = this.data[0].code\n // })\n });\n },\n changeVedeoF: function changeVedeoF(val) {\n var _this6 = this;\n\n if (val) {\n this.treeKey = val;\n this.query = {\n zoneCode: val\n };\n videoMonitor.getVideoTreeSite(this.query, function (res) {\n _this6.data = res.value;\n });\n var obj = this.options.find(function (item) {\n return item.code == val;\n });\n\n if (obj && obj.platform) {\n this.platform = obj.platform;\n }\n } else {\n this.data = [];\n this.$set(this.data, this.data, res.value);\n }\n },\n handlePlus: function handlePlus() {},\n handleEdit: function handleEdit() {},\n handleDelete: function handleDelete() {},\n handleNodeUp: function handleNodeUp() {},\n handleNodeDown: function handleNodeDown() {},\n handleClick: function handleClick(item) {},\n nodeClick: function nodeClick(data, node, nodeD) {\n var _this7 = this;\n\n console.log(data, node, nodeD);\n this.currentNodeKey = data.id;\n this.currentNode = node;\n this.queryParam.params.treeKey = data.code;\n\n if (data.type == 2) {\n // this.$nextTick(() => {\n // this.$refs.DHVideoIframe.realTimeVideo(data.code)\n // })\n this.$nextTick(function () {\n _this7.$refs.easyPlayer.getUrlAndPlay(data.code, data.name);\n });\n } // if (data.type == 2 && data.platform == 'HK') {\n // this.platform = data.platform\n // this.$nextTick(() => {\n // this.$refs.videoIframe.play(data.code)\n // })\n // } else if (data.type == 2 && data.platform == 'ZG') {\n // this.platform = data.platform\n // this.$nextTick(() => {\n // this.$refs.easyPlayer.getUrlAndPlay(data.code)\n // })\n // }\n\n },\n filterNode: function filterNode(value, data) {\n if (!value) return true;\n return data.name.indexOf(value) !== -1;\n },\n filterNode2: function filterNode2(value, data) {\n if (!value) return true;\n return data.name.indexOf(value) !== -1;\n }\n }\n};",null]}