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/components/CompCheckConfirm.vue | 32 +++++++++++++++++++++----------- 1 files changed, 21 insertions(+), 11 deletions(-) diff --git a/src/views/fysp/evaluation/components/precheck/components/CompCheckConfirm.vue b/src/views/fysp/evaluation/components/precheck/components/CompCheckConfirm.vue index b8f819e..c117318 100644 --- a/src/views/fysp/evaluation/components/precheck/components/CompCheckConfirm.vue +++ b/src/views/fysp/evaluation/components/precheck/components/CompCheckConfirm.vue @@ -1,36 +1,46 @@ <template> <el-card shadow="never"> - Never4 + <template #header> + <div><el-text tag="b" size="large">鑷姩璇勪及纭</el-text></div> + <el-text size="small" type="info">鏈�缁堢‘璁よ嚜鍔ㄨ瘎浼板悇閰嶇疆椤癸紝骞跺紑濮嬭嚜鍔ㄨ瘎浼�</el-text> + </template> + <div>璇勪及鑼冨洿</div> + <div>璇勪及鏁版嵁婧愬畬鏁村害</div> + <div>鏄惁鏈夎眮鍏嶆潯鐩�</div> <template #footer> <el-row justify="space-around"> <el-button type="primary" size="default" @click="lastStep">涓婁竴姝�</el-button> - <!-- <el-button type="primary" size="default" @click="nextStep">涓嬩竴姝�</el-button> --> + <el-button type="primary" size="default" @click="startEvaluate">寮�濮嬭瘎浼�</el-button> </el-row> </template> </el-card> </template> <script> +import evaluateApi from '@/api/fysp/evaluateApi'; + /** * 璇勪及浠诲姟鏈�缁堝紑鍚‘璁� */ export default { props: { // 姝ラ涓嬫爣 - modelValue: Number + modelValue: Number, + // 鍖哄煙淇℃伅 + areaInfo: Object }, - emits: ['update:modelValue'], + emits: ['update:modelValue', 'start'], data() { - return { - - }; + return {}; }, methods: { - // 璺宠浆涓嬩竴姝� - nextStep() { - this.$emit('update:modelValue', this.modelValue + 1); + // 寮�鍚嚜鍔ㄨ瘎浼颁换鍔� + startEvaluate() { + evaluateApi.autoEvaluate(this.areaInfo).then((res) => { + this.$emit('start', res.data); + }); }, - // 璺宠浆涓嬩竴姝� + // 璺宠浆涓婁竴姝� lastStep() { this.$emit('update:modelValue', this.modelValue - 1); } -- Gitblit v1.9.3