feiyu02
2025-09-17 b330e57051e54789eb83d10dc58c4d9d10c608e1
src/views/fysp/check/ProCheck.vue
@@ -21,7 +21,7 @@
      ></SideList>
    </template>
    <template #main>
      <el-scrollbar >
      <el-scrollbar>
        <ToolBar
          :title="curSubtask.title"
          :descriptions="proStatus"
@@ -72,32 +72,41 @@
    ref="deviceShowRef"
  >
  </CompDeviceShowTest>
  <SceneEditDialog
    v-model="sceneInfoDialog"
    :sceneId="curSubtask.data ? curSubtask.data.sceneId : undefined"
  ></SceneEditDialog>
</template>
<script>
import ArbitraryPhoto from './components/ArbitraryPhoto.vue';
import taskApi from '@/api/fysp/taskApi';
import problemApi from '@/api/fysp/problemApi';
import ProCheckProxy from './ProCheckProxy';
import CompProblemAddOrUpd from './components/CompProblemAddOrUpd.vue';
import CompProblemCard from './components/CompProblemCard.vue';
import CompSubTaskStatistic from './components/CompSubTaskStatistic.vue';
import CompDeviceShowTest from './components/CompDeviceShowTest.vue';
import SceneEditDialog from '@/views/fysp/scene/SceneEditDialog.vue';
export default {
  components: {
    CompProblemCard,
    CompSubTaskStatistic,
    CompProblemAddOrUpd,
    ArbitraryPhoto,
    CompDeviceShowTest
    CompDeviceShowTest,
    SceneEditDialog
  },
  data() {
    return {
      // 设备图
      // 设备图对话框
      deviceShowDialog: false,
      // 任意图
      // 任意图对话框
      anyPhotoDialog: false,
      // 新增问题
      // 新增问题对话框
      proAddOrUpdDialogVisible: false,
      // 基本信息对话框
      sceneInfoDialog: false,
      //左侧菜单栏加载状态
      sideLoading: false,
      //右侧内容栏加载状态
@@ -116,6 +125,14 @@
      curProList: [],
      //操作按钮
      buttons: [
        {
          name: '场景信息',
          color: 'success',
          // color: 'primary',
          click: () => {
            this.sceneInfoDialog = true;
          }
        },
        {
          name: '新增问题',
          // color: 'success',
@@ -168,7 +185,7 @@
      this.mainLoading = true;
      this.curProList = [];
      this.curSubtask = {};
      this.sceneTypeId = formSearch.sceneTypeId
      this.sceneTypeId = formSearch.sceneTypeId;
      const param = {
        topTaskId: formSearch.topTask.tguid,
        sceneTypeId: formSearch.sceneTypeId
@@ -201,7 +218,7 @@
      this.sideLoading = false;
      this.mainLoading = true;
      // const controller = new AbortController();
      taskApi
      problemApi
        .getProBySubtask(s.data.stGuid)
        .then((res) => {
          this.curProList = res;
@@ -226,7 +243,7 @@
      this.sideLoading = false;
      setTimeout(() => {
        this.mainLoading = true;
        taskApi
        problemApi
          .getProBySubtask(this.curSubtask.data.stGuid)
          .then((res) => {
            if (refresh) {