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