{"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\\deviceMonitor\\components\\MaintainDetails.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceMonitor\\components\\MaintainDetails.vue","mtime":1667545182489},{"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.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//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport EquipmentMaintain from '@/api/device/EquipmentMaintain.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'MaintainDetails',\n components: {},\n mixins: [TableMixin],\n data: function data() {\n return {\n total: 0,\n warnTypeList: [],\n parameters: {},\n //接收路由参数\n querys: [{\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 'warn.WARN_TIME_',\n relation: 'AND',\n value: ''\n }]\n };\n },\n created: function created() {\n this.deviceTypeList = dictUtils.getDictItemsFromCache('gjsblx');\n this.warnTypeList = dictUtils.getDictItemsFromCache('gjlx');\n this.parameters = this.$route.query;\n console.log(this.parameters);\n },\n methods: {\n loadData: function loadData(page) {\n var _this = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam = {\n groupRelation: 'AND',\n groupTree: {},\n pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'warn.DEVICE_CODE_',\n relation: 'AND',\n value: this.parameters.code\n }],\n sorter: [{\n direction: 'DESC',\n property: 'warn.WARN_TIME_'\n }]\n };\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n EquipmentMaintain.getwarnInfo(this.queryParam, function (res) {\n _this.total = res.total;\n _this.tableData = res.rows;\n\n _this.$set(_this.tableData);\n\n _this.tableData.forEach(function (item) {\n _this.warnTypeList.forEach(function (val) {\n if (item.warnType == val.value) {\n item['warnTypeName'] = val.name;\n }\n });\n\n _this.deviceTypeList.forEach(function (val) {\n if (item.deviceType == val.value) {\n item['deviceTypeName'] = val.name;\n }\n });\n });\n\n _this.$set(_this.tableData);\n\n _this.loading = false;\n });\n },\n goBack: function goBack() {\n this.$router.go(-1);\n },\n // 重置\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.loadData(1);\n }\n }\n};",null]}