{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\signboardDevice\\RealTimeMonitorSignboard.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\signboardDevice\\RealTimeMonitorSignboard.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\r\nimport {TableMixin} from '@/mixins/tableMixin'\r\nimport signboardDevice from '@/api/device/signboardDevice.js'\r\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\r\nimport RealTimeMonitorDialog from '@/components/detailsDialog/RealTimeMonitorDialog.vue'\r\nexport default {\r\n name: 'RealTimeMonitor',\r\n components: {\r\n RealTimeMonitorDialog,\r\n },\r\n mixins: [TableMixin],\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: 'b.coll_time_',\r\n relation: 'AND',\r\n value: '',\r\n },\r\n ],\r\n sorter: [\r\n {\r\n direction: 'DESC',\r\n property: 'createTime',\r\n },\r\n ],\r\n dataTypeList: [], //数据类型字典\r\n }\r\n },\r\n created() {\r\n if (this.$route.query.code) {\r\n this.querys.push({\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'b.device_code_',\r\n relation: 'AND',\r\n value: this.$route.query.code,\r\n })\r\n }\r\n this.dataTypeList = dictUtils.getDictItemsFromCache('sjlx')\r\n },\r\n mounted() {},\r\n methods: {\r\n toDialog(name) {\r\n this.$refs.RealTimeMonitorDialog.add(name)\r\n },\r\n handleUpdate(row) {\r\n console.log(row)\r\n },\r\n clearQuerys() {\r\n this.querys[0].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 = Object.assign(this.queryParam, {\r\n sorter: this.sorter,\r\n })\r\n if (this.querys[0].value) {\r\n this.queryParam.querys.push(this.querys[0])\r\n }\r\n if (this.$route.query.code) {\r\n this.queryParam.querys.push(this.querys[1])\r\n }\r\n signboardDevice.getQuery(this.queryParam, (res) => {\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.dataTypeList.forEach((val) => {\r\n if (item.dataType && item.dataType == val.value) {\r\n item['dataTypeName'] = val.name\r\n }\r\n })\r\n })\r\n })\r\n },\r\n },\r\n}\r\n",null]}