xiangpei
2024-11-27 b5b6e591e419b5af414c5c97df2f842314e086a0
src/views/projectProcess/index.vue
@@ -270,9 +270,8 @@
      :currentColumns="columns"
    />
    <RunProcess :show="showRunProcess"
    <RunProcess ref="runProcess" :show="showRunProcess"
                :now-process-id="nowProcessId"
                :now-process-name="nowProcessName"
                :project-info="projectRunFrom"
                :process-list="processList"
                @close="closeRunProcess">
@@ -306,7 +305,6 @@
      processList: [],
      showRunProcess: false,
      nowProcessId: '',
      nowProcessName: '',
      isImportOrExport: false,
      fileDialogVisible: false,
      //是否需要新增按钮(储蓄项目需要)
@@ -390,6 +388,10 @@
  },
  methods: {
    closeRunProcess() {
      this.projectRunFrom = {
        projectId: null,
        projectName: ''
      }
      this.showRunProcess = false
      this.getList()
    },
@@ -398,10 +400,12 @@
      // 拿到流程列表 TODO 根据项目类型做筛选
      getProcessConfigInfoList().then(response => {
        this.processList = response.data;
        this.nowProcessId = row.flowableProcessId;
        // // 防止:id没变不触发监听
        // this.$refs.runProcess.setSelect(row.flowableProcessId);
        this.projectRunFrom.projectId = row.id;
        this.projectRunFrom.projectName = row.projectName;
        this.nowProcessId = row.flowableProcessId;
        this.nowProcessName = row.flowableProcessName;
        this.showRunProcess = true;
      });
    },