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