From bb7ae31d7066a838bd177bf21c20f13ef044950b Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期三, 27 十二月 2023 17:45:45 +0800 Subject: [PATCH] 编写后台任务模块逻辑,完成80% --- src/views/fysp/evaluation/components/precheck/CompCheckArea.vue | 71 +++++++++++++++++------------------ 1 files changed, 34 insertions(+), 37 deletions(-) diff --git a/src/views/fysp/evaluation/components/precheck/CompCheckArea.vue b/src/views/fysp/evaluation/components/precheck/CompCheckArea.vue index 2d6ac12..3bdeeb2 100644 --- a/src/views/fysp/evaluation/components/precheck/CompCheckArea.vue +++ b/src/views/fysp/evaluation/components/precheck/CompCheckArea.vue @@ -4,39 +4,35 @@ <div><el-text tag="b" size="large">閫夋嫨璇勪及鑼冨洿</el-text></div> <el-text size="small" type="info">鍖呮嫭鍖哄幙銆佸満鏅被鍨嬩互鍙婃湀浠�</el-text> </template> - <FYForm - ref="formRef" - :form-info="evaConditon" - :rules="evaConditionRules" - :showButtons="false" - @submit="nextStep" - > - <template #form-item="{ formObj }"> - <CompQuickSet @quick-set="setOptions"></CompQuickSet> - <!-- 鍖哄幙 --> - <FYOptionLocation - :allOption="false" - :level="3" - :initValue="false" - :checkStrictly="false" - v-model:value="formObj._locations" - ></FYOptionLocation> - <!-- 鍦烘櫙绫诲瀷 --> - <FYOptionScene - :allOption="false" - :initValue="false" - :type="2" - v-model:value="formObj._scenetype" - ></FYOptionScene> - <!-- 鏃堕棿 --> - <FYOptionTime - prop="time" - :initValue="true" - type="month" - v-model:value="formObj.time" - ></FYOptionTime> - </template> - </FYForm> + <FormCol> + <FYForm ref="formRef" :rules="evaConditionRules" :showButtons="false" @submit="nextStep"> + <template #form-item="{ formObj }"> + <CompQuickSet @quick-set="setOptions"></CompQuickSet> + <!-- 鍖哄幙 --> + <FYOptionLocation + :allOption="false" + :level="3" + :initValue="false" + :checkStrictly="false" + v-model:value="formObj._locations" + ></FYOptionLocation> + <!-- 鍦烘櫙绫诲瀷 --> + <FYOptionScene + :allOption="false" + :initValue="false" + :type="2" + v-model:value="formObj._scenetype" + ></FYOptionScene> + <!-- 鏃堕棿 --> + <FYOptionTime + prop="time" + :initValue="true" + type="month" + v-model:value="formObj.time" + ></FYOptionTime> + </template> + </FYForm> + </FormCol> <template #footer> <el-row justify="space-around"> <el-button type="primary" size="default" :loading="loading" @click="submit" @@ -63,8 +59,6 @@ data() { return { loading: false, - // 璇勪及浠诲姟鑼冨洿 - evaConditon: {}, evaConditionRules: { time: [ { @@ -78,14 +72,17 @@ }, methods: { setOptions(param) { - this.evaConditon._locations = param.locations; - this.evaConditon._scenetype = param.scenetype; + this.$refs.formRef.formObj._locations = param.locations; + this.$refs.formRef.formObj._scenetype = param.scenetype; }, submit() { this.$refs.formRef.onSubmit(false); }, // 璺宠浆涓嬩竴姝� nextStep() { + // todo: 妫�鏌ユ槸鍚﹀凡鏈夎瘎浼拌褰曪紝鎻愮ず鐢ㄦ埛鍙洿鎺ヨ烦杞煡鐪嬫垨缁х画涓嬩竴姝� + + this.loading = true; return new Promise((reslove, reject) => { setTimeout(() => { -- Gitblit v1.9.3