{"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\\components\\detailsDialog\\RealTimeMonitorDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\components\\detailsDialog\\RealTimeMonitorDialog.vue","mtime":1667545181520},{"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//\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport realTimeDialog from '@/api/device/realTimeDialog.js';\nimport basisDialog from \"./modle/basisDialog.vue\";\nexport default {\n components: {\n basisDialog: basisDialog\n },\n data: function data() {\n return {\n dialogVisible: false,\n cId: null,\n title: null,\n isType: true,\n parameters: {},\n queryFilter: {\n pageBean: {\n page: 1,\n pageSize: 10,\n showTotal: true\n },\n params: {},\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'd.name_',\n relation: 'AND',\n value: ''\n }]\n },\n addressTypeList: [],\n floorList: [],\n deviceStatus: [],\n repairUserName: null,\n areaName: null,\n addvcdName: null,\n extendParams: [],\n paramsValueList: [],\n productParams: []\n };\n },\n created: function created() {\n this.addressTypeList = dictUtils.getDictItemsFromCache('azddlx');\n this.floorList = dictUtils.getDictItemsFromCache('azlc');\n this.deviceStatus = dictUtils.getDictItemsFromCache('sbzt');\n },\n methods: {\n add: function add(title) {\n this.title = title;\n this.dialogVisible = true;\n this.getQuery();\n },\n handleClose: function handleClose() {\n this.parameters = [];\n this.repairUserName = '';\n this.addvcdName = '';\n this.areaName = '';\n this.dialogVisible = false;\n },\n getQuery: function getQuery() {\n var _this = this;\n\n this.queryFilter.querys[0].value = this.title;\n realTimeDialog.query(this.queryFilter, function (res) {\n if (res.rows.length > 0) {\n _this.parameters = res.rows[0];\n var data = {\n pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n }\n };\n realTimeDialog.userQuery(data, function (res) {\n var data = res.rows;\n data.forEach(function (item) {\n if (_this.parameters.repairUserId !== '') {\n if (item.id == _this.parameters.repairUserId) {\n _this.repairUserName = item.name;\n }\n } else {\n _this.repairUserName = '';\n }\n });\n });\n\n _this.deviceStatus.forEach(function (item) {\n if (_this.parameters.status) {\n if (item.value == _this.parameters.status) {\n _this.parameters.status = item.name;\n }\n } else {\n _this.parameters.status = '';\n }\n });\n\n _this.addressTypeList.forEach(function (item) {\n if (_this.parameters.addressType) {\n if (item.value == _this.parameters.addressType) {\n _this.parameters.addressType = item.name;\n }\n } else {\n _this.parameters.addressType = '';\n }\n });\n\n _this.floorList.forEach(function (item) {\n if (_this.parameters.floor) {\n if (item.value == _this.parameters.floor) {\n _this.parameters.floor = item.name;\n }\n } else {\n _this.parameters.floor = '';\n }\n });\n\n realTimeDialog.loadArea(data, function (res) {\n _this.areaOptions = res.rows;\n\n _this.areaOptions.forEach(function (item) {\n if (_this.parameters.areaId) {\n if (item.id == _this.parameters.areaId) {\n _this.areaName = item.name;\n }\n } else {\n _this.areaName = '';\n }\n });\n });\n realTimeDialog.loadAdminAreaTree({}, function (res) {\n if (_this.parameters.addvcd) {\n _this.addvcdName = res.value[0].name;\n } else {\n _this.addvcdName = '';\n }\n });\n\n _this.getInfo();\n }\n });\n console.log(this.parameters);\n },\n getInfo: function getInfo() {\n var _this2 = this;\n\n this.extendParams = [];\n this.productParams = [];\n realTimeDialog.deviceDetails(this.parameters.id, function (res) {\n console.log(res);\n _this2.paramsValueList = res.paramsValueList;\n realTimeDialog.getExtendParams({\n deviceId: _this2.parameters.id\n }, function (res) {\n _this2.extendParams = res;\n\n _this2.extendParams.forEach(function (item) {\n _this2.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 realTimeDialog.getProductParams({\n productId: _this2.parameters.productId\n }, function (res) {\n _this2.productParams = res;\n\n _this2.productParams.forEach(function (item) {\n _this2.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 toDialog: function toDialog(id, title) {\n this.$refs.basisModal.add(id, title);\n }\n }\n};",null]}