hcong
2024-10-21 13272e92a6c98daad06aa166a6674bf4dac7cc4b
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;