+
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]