From fab4d7d62b2039ab8660649d26a8c6f8f32193b5 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 11 一月 2024 17:41:11 +0800 Subject: [PATCH] 1. 初步完成评估任务整体逻辑; 2. 新增评估记录下载功能(待完善) --- src/views/fysp/evaluation/components/precheck/CompPreCheck.vue | 41 ++++++++++++++++++++++++++++------------- 1 files changed, 28 insertions(+), 13 deletions(-) diff --git a/src/views/fysp/evaluation/components/precheck/CompPreCheck.vue b/src/views/fysp/evaluation/components/precheck/CompPreCheck.vue index e291c40..7001369 100644 --- a/src/views/fysp/evaluation/components/precheck/CompPreCheck.vue +++ b/src/views/fysp/evaluation/components/precheck/CompPreCheck.vue @@ -2,17 +2,18 @@ <el-steps :active="stepIndex" finish-status="success" style="" align-center> <el-step title="璇勪及鑼冨洿" /> <el-step title="鏁版嵁婧愭鏌�" /> - <el-step title="璞佸厤鏉$洰" /> + <el-step title="鏉$洰璞佸厤" /> <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> + <CompCheckSource v-show="stepIndex == 1" v-model="stepIndex" ref="refSource"></CompCheckSource> <CompCheckExemption v-show="stepIndex == 2" v-model="stepIndex"></CompCheckExemption> - <CompCheckConfirm v-show="stepIndex == 3" v-model="stepIndex"></CompCheckConfirm> + <CompCheckConfirm + v-show="stepIndex == 3" + v-model="stepIndex" + :area-info="area" + @start="onNewTask" + ></CompCheckConfirm> </template> <script> @@ -29,7 +30,7 @@ name: 'CompPreCheck', components: { CompCheckArea, CompCheckSource, CompCheckExemption, CompCheckConfirm }, props: {}, - emits: ['preCheck'], + emits: ['startTask'], data() { return { // 鎿嶄綔姝ラ涓嬫爣 @@ -41,16 +42,30 @@ /** * 鐩戝惉璇勪及鑼冨洿鍙樻洿 */ - onAreaChange(v) { - // this.area = v; - this.$refs.refSource.startCheck(v); + onAreaChange(val) { + const v = val.value; + this.area = { + provincecode: v._locations.pCode, + provincename: v._locations.pName, + citycode: v._locations.cCode, + cityname: v._locations.cName, + districtcode: v._locations.dCode, + districtname: v._locations.dName, + towncode: v._locations.tCode, + townname: v._locations.tName, + starttime: this.$fm.formatYMDH(v.time), + scensetypeid: v._scenetype.value, + online: true, + sourceType: v.sourceType + }; + this.$refs.refSource.startCheck(this.area); }, /** * 鑷姩璇勪及鍓嶇疆鍚堣鎬ф鏌� * 妫�鏌ユ墍閫夎寖鍥村唴鍚勯」璇勪及鏁版嵁婧愭槸鍚﹀畬鏁� */ - preCheck() { - // this.$emit('preCheck', param) + onNewTask() { + this.$emit('startTask'); } } }; -- Gitblit v1.9.3