From 13272e92a6c98daad06aa166a6674bf4dac7cc4b Mon Sep 17 00:00:00 2001 From: hcong <1050828145@qq.com> Date: 星期一, 21 十月 2024 11:06:55 +0800 Subject: [PATCH] 问题审核1021 --- src/views/fysp/check/ProCheck.vue | 25 ++++++++++++++----------- 1 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/views/fysp/check/ProCheck.vue b/src/views/fysp/check/ProCheck.vue index 4be5761..d5e6803 100644 --- a/src/views/fysp/check/ProCheck.vue +++ b/src/views/fysp/check/ProCheck.vue @@ -63,11 +63,11 @@ </ArbitraryPhoto> </el-dialog> <el-drawer - :direction="rtl" + direction="ltr" v-model="deviceShowDialog" :before-close="beforeDeviceShowDialogclose" title="璁炬柦璁惧" - size="65%" + size="45%" > <CompDeviceShowTest v-if="deviceShowDialog" ref="deviceShowRef"> </CompDeviceShowTest> </el-drawer> @@ -237,8 +237,9 @@ }); }, // 鍏抽棴璁惧鍥惧脊绐� - beforeDeviceShowDialogclose() { - this.deviceShowDialog = false; + beforeDeviceShowDialogclose(done) { + // this.deviceShowDialog = false; + done() }, // 鍏抽棴浠绘剰鍥剧墖寮圭獥 beforeAnyPhotoDialogclose() { @@ -252,12 +253,16 @@ }, //鏌ヨ瀛愪换鍔$粺璁′俊鎭� search(formSearch) { - this.topTask = formSearch.obj; + this.topTask = formSearch.topTask; this.sideLoading = true; this.mainLoading = true; this.curProList = []; this.curSubtask = {}; - taskApi.getSubtaskSummary(formSearch).then((res) => { + const param = { + topTaskId: formSearch.topTask.tguid, + sceneTypeId :formSearch.sceneTypeId + } + taskApi.getSubtaskSummary(param).then((res) => { const list = []; res.forEach((s) => { const t = this.getSubtaskType(s); @@ -306,12 +311,10 @@ }); }, // 闂鍗$墖缁勪欢涓诲姩鍙戣捣鍒锋柊鐖剁粍浠舵暟鎹� - updateSubtask(isOk) { + updateSubtask() { + this.curSubtask.data.proCheckedNum++; this.curSubtask.type = this.getSubtaskType(this.curSubtask.data); - if (!isOk) { - return; - } this.refreshCurrSubtask(); }, onProSubmited(isOk) { @@ -319,7 +322,7 @@ if (!isOk) { return; } - this.updateSubtask(isOk); + this.updateSubtask(); }, newProSubmit(isOk) { this.proAddOrUpdDialogVisible = false; -- Gitblit v1.9.3