From af5a8d80bca9b8c08543238a370ea3c70c8c59b1 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 21 十一月 2024 11:09:21 +0800 Subject: [PATCH] Merge branch 'hc-dataproduct-v1112' into lsf-dataproduct-1024 --- src/views/fysp/check/components/CompProblemAddOrUpd.vue | 41 +++++++++++++++++++++++++++++++++-------- 1 files changed, 33 insertions(+), 8 deletions(-) diff --git a/src/views/fysp/check/components/CompProblemAddOrUpd.vue b/src/views/fysp/check/components/CompProblemAddOrUpd.vue index 2f58db3..1200e69 100644 --- a/src/views/fysp/check/components/CompProblemAddOrUpd.vue +++ b/src/views/fysp/check/components/CompProblemAddOrUpd.vue @@ -214,7 +214,6 @@ </CompGenericWrapper> </template> <script> -import CompGenericWrapper from './CompGenericWrapper.vue'; import ArbitraryPhoto from './ArbitraryPhoto.vue'; import CompLedgerPhoto from './CompLedgerPhoto.vue'; import CompDevicePhoto from './CompDevicePhoto.vue'; @@ -232,7 +231,6 @@ ArbitraryPhoto, CompDevicePhoto, CompLedgerPhoto, - CompGenericWrapper }, props: { readonly: { @@ -263,6 +261,8 @@ }, data() { return { + // fixme 2024.11.20 瀛愮粍浠跺垵濮嬪寲鏃舵満闂 + initPropsCount: 0, // 鍒濆棰勮鍥剧墖index initialIndex: -1, // 鍥剧墖閫夋嫨鏈�澶ф暟閲� @@ -327,10 +327,37 @@ }, deep: true }, + initPropsCount: { + handler(nv, ov) { + if (nv >= 3) { + this.initOptions(); + } + }, + immediate: true + }, problem: { handler(nv, ov) { - this.initOptions(); - } + if (nv != null && nv != undefined) { + this.initPropsCount++; + } + }, + immediate: true + }, + topTask: { + handler(nv, ov) { + if (nv != null && nv != undefined) { + this.initPropsCount++; + } + }, + immediate: true + }, + subtask: { + handler(nv, ov) { + if (nv != null && nv != undefined) { + this.initPropsCount++; + } + }, + immediate: true } }, computed: { @@ -362,15 +389,13 @@ return array; } }, - mounted() { - this.initOptions(); - }, + mounted() {}, methods: { onProAdviseChange(value) { this.deepCopyProblem._adviseEdit = this.deepCopyProblem.advice; }, handlePictureCardPreview(uploadFile) { - this.initialIndex = this.fileList.indexOf(uploadFile) + this.initialIndex = this.fileList.indexOf(uploadFile); this.previewDialogVisible = true; this.previewDialogImageUrl = uploadFile.url; }, -- Gitblit v1.9.3