{"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\\components\\EquipmentDetails.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\components\\EquipmentDetails.vue","mtime":1695626572314},{"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.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 req from '@/request.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport equipmentManage from '@/api/device/equipmentManage.js';\nimport { ExtendParamsMixin } from '@/mixins/deviceExtend.js';\nimport resourceManage from '@/api/device/resourceManage.js';\nimport latitude from '@/mixins/latitude';\nimport userManage from '@/api/device/userManage.js';\nimport productManage from '@/api/device/productManage.js';\nimport EquipmentInfoDialog from \"./modle/EquipmentInfoDialog.vue\";\nimport EquipmentAlarm from \"./modle/EquipmentAlarm.vue\";\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport PhysicalModel from \"./modle/PhysicalModel.vue\"; // import EquipmentExtendModel from './modle/EquipmentExtendModel.vue'\n\nimport relatedDevice from \"./modle/relatedDevice.vue\";\nimport EquipStatuslog from \"./modle/EquipStatuslog.vue\";\nimport RealTimeData from \"./modle/RealTimeData.vue\";\nimport HazardRealDataModel from \"./modle/HazardRealDataModel.vue\";\nimport WaterRealDataModel from \"./modle/WaterRealDataModel.vue\";\nimport RoadblockRealDataModel from \"./modle/RoadblockRealDataModel.vue\";\nimport SignboaerdRealDataModel from \"./modle/SignboaerdRealDataModel.vue\";\nimport basisDialog from \"./modle/basisDialog.vue\";\nimport WarningInformation from \"./modle/WarningInformation.vue\";\nimport { error } from 'dingtalk-jsapi';\nexport default {\n name: 'EquipmentDetails',\n components: {\n PhysicalModel: PhysicalModel,\n EquipmentInfoDialog: EquipmentInfoDialog,\n EquipmentAlarm: EquipmentAlarm,\n // EquipmentExtendModel,\n relatedDevice: relatedDevice,\n EquipStatuslog: EquipStatuslog,\n // RealTimeData,\n HazardRealDataModel: HazardRealDataModel,\n WaterRealDataModel: WaterRealDataModel,\n RoadblockRealDataModel: RoadblockRealDataModel,\n SignboaerdRealDataModel: SignboaerdRealDataModel,\n basisDialog: basisDialog,\n WarningInformation: WarningInformation\n },\n mixins: [TableMixin, ExtendParamsMixin],\n data: function data() {\n return {\n activeName: 'first',\n parameters: {},\n //接收参数\n size: '',\n status: '',\n addressType: '',\n floor: '',\n areaName: '',\n addvcdName: '',\n valueList: [],\n paramsValueList: [],\n floorList: [],\n //安装楼层列表\n addressTypeList: [],\n //安装地点类型列表\n productName: '',\n //产品名称\n repairUserName: '',\n productData: [],\n areaOptions: [],\n extendParams: [],\n productParams: [],\n productValue: {},\n productTypeValue: {},\n productTypelx: '',\n dialogId: null,\n dialogName: null,\n equipmentId: '',\n inquireType: true,\n // true 是从设备管理跳转进入的详情 false是从设备维护跳转进去的详情\n importantData: [{\n name: '一般设备',\n value: '0'\n }, {\n name: '重点设备',\n value: '1'\n }],\n searchParams: ''\n };\n },\n created: function created() {\n // this.parameters = this.$route.query\n this.equipmentId = this.$route.query.id;\n console.log(this.$route.query.status);\n this.inquireType = this.$route.query.status;\n this.addressTypeList = dictUtils.getDictItemsFromCache('azddlx');\n this.floorList = dictUtils.getDictItemsFromCache('azlc');\n this.deviceStatus = dictUtils.getDictItemsFromCache('sbzt');\n this.loadAllData();\n this.searchParams = this.$route.query.searchParams;\n },\n mounted: function mounted() {},\n methods: {\n loadAllData: function loadAllData() {\n var _this = this;\n\n equipmentManage.deviceDetailsInfo(this.equipmentId, function (res) {\n _this.parameters = res;\n\n _this.loadData();\n });\n },\n translateImportant: function translateImportant(val) {\n var importantName = '';\n this.importantData.forEach(function (e) {\n if (val == e.value) {\n importantName = e.name;\n }\n });\n return importantName;\n },\n handleRefresh: function handleRefresh() {\n this.parameters = {};\n this.loadAllData();\n },\n toDialog: function toDialog(id, title) {\n // this.dialogName=title\n // this.dialogId=id\n this.$refs.basisModal.add(id, title);\n },\n handleClick: function handleClick(tab, event) {\n var _this2 = this;\n\n // console.log(tab, event)\n if (tab._props.name == 'fiveth' || tab._props.name == 'seventh') {\n // productManage\n // \t.productInfoDetail(this.parameters.productId)\n // \t.then((res) => {\n // \t\tthis.productValue = res\n // \t\tconsole.log('第一个',res);\n // \t\tproductManage\n // \t\t\t.productTypeDetail(this.productValue.typeId)\n // \t\t\t.then((res) => {\n // \t\t\t\tconsole.log('第二个',res);\n // \t\t\t\tthis.productTypeValue = res\n // \t\t\t})\n // \t\t\t.catch((err) => {\n // \t\t\t\tconsole.log(err)\n // \t\t\t})\n // \t})\n // \t.catch((err) => {\n // \t\tconsole.log(err)\n // \t})\n var protal = window.context.portal;\n var requestData = {\n url: \"\".concat(protal, \"/device/data/query?id=\") + this.parameters.id,\n data: this.queryParam,\n method: 'post'\n }; // 根据设备id获取实时数据\n\n req.request(requestData).then(function (res) {\n console.log('第三个', res);\n\n if (res.data.value) {\n _this2.productTypelx = res.data.value.productType;\n } else {\n _this2.productTypelx = ''; // this.$message.error('该设备无实时数据--------')\n }\n }).catch(function (err) {\n console.log(err);\n });\n }\n },\n goBack: function goBack() {\n // this.$router.go(-1)\n var path = this.$route.path;\n\n if (path.indexOf('frontPlat') !== -1) {\n var name = this.inquireType ? 'EquipmentManage' : 'EquipmentMaintain';\n this.$router.push({\n name: name,\n query: {\n searchParams: this.searchParams\n }\n });\n } else {\n var _name = this.inquireType ? 'EquipmentManageLink' : 'EquipmentMaintainLink';\n\n this.$router.push({\n name: _name,\n query: {\n searchParams: this.searchParams\n }\n });\n }\n },\n getInfo: function getInfo() {\n var _this3 = this;\n\n this.extendParams = [];\n this.productParams = [];\n equipmentManage.deviceDetails(this.parameters.id, function (res) {\n if (!res) return;\n _this3.paramsValueList = res.paramsValueList;\n equipmentManage.getExtendParams({\n deviceId: _this3.parameters.id\n }, function (res) {\n _this3.extendParams = res;\n\n _this3.extendParams.forEach(function (item) {\n _this3.paramsValueList.forEach(function (val) {\n if (item.id == val.confId) {\n item['value'] = val.value;\n }\n });\n\n if (item.ctlType == 'select' || item.ctlType == 'radio') {\n var arr = JSON.parse(item.json);\n arr.forEach(function (i) {\n if (item.value == i.value) {\n item.value = i.label;\n }\n });\n } else if (item.ctlType == 'checkbox') {\n var _arr = JSON.parse(item.json);\n\n var arr1 = item.value.split(',');\n var itemArr = null;\n var str = [];\n\n _arr.forEach(function (i) {\n if (arr1.indexOf(i.value) !== -1) {\n str.push(i.label);\n itemArr = str.toString();\n }\n });\n\n item.value = itemArr;\n }\n });\n });\n equipmentManage.getProductParams({\n productId: _this3.parameters.productId\n }, function (res) {\n _this3.productParams = res;\n\n _this3.productParams.forEach(function (item) {\n _this3.paramsValueList.forEach(function (val) {\n if (item.id == val.confId) {\n item['value'] = val.value;\n }\n });\n\n if (item.ctlType == 'select' || item.ctlType == 'radio') {\n var arr = JSON.parse(item.json);\n arr.forEach(function (i) {\n if (item.value == i.value) {\n item.value = i.label;\n }\n });\n } else if (item.ctlType == 'checkbox') {\n var _arr2 = JSON.parse(item.json);\n\n var arr1 = item.value.split(',');\n var itemArr = null;\n var str = [];\n\n _arr2.forEach(function (i) {\n if (arr1.indexOf(i.value) !== -1) {\n str.push(i.label);\n itemArr = str.toString();\n }\n });\n\n item.value = itemArr;\n }\n });\n });\n });\n },\n alterBasis: function alterBasis() {\n this.$refs.formModal.add();\n },\n formatNumber: function formatNumber(key) {\n this.parameters[key] = latitude.TreeFour(this.parameters[key]);\n },\n loadData: function loadData(page) {\n var _this4 = this;\n\n this.getInfo();\n var data = {\n pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n }\n };\n userManage.userQuery(data).then(function (res) {\n var data = res.rows;\n data.forEach(function (item) {\n if (_this4.parameters.repairUserId !== '') {\n if (item.id == _this4.parameters.repairUserId) {\n _this4.repairUserName = item.name;\n }\n } else {\n _this4.repairUserName = '';\n }\n });\n });\n this.deviceStatus.forEach(function (item) {\n if (_this4.parameters.status) {\n if (item.value == _this4.parameters.status) {\n _this4.status = item.name;\n }\n } else {\n _this4.status = '';\n }\n });\n this.addressTypeList.forEach(function (item) {\n if (_this4.parameters.addressType) {\n if (item.value == _this4.parameters.addressType) {\n _this4.addressType = item.name;\n }\n } else {\n _this4.addressType = '';\n }\n });\n this.floorList.forEach(function (item) {\n if (_this4.parameters.floor) {\n if (item.value == _this4.parameters.floor) {\n _this4.floor = item.name;\n }\n } else {\n _this4.floor = '';\n }\n });\n resourceManage.loadArea(data, function (res) {\n _this4.areaOptions = res.rows;\n\n _this4.areaOptions.forEach(function (item) {\n if (_this4.parameters.areaId) {\n if (item.id == _this4.parameters.areaId) {\n _this4.areaName = item.name;\n }\n } else {\n _this4.areaName = '';\n }\n });\n });\n resourceManage.loadAdminAreaTree({}, function (res) {\n if (_this4.parameters.addvcd) {\n _this4.addvcdName = res.value[0].name;\n } else {\n _this4.addvcdName = '';\n }\n });\n }\n }\n};",null]}