{"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\\deviceManage\\VideoFacilities.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\VideoFacilities.vue","mtime":1687754663090},{"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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"D:/jenkins/workspace/bzzgj-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\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//\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//\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 { mapState } from 'vuex';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport equipmentManage from '@/api/device/equipmentManage.js';\nimport VideoFacilities from '@/api/device/VideoFacilities.js';\nimport { dragControllerDiv } from '@/mixins/dragControllerDiv';\nimport videoMonitor from '@/api/videoMonitorapi.js';\nimport req from '@/request.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport videoFormDialog from '@/views/Device/deviceManage/components/videoFormDialog';\nexport default {\n name: 'VideoFacilities',\n components: {\n videoFormDialog: videoFormDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n //携带参数\n uploadData: {\n catalogCode: ''\n },\n reviseDat: '',\n reviseVisible: false,\n reviseStart: '',\n catalogs: [],\n //视频目录\n loading: false,\n fullId: '',\n //目录树编码\n catalogCode: '',\n //目录编码\n catalogPlatform: '',\n multipleSelection: [],\n // 复选框\n params: {\n name: '',\n catalogCode: '',\n status: '',\n zoneCode: ''\n },\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'r.name_',\n relation: 'AND',\n value: ''\n }, // {\n // group: 'main',\n // operation: 'RIGHT_LIKE',\n // parentGroup: '',\n // property: 'z.full_id_',\n // relation: 'AND',\n // value: ''\n // },\n {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'r.catalog_code_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'e.important_',\n relation: 'AND',\n value: ''\n }],\n regionIndexCode: '',\n total: 0,\n tableData: [],\n videoTree: [],\n defaultProps: {\n value: 'code',\n label: 'name'\n },\n data: [],\n filterText: '',\n show: false,\n rules: {\n name: [{\n required: true,\n message: '请输入区域名称',\n trigger: 'change'\n }],\n code: [{\n required: true,\n message: '请输入区域编码',\n trigger: 'change'\n }]\n },\n titles: '',\n area: {\n code: '',\n name: ''\n },\n pArea: null,\n activeCollapseDia: '1',\n showTreeNode: false,\n url: {\n delete: '/biz/catalog/base/point/'\n },\n sbztList: [],\n treeKey: '',\n options: [],\n spdwztList: [],\n spdwssptList: []\n };\n },\n watch: {\n filterText: function filterText(val) {\n this.$refs.tree.filter(val);\n }\n },\n mounted: function mounted() {\n dragControllerDiv();\n },\n //获取token\n computed: mapState({\n header: function header(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n }\n }),\n created: function created() {\n //在created里面区获取actionUrl\n this.actionUrl = window.context.portal;\n this.sbztList = dictUtils.getDictItemsFromCache('sbzt');\n this.spdwztList = dictUtils.getDictItemsFromCache('spdwzt');\n this.spdwssptList = dictUtils.getDictItemsFromCache('spdwsspt');\n this.getBusinessTreen();\n },\n methods: {\n changeVedeoF: function changeVedeoF(val) {\n if (val) {\n this.treeKey = val;\n this.catalogCode = val;\n this.query = {\n zoneCode: this.treeKey\n };\n this.getTree(); // this.query = {\n // \tzoneCode: val,\n // }\n // videoMonitor.getVideoTreeSite(this.query, (res) => {\n // \tthis.data = res.value\n // })\n // let obj = this.options.find((item) => item.code == val)\n // if (obj && obj.platform) {\n // \tthis.platform = obj.platform\n // }\n } else {\n this.data = [];\n this.$set(this.data, this.data, res.value);\n }\n },\n getBusinessTreen: function getBusinessTreen() {\n var _this = this;\n\n videoMonitor.getVideoF({}, function (res) {\n _this.options = res.value;\n _this.treeKey = _this.options[0].code;\n _this.catalogCode = _this.options[0].code;\n _this.query = {\n zoneCode: _this.treeKey\n };\n\n _this.getTree(); // videoMonitor.getVideoTreeSite(this.query, (res) => {\n // \tthis.data = res.value\n // \tthis.queryParam.params.treeKey = this.data[0].code\n // })\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 },\n handleDbClick: function handleDbClick(val) {\n console.log(val);\n this.$refs.formModal.editBasic(val);\n },\n //上传成功\n handleAvatarSuccess: function handleAvatarSuccess(res, file) {\n //提示\n this.$notify({\n type: 'success',\n message: this.$t('domestic.success'),\n duration: 2000\n });\n this.loadData(); //调用用页面查询接口,刷新数据\n },\n //上传失败\n handleAvatarError: function handleAvatarError(err, file, fileList) {\n //提示\n this.$notify({\n type: 'error',\n message: this.$t('domestic.failure'),\n duration: 2000\n });\n },\n //数据导入\n importData: function importData() {},\n //数据导出\n exportData: function exportData() {\n var exportParam = _objectSpread({}, this.queryParam);\n\n exportParam.pageBean = {\n page: 1,\n pageSize: -1\n };\n console.log(exportParam);\n equipmentManage.exportPointBase(exportParam, function (res) {}); // this.loadData()\n },\n //\n handleClose: function handleClose() {\n this.reviseVisible = false;\n },\n //\n revise: function revise(val) {\n this.reviseVisible = true;\n this.reviseDat = val;\n },\n reviseBtn: function reviseBtn() {\n var _this2 = this;\n\n // console.log(this.reviseDat)\n equipmentManage.updateStatus({\n id: this.reviseDat.id,\n productCode: 'video',\n status: this.reviseStart\n }, function (res) {\n _this2.loadData();\n\n _this2.reviseVisible = false; // if (res.state) {\n // this.$message({\n // message: res.message,\n // type: 'success'\n // })\n // this.loadData()\n // this.reviseVisible = false\n // }\n });\n },\n equipment: function equipment(val) {\n var _this3 = this;\n\n console.log(val);\n var importantData = 0;\n\n if (val.important == 1 && val.important) {\n importantData = 0;\n } else {\n importantData = 1;\n }\n\n equipmentManage.updateImportantPoint({\n id: val.id,\n important: importantData\n }, function (res) {\n // console.log(res)\n if (res.state) {\n _this3.$message({\n message: res.message,\n type: 'success'\n });\n\n _this3.loadData(); // this.reviseVisible = false\n\n }\n });\n },\n handleDeleteSite: function handleDeleteSite(row) {\n var _this4 = this;\n\n VideoFacilities.deleteVideoSite(row.id, function (res) {\n if (res.state) {\n _this4.$message.success('删除成功');\n\n _this4.loadData();\n }\n });\n },\n selectable: function selectable(row) {\n if (row.dataType == 2) {\n return true;\n } else {\n return false;\n }\n },\n handleAdd: function handleAdd() {\n if (!this.regionIndexCode) {\n this.$message.warning('请选择新增视频点位所属区域!');\n return;\n } else {\n var pData = {\n catalogCode: this.catalogCode,\n platform: this.catalogPlatform,\n zoneCode: this.regionIndexCode\n };\n this.$refs.formModal.add(pData);\n }\n },\n reload: function reload() {},\n handleCloseDia: function handleCloseDia() {\n this.showTreeNode = false;\n this.area = {\n code: '',\n name: ''\n };\n this.pArea = null;\n },\n handleSaveDia: function handleSaveDia() {\n var _this5 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n var API = VideoFacilities.updateVideoArea;\n\n if (_this5.titles == '新增') {\n _this5.area.baseCode = _this5.pArea.baseCode;\n _this5.area.parentId = _this5.pArea.id;\n _this5.area.platform = _this5.pArea.platform;\n API = VideoFacilities.addVideoArea;\n }\n\n console.log(_this5.area);\n API(_this5.area, function (res) {\n if (res.state) {\n _this5.$notify({\n type: 'success',\n message: _this5.titles + '视频区域成功!',\n duration: 2000\n });\n\n _this5.getTree();\n\n _this5.handleCloseDia();\n } else {\n _this5.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n }\n });\n }\n });\n },\n append: function append(data, type) {\n console.log(data, type, 'data, type');\n this.activeCollapseDia = '1';\n this.titles = '新增';\n this.showTreeNode = true;\n this.pArea = data;\n },\n upDateinfo: function upDateinfo(data, type) {\n this.titles = '修改';\n this.area = data;\n this.showTreeNode = true;\n },\n // 删除视频目录\n remove: function remove(data) {\n var _this6 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n VideoFacilities.deleteVideoArea(data.id, function (res) {\n if (res.state) {\n _this6.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n\n _this6.getTree();\n } else {\n _this6.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n }\n });\n }).catch(function () {});\n },\n renderContent: function renderContent(h, _ref) {\n var _this7 = this;\n\n var node = _ref.node,\n data = _ref.data,\n store = _ref.store;\n return h(\"span\", {\n \"class\": \"custom-tree-node\",\n \"on\": {\n \"mouseover\": function mouseover() {\n _this7.show = true;\n },\n \"mouseout\": function mouseout() {\n _this7.show = false;\n }\n }\n }, [h(\"span\", {\n \"class\": \"custom-tree-nodename\",\n \"attrs\": {\n \"title\": \"\".concat(data.name)\n }\n }, [data.name]), h(\"span\", [h(\"el-popover\", {\n \"attrs\": {\n \"placement\": \"bottom\",\n \"width\": \"55\",\n \"trigger\": \"hover\"\n }\n }, [h(\"el-button\", {\n \"style\": \"width:100%;border:0;margin:0;color:#606266;\",\n \"attrs\": {\n \"size\": \"mini\",\n \"type\": \"text\",\n \"icon\": \"el-icon-plus\"\n },\n \"on\": {\n \"click\": function click() {\n return _this7.append(data, 'son');\n }\n }\n }, [\"\\u65B0\\u589E\"]), h(\"el-button\", {\n \"directives\": [{\n name: \"show\",\n value: data.id !== '0' && data.dataType == 2\n }],\n \"style\": \"width:100%;border:0;margin:0;color:#606266;\",\n \"attrs\": {\n \"size\": \"mini\",\n \"type\": \"text\",\n \"icon\": \"el-icon-edit\"\n },\n \"on\": {\n \"click\": function click() {\n return _this7.upDateinfo(data, '');\n }\n }\n }, [\"\\u4FEE\\u6539\"]), h(\"el-button\", {\n \"directives\": [{\n name: \"show\",\n value: data.id !== '0' && data.dataType == 2 && data.hasChildren == 0\n }],\n \"style\": \"width:100%;border:0;margin:0;color:#606266;\",\n \"attrs\": {\n \"size\": \"mini\",\n \"icon\": \"el-icon-delete\",\n \"type\": \"text\"\n },\n \"on\": {\n \"click\": function click() {\n return _this7.remove(data);\n }\n }\n }, [\"\\u5220\\u9664\"]), h(\"i\", {\n \"slot\": \"reference\",\n \"class\": \"el-icon-more-outline\",\n \"style\": \"font-size: 15px;\"\n })])])]);\n },\n // 获取目录\n getTreeDict: function getTreeDict() {\n var _this8 = this;\n\n VideoFacilities.getVideoF({}, function (res) {\n _this8.catalogs = res.value;\n _this8.catalogCode = _this8.catalogs[0].code;\n _this8.catalogPlatform = _this8.catalogs[0].platform;\n\n _this8.getTree();\n });\n },\n // 获取目录树\n getTree: function getTree() {\n var _this9 = this;\n\n var query = {\n zoneCode: this.catalogCode\n };\n VideoFacilities.getVideoTree(query, function (res) {\n _this9.videoTree = res.value;\n _this9.fullId = _this9.videoTree.length ? _this9.videoTree[0].fullId : '';\n\n if (_this9.videoTree.length) {\n _this9.loadData();\n } else {\n _this9.videoTree = [];\n }\n });\n },\n // 切换目录\n changeCatalog: function changeCatalog(val) {\n this.$refs.multipleSelection.clearSelection(); //切换,选中就归零\n\n if (val) {\n this.catalogCode = val;\n this.catalogPlatform = val;\n var platform = this.catalogs.filter(function (item) {\n return item.code == val;\n })[0].platform;\n this.catalogPlatform = platform;\n this.getTree();\n } else {\n this.catalogCode = '';\n this.catalogPlatform = '';\n this.videoTree = [];\n this.$set(this.videoTree, this.videoTree, res.value);\n }\n },\n handleUpdate: function handleUpdate(val) {\n var _this10 = this;\n\n VideoFacilities.getDetails(val.code, function (res) {\n if (res) {\n var path = _this10.$route.path;\n\n if (path.indexOf('frontPlat') !== -1) {\n _this10.$router.push({\n name: 'VideoDetails',\n query: res\n });\n } else {\n _this10.$router.push({\n name: 'VideoDetailsLink',\n query: res\n });\n }\n }\n });\n },\n changeNode: function changeNode(data) {\n console.log(data);\n\n if (data) {\n this.regionIndexCode = data.code;\n this.fullId = data.fullId;\n this.params.zoneCode = data.code; //如果点击树,选中状态归0\n\n this.$refs.multipleSelection.clearSelection();\n this.loadData();\n }\n },\n loadData: function loadData() {\n var _this11 = this;\n\n this.loading = false;\n this.tableData = [];\n this.queryParam.querys = []; // this.querys[1].value = this.fullId\n // this.querys[1].value = this.catalogCode\n\n this.queryParam.params = this.params;\n this.uploadData.catalogCode = this.catalogCode; // if (this.querys[0].value) {\n // \tthis.queryParam.querys.push(this.querys[0])\n // }\n // if (this.querys[1].value) {\n // \tthis.queryParam.querys.push(this.querys[1])\n // }\n // if (this.querys[2].value) {\n // \tthis.queryParam.querys.push(this.querys[2])\n // }\n\n VideoFacilities.getList(this.queryParam, function (res) {\n console.log(res, 999);\n\n if (res) {\n _this11.tableData = res.rows;\n\n _this11.tableData.forEach(function (item) {\n _this11.spdwssptList.forEach(function (val) {\n if (item.platform == val.value) {\n item['platformName'] = val.name;\n }\n });\n });\n\n _this11.total = res.total;\n _this11.loading = false; // 归空\n // this.querys[1].value = ''\n // this.querys[2].value = ''\n }\n });\n },\n //同步数据\n synchroTree: function synchroTree() {\n var _this12 = this;\n\n VideoFacilities.asycCataLog(function (res) {\n if (res.state) {\n if (res.state) {\n _this12.$message.success('目录同步成功');\n\n _this12.getTreeDict();\n } else {\n _this12.$message.error('同步失败');\n }\n }\n });\n },\n synchro: function synchro(node, data) {\n var _this13 = this;\n\n VideoFacilities.asycCataLogZone({\n treeCode: this.catalogCode\n }, function (res) {\n if (res.state) {\n _this13.$message.success('区域同步成功');\n\n _this13.getTreen();\n } else {\n _this13.$message.error('同步失败');\n }\n });\n },\n onClickSynch: function onClickSynch() {\n var _this14 = this;\n\n VideoFacilities.getSynch({}, function (res) {\n if (res.state) {\n _this14.$message.success('同步成功');\n } else {\n _this14.$message.error('同步失败');\n }\n });\n },\n filterNode: function filterNode(value, data) {\n if (!value) return true;\n return data.name.indexOf(value) !== -1;\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.loadData();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.loadData();\n },\n // handleSelectionChange(val) {\n // this.multipleSelection = val.map((item) => {\n // return item.id\n // })\n // },\n // // 指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\n },\n // // 点击查询\n onClickSearch: function onClickSearch() {\n this.queryParam.pageBean.page = 1;\n this.loadData();\n }\n }\n};",null]}