{"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\\EquipmentEventInfo.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceMonitor\\EquipmentEventInfo.vue","mtime":1695626572392},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport warning from '@/components/warningDialog/warning.vue'\nimport {TableMixin} from '@/mixins/tableMixin'\nimport dangerousDevice from '@/api/device/dangerousDevice.js'\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\nexport default {\n mixins: [TableMixin],\n components: {\n warning,\n },\n data() {\n return {\n querys: [\n {\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 'warnTime',\n relation: 'AND',\n value: '',\n },\n\n {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'deviceCode',\n relation: 'AND',\n value: '',\n },\n {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'handleStatus',\n relation: 'AND',\n value: '',\n },\n {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'warn.DEVICE_TYPE_',\n relation: 'AND',\n value: 5,\n },\n ],\n deviceTypeList: [], //设备告警类型字典\n handleStatusList: [], //处理状态字典\n warnTypeList: [], //告警类型字典\n }\n },\n created() {\n if (this.$route.query.warnTime) {\n this.querys[0].value = [\n this.$route.query.warnTime,\n this.$route.query.warnTime,\n ]\n }\n if (this.$route.query.deviceCode) {\n this.querys[1].value = this.$route.query.deviceCode\n }\n this.deviceTypeList = dictUtils.getDictItemsFromCache('gjsblx')\n this.handleStatusList = dictUtils.getDictItemsFromCache('clzt')\n this.warnTypeList = dictUtils.getDictItemsFromCache('gjlx')\n },\n methods: {\n handleUpdate(row) {\n console.log(row, 'res')\n this.$refs.warningForm.add(row)\n },\n // 重置\n clearQuerys() {\n this.querys[0].value = ''\n this.querys[1].value = ''\n this.querys[2].value = ''\n },\n loadData(page) {\n if (page) {\n this.queryParam.pageBean.page = page\n }\n this.loading = true\n this.tableData = []\n this.queryParam.querys = []\n this.queryParam.sorter = [\n {\n direction: 'DESC',\n property: 'warnTime',\n },\n ]\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0])\n }\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1])\n }\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2])\n }\n if (this.querys[3].value) {\n this.queryParam.querys.push(this.querys[3])\n }\n dangerousDevice.loadInfo(this.queryParam, (res) => {\n // console.log(res, 'ppppppp')\n this.tableData = res.rows\n this.total = res.total\n this.$set(this.tableData)\n this.loading = false\n this.tableData.forEach((item) => {\n this.warnTypeList.forEach((val) => {\n if (item.warnType == val.value) {\n item['warnType'] = val.name\n }\n })\n this.handleStatusList.forEach((val) => {\n if (item.handleStatus == val.value) {\n item['handleStatus'] = val.name\n }\n })\n })\n })\n },\n },\n}\n",null]}