From d28223384922de5fb08c20516eb3f99981c8136a Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 22 十一月 2024 17:37:34 +0800 Subject: [PATCH] 1. 修复上传问题或整改图片后,界面更新错误问题; 2. 优化问题整改界面展示效果; 3. 场景图片对话框添加查看状态下可以点击图片放大功能 --- src/views/fysp/check/components/CompProblemAddOrUpd.vue | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/fysp/check/components/CompProblemAddOrUpd.vue b/src/views/fysp/check/components/CompProblemAddOrUpd.vue index 2cf3bc9..0ba0cb8 100644 --- a/src/views/fysp/check/components/CompProblemAddOrUpd.vue +++ b/src/views/fysp/check/components/CompProblemAddOrUpd.vue @@ -167,9 +167,7 @@ <el-button type="primary" @click="onSubmit" v-show="!readonly" >淇濆瓨</el-button > - <el-button @click="onCancel" v-show="!readonly" - >鍙栨秷</el-button - > + <el-button @click="onCancel" v-show="!readonly">鍙栨秷</el-button> </el-form-item> </el-form> <ArbitraryPhoto @@ -230,7 +228,7 @@ components: { ArbitraryPhoto, CompDevicePhoto, - CompLedgerPhoto, + CompLedgerPhoto }, props: { readonly: { @@ -586,8 +584,8 @@ return true; }, onCancel() { - this.$emit("cancel") - this.$emit('update:visible', false) + this.$emit('cancel'); + this.$emit('update:visible', false); }, onSubmit() { this.$refs.formRef.validate((valid) => { @@ -629,9 +627,10 @@ files.forEach((image) => { data.append('images', image); }); - problemApi.updateProblem(data).then((res) => {}); + problemApi.updateProblem(data).then((res) => { + this.$emit('submit', false); + }); }); - this.$emit('submit', false); } else { const deepCopySubTask = useCloned(this.subtask).cloned.value; const that = this; @@ -651,9 +650,10 @@ files.forEach((image) => { data.append('images', image); }); - problemApi.newProblem(data).then((res) => {}); + problemApi.newProblem(data).then((res) => { + this.$emit('submit', true); + }); }); - this.$emit('submit', true); } } }); -- Gitblit v1.9.3