From 6dbf6f99aa1ecdcf7a32948c6332a5f4af81156e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Mon, 19 Feb 2024 14:32:14 +0800 Subject: [PATCH] =?UTF-8?q?Analysis=20Monitor=20=20---=20Avg=20Nuclide=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E5=A2=9E=E5=8A=A0station=20=20?= =?UTF-8?q?=E5=92=8C=20source=20type=20=E6=90=9C=E7=B4=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../analysisMonitor/avgNuclide/index.vue | 80 ++++++++++++++++++- 1 file changed, 77 insertions(+), 3 deletions(-) diff --git a/src/views/abnormalAlarm/analysisMonitor/avgNuclide/index.vue b/src/views/abnormalAlarm/analysisMonitor/avgNuclide/index.vue index 67eb63e..d3c2cfe 100644 --- a/src/views/abnormalAlarm/analysisMonitor/avgNuclide/index.vue +++ b/src/views/abnormalAlarm/analysisMonitor/avgNuclide/index.vue @@ -5,13 +5,43 @@ Config - + Cacl date + + Station + + + + + + Source Type + + + +
@@ -130,6 +160,8 @@ export default { dataSource: [], loading: false, queryParams: { + stationId: undefined, + sourceType: undefined, startDate: dateFormat(new Date(), 'yyyy-MM-dd'), endDate: dateFormat(new Date(), 'yyyy-MM-dd'), }, @@ -153,6 +185,17 @@ export default { index: '', }, currId: '', + stationOptions: [], + sourceOptions: [ + { + label: 'ARMDARR', + value: '1', + }, + { + label: 'ARMDRRR', + value: '2', + }, + ], } }, created() { @@ -162,6 +205,30 @@ export default { this.getNuclideAvgList() }, methods: { + onSourceChange(val) { + console.log(val) + }, + getStationList() { + getAction('/webStatistics/findStationList', { menuName: '' }).then((res) => { + if (res.success) { + if (res.result.length > 0) { + this.stationOptions = res.result.map((item) => { + return { + label: item.stationCode, + value: `${item.stationId}`, + } + }) + } else { + this.stationOptions = [] + } + } else { + this.$message.warning('This operation fails. Contact your system administrator') + } + }) + }, + filterOption(input, option) { + return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, // 获取n天前的日期 getBeforeDate(n) { var n = n @@ -188,8 +255,7 @@ export default { getNuclideAvgList() { this.loading = true let params = { - startDate: this.queryParams.startDate, - endDate: this.queryParams.endDate, + ...this.queryParams, pageNo: this.ipagination.current, pageSize: this.ipagination.pageSize, } @@ -203,6 +269,14 @@ export default { } }) }, + onStationChange(val) { + this.queryParams.stationId = val + this.getNuclideAvgList() + }, + onSourceChange(val) { + this.queryParams.sourceType = val + this.getNuclideAvgList() + }, onRangeDateChange(date, dateString) { this.queryParams.startDate = dateString[0] this.queryParams.endDate = dateString[1]