yuxc
2024-12-25 90b6945445ee97109a57f26c83788d24729a098e
Source/plt-web/plt-web-ui/src/components/actions/base/startWorkFlow.vue
@@ -1,7 +1,6 @@
<template>
  <el-dialog v-dialogDrag
             :close-on-click-modal="false"
             :destroy-on-close="true"
             :visible.sync="visible"
             :width="width"
             append-to-body="true"
@@ -162,16 +161,18 @@
  },
  created() {
    // this.modelNameChange();
    this.getWorkByType();
  },
  mounted() {
    this.getWorkByType();
  },
  methods: {
    // 获取流程模板信息
    getWorkByType() {
      console.log('this.paramVOS',this.paramVOS)
      let params = {
        type: '文档审签流程',
        filterTemplate: "文档审签流程"
        type: this.paramVOS.templatetype,
        filterTemplate: this.paramVOS.filterTemplate || ""
      }
      getTemplateByType(params).then(res => {
        const data = res.data.data;
@@ -179,11 +180,10 @@
        this.processTemplateList = data;
        this.saveParam.processTemplate = data[0].value;
        this.saveParam.processName = this.paramVOS.processName || userInfo.content.userName + '-' + data[0].value; // 对流程模板 流程名称赋默认值
        this.saveParam.processName = this.paramVOS.processname || userInfo.content.userName + '-' + data[0].value; // 对流程模板 流程名称赋默认值
        this.getProcessNode(data[0].attributes.oid); // 首次进入调用第一个模板的所有节点
      }).catch(err => {
        this.$message.error(err);
      })
    },
@@ -191,7 +191,7 @@
    getProcessNode(oid) {
      let params = {
        processOid: oid,
        maxSecret: -1
        maxSecret: this.paramVOS.maxSecret || -1
      }
      getAllProcessNode(params).then(res => {
        const nodes = res.data.data;
@@ -207,7 +207,6 @@
        })
        this.nodeLoading = false;
      }).catch(err => {
        this.$message.error(err);
      })
    },
@@ -244,7 +243,6 @@
          this.$message.error(res.data.obj.error);
        }
      }).catch(err => {
        this.$message.error(err);
      })
    },