| | |
| | | }, |
| | | 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; |
| | |
| | | |
| | | 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 => { |
| | |
| | | getProcessNode(oid) { |
| | | let params = { |
| | | processOid: oid, |
| | | maxSecret: -1 |
| | | maxSecret: this.paramVOS.maxSecret || -1 |
| | | } |
| | | getAllProcessNode(params).then(res => { |
| | | const nodes = res.data.data; |