From 2527a643d7ac70c7a4742b297972d46c8b1495a4 Mon Sep 17 00:00:00 2001 From: hcong <1050828145@qq.com> Date: 星期二, 12 十一月 2024 10:50:09 +0800 Subject: [PATCH] 问题审核bug修改 --- src/views/fysp/check/ProCheck.vue | 79 +++++++++++++++++++-------------------- 1 files changed, 38 insertions(+), 41 deletions(-) diff --git a/src/views/fysp/check/ProCheck.vue b/src/views/fysp/check/ProCheck.vue index 1fc2217..8ca7913 100644 --- a/src/views/fysp/check/ProCheck.vue +++ b/src/views/fysp/check/ProCheck.vue @@ -8,7 +8,11 @@ </SearchBar> </template> <template #aside> - <SideList :items="subtasks" :loading="sideLoading" @item-click="chooseSubtask"></SideList> + <SideList + :items="subtasks" + :loading="sideLoading" + @item-click="chooseSubtask" + ></SideList> </template> <template #main> <ToolBar @@ -17,7 +21,11 @@ :buttons="buttons" :loading="mainLoading" ></ToolBar> - <el-scrollbar v-if="curProList.length > 0" class="el-scrollbar" v-loading="mainLoading"> + <el-scrollbar + v-if="curProList.length > 0" + class="el-scrollbar" + v-loading="mainLoading" + > <CompProblemCard v-if="compProblemCardVisible" :key="i" @@ -47,29 +55,23 @@ @submited="newProSubmit" /> </el-dialog> - <el-dialog - v-model="anyPhotoDialog" - :before-close="beforeAnyPhotoDialogclose" - width="80%" - title="浠绘剰鍥剧墖" - > - <ArbitraryPhoto - v-if="anyPhotoDialog" - :readonly="true" - :subtask="curSubtask.data" - ref="arbitraryPhotoRef" - @selectByAnyPhonoEvent="handleCloseCheckAnyPhono" - > - </ArbitraryPhoto> - </el-dialog> + <ArbitraryPhoto + v-if="anyPhotoDialog" + v-model:dialog-visible="anyPhotoDialog" + title="鍦烘櫙鍥剧墖" + :readonly="true" + :subtask="curSubtask.data" + ref="arbitraryPhotoRef" + ></ArbitraryPhoto> <el-drawer - :direction="rtl" + direction="ltr" v-model="deviceShowDialog" :before-close="beforeDeviceShowDialogclose" title="璁炬柦璁惧" - size="65%" + size="45%" > - <CompDeviceShowTest v-if="deviceShowDialog" ref="deviceShowRef"> </CompDeviceShowTest> + <CompDeviceShowTest v-if="deviceShowDialog" ref="deviceShowRef"> + </CompDeviceShowTest> </el-drawer> </template> @@ -77,14 +79,9 @@ import ArbitraryPhoto from './components/ArbitraryPhoto.vue'; import taskApi from '@/api/fysp/taskApi'; import ProCheckProxy from './ProCheckProxy'; - -import { ElMessageBox, ElNotification, ElMessage } from 'element-plus'; import CompProblemAddOrUpd from './components/CompProblemAddOrUpd.vue'; -import CompDeviceShow from './components/CompDeviceShow.vue'; - import CompProblemCard from './components/CompProblemCard.vue'; import CompSubTaskStatistic from './components/CompSubTaskStatistic.vue'; -import CompProRecent from './components/CompProRecent.vue'; import CompDeviceShowTest from './components/CompDeviceShowTest.vue'; export default { components: { @@ -92,8 +89,7 @@ CompSubTaskStatistic, CompProblemAddOrUpd, ArbitraryPhoto, - CompDeviceShowTest, - CompProRecent + CompDeviceShowTest }, data() { return { @@ -126,7 +122,7 @@ } }, { - name: '浠绘剰鍥剧墖', + name: '鍦烘櫙鍥剧墖', color: 'warning', click: () => { this.anyPhotoDialog = true; @@ -139,11 +135,11 @@ this.openDeviceShowDialog(); } }, - { - name: '鎵归噺瀹℃牳', - color: 'primary', - click: () => {} - } + // { + // name: '鎵归噺瀹℃牳', + // color: 'primary', + // click: () => {} + // } ] }; }, @@ -239,7 +235,7 @@ // 鍏抽棴璁惧鍥惧脊绐� beforeDeviceShowDialogclose(done) { // this.deviceShowDialog = false; - done() + done(); }, // 鍏抽棴浠绘剰鍥剧墖寮圭獥 beforeAnyPhotoDialogclose() { @@ -253,12 +249,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 +307,9 @@ }); }, // 闂鍗$墖缁勪欢涓诲姩鍙戣捣鍒锋柊鐖剁粍浠舵暟鎹� - updateSubtask(isOk) { + updateSubtask() { this.curSubtask.data.proCheckedNum++; this.curSubtask.type = this.getSubtaskType(this.curSubtask.data); - if (!isOk) { - return; - } this.refreshCurrSubtask(); }, onProSubmited(isOk) { @@ -320,7 +317,7 @@ if (!isOk) { return; } - this.updateSubtask(isOk); + this.updateSubtask(); }, newProSubmit(isOk) { this.proAddOrUpdDialogVisible = false; -- Gitblit v1.9.3