{"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\\components\\monitorPage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\components\\monitorPage.vue","mtime":1687169259491},{"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/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\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//\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 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 monitor: {}\n };\n },\n watch: {\n filterText: function filterText(val) {\n this.$refs.tree.filter(val);\n }\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.monitor = JSON.parse(localStorage.getItem('monitor'));\n this.actionUrl = window.context.portal;\n this.sbztList = dictUtils.getDictItemsFromCache('sbzt'); // this.getTreeDict()\n },\n methods: {\n goBack: function goBack() {\n this.$router.push({\n path: 'DeviceAnalysis'\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 _this = 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 _this.loadData();\n\n _this.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 _this2 = 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 _this2.$message({\n message: res.message,\n type: 'success'\n });\n\n _this2.loadData(); // this.reviseVisible = false\n\n }\n });\n },\n handleDeleteSite: function handleDeleteSite(row) {\n var _this3 = this;\n\n VideoFacilities.deleteVideoSite(row.id, function (res) {\n if (res.state) {\n _this3.$message.success('删除成功');\n\n _this3.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 _this4 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n var API = VideoFacilities.updateVideoArea;\n\n if (_this4.titles == '新增') {\n _this4.area.baseCode = _this4.pArea.baseCode;\n _this4.area.parentId = _this4.pArea.id;\n _this4.area.platform = _this4.pArea.platform;\n API = VideoFacilities.addVideoArea;\n }\n\n console.log(_this4.area);\n API(_this4.area, function (res) {\n if (res.state) {\n _this4.$notify({\n type: 'success',\n message: _this4.titles + '视频区域成功!',\n duration: 2000\n });\n\n _this4.getTree();\n\n _this4.handleCloseDia();\n } else {\n _this4.$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 _this5 = 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 _this5.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n\n _this5.getTree();\n } else {\n _this5.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n }\n });\n }).catch(function () {});\n },\n // 获取目录\n getTreeDict: function getTreeDict() {\n var _this6 = this;\n\n VideoFacilities.getVideoF({}, function (res) {\n _this6.catalogs = res.value;\n _this6.catalogCode = _this6.catalogs[0].code;\n _this6.catalogPlatform = _this6.catalogs[0].platform;\n\n _this6.getTree();\n });\n },\n // 获取目录树\n getTree: function getTree() {\n var _this7 = this;\n\n var query = {\n zoneCode: this.catalogCode\n };\n VideoFacilities.getVideoTree(query, function (res) {\n _this7.videoTree = res.value;\n _this7.fullId = _this7.videoTree.length ? _this7.videoTree[0].fullId : '';\n\n if (_this7.videoTree.length) {\n _this7.loadData();\n } else {\n _this7.videoTree[0] = {\n name: '--',\n id: '-1',\n dataType: 1,\n baseCode: _this7.catalogCode,\n platform: _this7.catalogPlatform\n };\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 _this8 = this;\n\n VideoFacilities.getDetails(val.code, function (res) {\n if (res) {\n var path = _this8.$route.path;\n\n if (path.indexOf('frontPlat') !== -1) {\n _this8.$router.push({\n name: 'VideoDetails',\n query: res\n });\n } else {\n _this8.$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 _this9 = this;\n\n this.loading = false;\n this.tableData = [];\n this.queryParam.querys = [];\n this.queryParam.params = this.params;\n this.uploadData.catalogCode = this.catalogCode;\n VideoFacilities.getList(this.queryParam, function (res) {\n if (res) {\n _this9.tableData = res.rows;\n _this9.total = res.total;\n _this9.loading = false;\n }\n });\n },\n //同步数据\n synchroTree: function synchroTree() {\n var _this10 = this;\n\n VideoFacilities.asycCataLog(function (res) {\n if (res.state) {\n if (res.state) {\n _this10.$message.success('目录同步成功');\n\n _this10.getTreeDict();\n } else {\n _this10.$message.error('同步失败');\n }\n }\n });\n },\n synchro: function synchro(node, data) {\n var _this11 = this;\n\n VideoFacilities.asycCataLogZone({\n treeCode: this.catalogCode\n }, function (res) {\n if (res.state) {\n _this11.$message.success('区域同步成功');\n\n _this11.getTreen();\n } else {\n _this11.$message.error('同步失败');\n }\n });\n },\n onClickSynch: function onClickSynch() {\n var _this12 = this;\n\n VideoFacilities.getSynch({}, function (res) {\n if (res.state) {\n _this12.$message.success('同步成功');\n } else {\n _this12.$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]}