From 642d31285d7aff59415a5eb37f87a79f41d308a8 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期二, 25 三月 2025 17:29:49 +0800 Subject: [PATCH] 新增自动评估扬尘监测数据统计结果上传功能(待完成) --- src/views/fysp/evaluation/components/precheck/CompPreCheck.vue | 35 ++++++++++++++++++++++++++++++----- 1 files changed, 30 insertions(+), 5 deletions(-) diff --git a/src/views/fysp/evaluation/components/precheck/CompPreCheck.vue b/src/views/fysp/evaluation/components/precheck/CompPreCheck.vue index 7001369..a2b6e09 100644 --- a/src/views/fysp/evaluation/components/precheck/CompPreCheck.vue +++ b/src/views/fysp/evaluation/components/precheck/CompPreCheck.vue @@ -6,12 +6,23 @@ <el-step title="鑷姩璇勪及" /> </el-steps> <CompCheckArea v-show="stepIndex == 0" v-model="stepIndex" @change="onAreaChange"></CompCheckArea> - <CompCheckSource v-show="stepIndex == 1" v-model="stepIndex" ref="refSource"></CompCheckSource> - <CompCheckExemption v-show="stepIndex == 2" v-model="stepIndex"></CompCheckExemption> + <CompCheckSource + v-show="stepIndex == 1" + v-model="stepIndex" + ref="refSource" + @change="onDataSourceChange" + ></CompCheckSource> + <CompCheckExemption + v-show="stepIndex == 2" + v-model="stepIndex" + @change="onExemptionChange" + ></CompCheckExemption> <CompCheckConfirm v-show="stepIndex == 3" v-model="stepIndex" :area-info="area" + :data-source="dataSource" + :exemption-items="exemptionItems" @start="onNewTask" ></CompCheckConfirm> </template> @@ -35,7 +46,13 @@ return { // 鎿嶄綔姝ラ涓嬫爣 stepIndex: 0, - area: {} + area: { + _locations: {}, + _scenetype: {} + }, + dataSource: {}, + // 璞佸厤鏉$洰 + exemptionItems: {} }; }, methods: { @@ -44,7 +61,8 @@ */ onAreaChange(val) { const v = val.value; - this.area = { + this.area = v; + const a = { provincecode: v._locations.pCode, provincename: v._locations.pName, citycode: v._locations.cCode, @@ -54,11 +72,18 @@ towncode: v._locations.tCode, townname: v._locations.tName, starttime: this.$fm.formatYMDH(v.time), + endtime: this.$fm.formatYMDH(v.time), scensetypeid: v._scenetype.value, online: true, sourceType: v.sourceType }; - this.$refs.refSource.startCheck(this.area); + this.$refs.refSource.startCheck(a); + }, + onDataSourceChange(val) { + this.dataSource = val; + }, + onExemptionChange(val) { + this.exemptionItems = val; }, /** * 鑷姩璇勪及鍓嶇疆鍚堣鎬ф鏌� -- Gitblit v1.9.3