田源
2023-12-12 a4e0b8f640d739b17724b2e648196741b42631b8
Source/UBCS-WEB/src/views/flow/manager.vue
@@ -26,7 +26,7 @@
                   size="small"
                   icon="el-icon-refresh"
                   v-if="permissionList.state"
                   @click.stop="handleState(scope.row,scope.index)">变更状态
                   @click.stop="handleDoState(scope.row,scope.index)">{{scope.row.suspensionState===1?'激活':'挂起'}}
        </el-button>
        <el-button type="text"
                   size="small"
@@ -292,15 +292,15 @@
        this.stateBox = true;
        this.selectionId = row.id;
      },
      handleDoState() {
        if (!this.flowState) {
          this.$message({
            type: "warn",
            message: "请先选择流程状态!"
          });
          return;
        }
        changeState({processId: this.selectionId, state: this.flowState}).then(res => {
      handleDoState(row) {
        // if (!this.flowState) {
        //   this.$message({
        //     type: "warn",
        //     message: "请先选择流程状态!"
        //   });
        //   return;
        // }
        changeState({processId: row.id, state: (row.suspensionState === 1 ? 'suspend' : 'active')}).then(res => {
          const data = res.data;
          if (data.success) {
            this.$message({