{"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\\devicePage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\components\\devicePage.vue","mtime":1687310670812},{"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/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { TableMixin } from '@/mixins/tableMixin'; // import EquipmentManageDialog from '@/views/Device/deviceManage/components/EquipmentManageDialog'\n// import EquipmentExtendDialog from '@/views/Device/deviceManage/components/EquipmentExtendDialog'\n\nimport resourceManage from '@/api/device/resourceManage.js';\nimport userManage from '@/api/device/userManage.js';\nimport equipmentManage from '@/api/device/equipmentManage.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'EquipmentManage',\n components: {// EquipmentManageDialog,\n // EquipmentExtendDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n importVisible: false,\n reviseDat: '',\n reviseVisible: false,\n reviseStart: '',\n exportParam: {},\n //携带参数\n uploadData: {\n productId: ''\n },\n url: {\n delete: '/device/info/'\n },\n treeData: [],\n productValue: [],\n regionValue: [],\n showMore: false,\n parameters: {},\n showExtend: false,\n params: {\n name: '',\n productId: '',\n //产品\n status: '',\n //状态\n important: '',\n //重点设备\n areaId: '' //区域\n\n },\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'd.name_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'product_id_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'status',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'd.code_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'important',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'areaId',\n relation: 'AND',\n value: ''\n }],\n deviceStatus: [],\n // 设备状态\n productData: [],\n // 产品数据\n flagList: [],\n //禁用标识字段列表\n addressTypeList: [],\n //安装地点类型字段列表\n productIdInfo: '',\n deviceInfo: {\n 0: '',\n 1: '',\n 2: '',\n 3: '',\n 9: '',\n 10: ''\n },\n //设备状态数量\n product: {}\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.product = JSON.parse(localStorage.getItem('product'));\n console.log(this.product);\n this.params.productId = this.product.typeId;\n this.actionUrl = window.context.portal;\n this.getDeviceInfo();\n this.getAreaTree();\n },\n mounted: function mounted() {\n this.deviceStatus = dictUtils.getDictItemsFromCache('sbzt');\n this.flagList = dictUtils.getDictItemsFromCache('jybs');\n this.addressTypeList = dictUtils.getDictItemsFromCache('azddlx');\n },\n methods: {\n goBack: function goBack() {\n this.$router.go(-1); // this.$router.push({\n // \tpath: 'DeviceAnalysis'\n // })\n },\n delRegion: function delRegion() {\n if (this.regionValue.length == 0) {\n this.params.areaId = '';\n }\n },\n openMore: function openMore() {\n this.showMore = !this.showMore;\n },\n getAreaTree: function getAreaTree() {\n var _this = this;\n\n equipmentManage.loadAreaTree({\n id: '0'\n }, function (res) {\n _this.treeData = res.value; // this.formatData(res.rows)\n\n _this.$set(_this.treeData);\n });\n },\n handleClose: function handleClose() {\n this.importVisible = false;\n this.reviseVisible = false;\n },\n toEquipmentDetails: function toEquipmentDetails(val) {\n var path = this.$route.path;\n\n if (path.indexOf('frontPlat') !== -1) {\n this.$router.push({\n name: 'EquipmentDetails',\n query: {\n id: val.id,\n name: val.name,\n status: false\n }\n });\n } else {\n this.$router.push({\n name: 'EquipmentDetailsLink',\n query: {\n id: val.id,\n name: val.name,\n status: false\n }\n });\n }\n },\n // 点击刷新设备数量\n refreshInfo: function refreshInfo() {\n this.getDeviceInfo();\n },\n // 根据产品id获取设备数量\n getDeviceInfo: function getDeviceInfo() {\n var _this2 = this;\n\n var data = {\n productId: this.params.productId\n };\n equipmentManage.getDeviceInfo(this.qs.stringify(data), function (res) {\n _this2.deviceInfo = res.value;\n });\n },\n loadData: function loadData(page) {\n var _this3 = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n\n if (this.regionValue.length > 0) {\n var arr = JSON.parse(JSON.stringify(this.regionValue));\n this.params.areaId = arr.pop();\n }\n\n this.queryParam.params = this.params;\n this.tableData = [];\n resourceManage.loadDevice(this.queryParam, function (res) {\n _this3.total = res.total;\n _this3.tableData = res.rows;\n\n _this3.$set(_this3.tableData);\n\n _this3.loading = false;\n\n _this3.tableData.forEach(function (item) {\n _this3.deviceStatus.forEach(function (val) {\n if (item.status == val.value) {\n item['statusName'] = val.name;\n }\n });\n\n _this3.addressTypeList.forEach(function (val) {\n if (item.addressType == val.value) {\n item['addressTypeName'] = val.name;\n }\n });\n });\n });\n\n if (this.querys[1].value == '') {}\n }\n }\n};",null]}