{"remainingRequest":"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\\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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 {\n\tmapState\n} from 'vuex'\nimport {\n\tTableMixin\n} from '@/mixins/tableMixin'\n// import EquipmentManageDialog from '@/views/Device/deviceManage/components/EquipmentManageDialog'\n// import EquipmentExtendDialog from '@/views/Device/deviceManage/components/EquipmentExtendDialog'\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\tname: 'EquipmentManage',\n\tcomponents: {\n\t\t// EquipmentManageDialog,\n\t\t// EquipmentExtendDialog\n\t},\n\tmixins: [TableMixin],\n\tdata() {\n\t\treturn {\n\t\t\timportVisible: false,\n\t\t\treviseDat: '',\n\t\t\treviseVisible: false,\n\t\t\treviseStart: '',\n\t\t\texportParam: {},\n\t\t\t//携带参数\n\t\t\tuploadData: {\n\t\t\t\tproductId: ''\n\t\t\t},\n\t\t\turl: {\n\t\t\t\tdelete: '/device/info/'\n\t\t\t},\n\t\t\ttreeData: [],\n\t\t\tproductValue: [],\n\t\t\tregionValue: [],\n\t\t\tshowMore: false,\n\t\t\tparameters: {},\n\t\t\tshowExtend: false,\n\t\t\tparams: {\n\t\t\t\tname: '',\n\t\t\t\tproductId: '', //产品\n\t\t\t\tstatus: '', //状态\n\t\t\t\timportant: '', //重点设备\n\t\t\t\tareaId: '', //区域\n\t\t\t},\n\t\t\tquerys: [{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'd.name_',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'product_id_',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'status',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'd.code_',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'important',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'areaId',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t},\n\n\n\n\t\t\t],\n\t\t\tdeviceStatus: [], // 设备状态\n\t\t\tproductData: [], // 产品数据\n\t\t\tflagList: [], //禁用标识字段列表\n\t\t\taddressTypeList: [], //安装地点类型字段列表\n\t\t\tproductIdInfo: '',\n\t\t\tdeviceInfo: {\n\t\t\t\t0: '',\n\t\t\t\t1: '',\n\t\t\t\t2: '',\n\t\t\t\t3: '',\n\t\t\t\t9: '',\n\t\t\t\t10: ''\n\t\t\t}, //设备状态数量\n\t\t\tproduct: {}\n\t\t}\n\t},\n\t//获取token\n\tcomputed: mapState({\n\t\theader: state => {\n\t\t\treturn {\n\t\t\t\tAuthorization: `Bearer ${state.login.currentUser.token}`\n\t\t\t}\n\t\t}\n\t}),\n\tcreated() {\n\t\t//在created里面区获取actionUrl\n\t\tthis.product = JSON.parse(localStorage.getItem('product'))\n\t\tconsole.log(this.product );\n\t\tthis.params.productId = this.product.typeId\n\t\tthis.actionUrl = window.context.portal\n\t\tthis.getDeviceInfo()\n\t\tthis.getAreaTree()\n\t},\n\tmounted() {\n\t\tthis.deviceStatus = dictUtils.getDictItemsFromCache('sbzt')\n\t\tthis.flagList = dictUtils.getDictItemsFromCache('jybs')\n\t\tthis.addressTypeList = dictUtils.getDictItemsFromCache('azddlx')\n\t},\n\tmethods: {\n\t\tgoBack() {\n\t\t\tthis.$router.go(-1)\n\t\t\t// this.$router.push({\n\t\t\t// \tpath: 'DeviceAnalysis'\n\t\t\t// })\n\t\t},\n\t\tdelRegion() {\n\t\t\tif (this.regionValue.length == 0) {\n\t\t\t\tthis.params.areaId = ''\n\t\t\t}\n\t\t},\n\t\t\n\t\topenMore() {\n\t\t\tthis.showMore = !this.showMore\n\t\t},\n\t\tgetAreaTree() {\n\t\t\tequipmentManage.loadAreaTree({\n\t\t\t\tid: '0'\n\t\t\t}, res => {\n\t\t\t\tthis.treeData = res.value // this.formatData(res.rows)\n\t\t\t\tthis.$set(this.treeData)\n\t\t\t})\n\t\t},\n\t\thandleClose() {\n\t\t\tthis.importVisible = false\n\t\t\tthis.reviseVisible = false\n\t\t},\n\t\ttoEquipmentDetails(val) {\n\t\t\tlet path = this.$route.path\n\t\t\tif (path.indexOf('frontPlat') !== -1) {\n\t\t\t\tthis.$router.push({\n\t\t\t\t\tname: 'EquipmentDetails',\n\t\t\t\t\tquery: {\n\t\t\t\t\t\tid: val.id,\n\t\t\t\t\t\tname: val.name,\n\t\t\t\t\t\tstatus:false\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tthis.$router.push({\n\t\t\t\t\tname: 'EquipmentDetailsLink',\n\t\t\t\t\tquery: {\n\t\t\t\t\t\tid: val.id,\n\t\t\t\t\t\tname: val.name,\n\t\t\t\t\t\tstatus:false\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}\n\t\t},\n\t\t\n\t\t// 点击刷新设备数量\n\t\trefreshInfo() {\n\t\t\tthis.getDeviceInfo()\n\t\t},\n\t\t// 根据产品id获取设备数量\n\t\tgetDeviceInfo() {\n\t\t\tlet data = {\n\t\t\t\tproductId: this.params.productId\n\t\t\t}\n\t\t\tequipmentManage.getDeviceInfo(this.qs.stringify(data), res => {\n\t\t\t\tthis.deviceInfo = res.value\n\t\t\t})\n\t\t},\n\t\tloadData(page) {\n\t\t\tif (page) {\n\t\t\t\tthis.queryParam.pageBean.page = page\n\t\t\t}\n\t\t\tthis.loading = true\n\t\t\n\t\t\tif (this.regionValue.length > 0) {\n\t\t\t\tlet arr = JSON.parse(JSON.stringify(this.regionValue))\n\t\t\t\tthis.params.areaId = arr.pop()\n\t\t\t}\n\t\t\tthis.queryParam.params = this.params\n\t\t\tthis.tableData = []\n\t\t\tresourceManage.loadDevice(this.queryParam, res => {\n\t\t\t\tthis.total = res.total\n\t\t\t\tthis.tableData = res.rows\n\t\t\t\tthis.$set(this.tableData)\n\t\t\t\tthis.loading = false\n\t\t\t\tthis.tableData.forEach(item => {\n\t\t\t\t\tthis.deviceStatus.forEach(val => {\n\t\t\t\t\t\tif (item.status == val.value) {\n\t\t\t\t\t\t\titem['statusName'] = val.name\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\tthis.addressTypeList.forEach(val => {\n\t\t\t\t\t\tif (item.addressType == val.value) {\n\t\t\t\t\t\t\titem['addressTypeName'] = val.name\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t})\n\t\t\tif (this.querys[1].value == '') {}\n\t\t},\n\t}\n}\n",null]}