| | |
| | | getWorkByType() { |
| | | let params = { |
| | | type: '文档审签流程', |
| | | filterTemplate: "" |
| | | filterTemplate: "文档审签流程" |
| | | } |
| | | getTemplateByType(params).then(res => { |
| | | const data = res.data.data; |
| | |
| | | |
| | | this.processTemplateList = data; |
| | | this.saveParam.processTemplate = data[0].value; |
| | | this.saveParam.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 => { |
| | |
| | | }, |
| | | |
| | | handleConfirm() { |
| | | const oids = this.dataStore.map(item => item.oid).join(','); |
| | | let params = { |
| | | deployid:this.processTemplateList[0].attributes.deploymentId, |
| | | title:this.saveParam.processName, |
| | | description:this.saveParam.processDesc, |
| | | btmType:this.processTemplateList[0].attributes.taskType, |
| | | uiType:this.processTemplateList[0].attributes.taskType, |
| | | oids:'', // 当前数据oid,多个用,分隔 |
| | | detailInfoUrl:'', // 用户配置属性 |
| | | oids:oids, // 当前数据oid,多个用,分隔 |
| | | detailInfoUrl:this.paramVOS.detailInfoUrl || '', // 用户配置属性 |
| | | resetStatus:'Editing', |
| | | nodeUsers:{ |
| | | ...this.collectParam |