| | |
| | | <template> |
| | | <el-dialog v-dialogDrag |
| | | :close-on-click-modal="false" |
| | | :destroy-on-close="true" |
| | | :visible.sync="visible" |
| | | :width="width" |
| | | append-to-body="true" |
| | |
| | | }, |
| | | 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 => { |
| | | this.$message.error(err); |
| | | }) |
| | | }, |
| | | |
| | |
| | | getProcessNode(oid) { |
| | | let params = { |
| | | processOid: oid, |
| | | maxSecret: -1 |
| | | maxSecret: this.paramVOS.maxSecret || -1 |
| | | } |
| | | getAllProcessNode(params).then(res => { |
| | | const nodes = res.data.data; |
| | |
| | | }) |
| | | this.nodeLoading = false; |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | | }, |
| | | |
| | |
| | | this.$message.error(res.data.obj.error); |
| | | } |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | | }, |
| | | |