hcong
2024-11-15 18eee6f8818b864d1f8d8fb56298620921f909e4
src/views/fysp/check/ProCheck.vue
@@ -26,8 +26,8 @@
        class="el-scrollbar"
        v-loading="mainLoading"
      >
        <template v-if="compProblemCardVisible">
        <CompProblemCard
          v-if="compProblemCardVisible"
          :key="i"
          v-for="(p, i) in curProList"
          :index="i + 1"
@@ -37,6 +37,7 @@
          @updated="onProSubmited"
          @submit="updateSubtask"
        ></CompProblemCard>
        </template>
      </el-scrollbar>
      <el-empty v-else description="暂无记录" v-loading="mainLoading" />
    </template>
@@ -44,7 +45,7 @@
  <el-dialog
    v-model="proAddOrUpdDialogVisible"
    :before-close="proAddOrUpdDialogClose"
    width="80%"
    width="50%"
    title="新增问题"
  >
    <CompProblemAddOrUpd
@@ -58,7 +59,6 @@
  <ArbitraryPhoto
    v-if="anyPhotoDialog"
    v-model:dialog-visible="anyPhotoDialog"
    title="场景图片"
    :readonly="true"
    :subtask="curSubtask.data"
    ref="arbitraryPhotoRef"
@@ -134,7 +134,7 @@
          click: () => {
            this.openDeviceShowDialog();
          }
        },
        }
        // {
        //   name: '批量审核',
        //   color: 'primary',
@@ -307,10 +307,12 @@
        });
    },
    // 问题卡片组件主动发起刷新父组件数据
    updateSubtask() {
    updateSubtask(refresh = true) {
      this.curSubtask.data.proCheckedNum++;
      this.curSubtask.type = this.getSubtaskType(this.curSubtask.data);
      if (refresh) {
      this.refreshCurrSubtask();
      }
    },
    onProSubmited(isOk) {
      this.proAddOrUpdDialogClose();