From d7d7da5c09340eafcd2e2c672e6b2c001a4cc0be Mon Sep 17 00:00:00 2001 From: hcong <1050828145@qq.com> Date: 星期五, 08 十一月 2024 08:38:40 +0800 Subject: [PATCH] 基础数据产品-场景清单,监管清单 --- src/views/fysp/check/ProCheck.vue | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/views/fysp/check/ProCheck.vue b/src/views/fysp/check/ProCheck.vue index 1fc2217..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> @@ -253,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); @@ -307,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) { @@ -320,7 +322,7 @@ if (!isOk) { return; } - this.updateSubtask(isOk); + this.updateSubtask(); }, newProSubmit(isOk) { this.proAddOrUpdDialogVisible = false; -- Gitblit v1.9.3