ludc
2024-06-26 809dab4c259ea465efafe302c4a4a4b2ff555c7f
Source/plt-web/plt-web-ui/src/components/actions/base/startWorkFlow.vue
@@ -48,7 +48,7 @@
<script>
import {validatenull} from "@/util/validate";
import {getTemplateByType} from "@/api/base/startWork/index"
export default {
  name: "startWorkFlow",
  props: {
@@ -119,10 +119,23 @@
      }
    },
  },
  mounted() {
  created() {
    this.modelNameChange();
    this.getWorkByType();
  },
  mounted() {
  },
  methods: {
    // 获取流程模板信息
    getWorkByType(){
      let params = {
        type:'文档审签流程',
        filterTemplate:""
      }
      getTemplateByType(params).then(res => {
        console.log(res)
      })
    },
    // 关闭弹窗
    dialogClose() {
      this.visible = false;
@@ -151,7 +164,7 @@
      if (this.paramVOS && this.paramVOS.modelName) {
        this.saveParam.modelName = this.paramVOS.modelName;
      } else if (userInfo.content && userInfo.content.userName) {
        this.saveParam.modelName = userInfo.content.userName + '[启动流程]';
        this.saveParam.modelName = userInfo.content.userName + '启动流程';
      } else {
        this.saveParam.modelName = '';
      }