| | |
| | | typeof: String, |
| | | default: '流程审批' |
| | | }, |
| | | // 参数:选择的id,多个以数组方式传递:['id','id'],模板id,模板用途,流程名字,流程模板 |
| | | // 参数:选择的id,多个以数组方式传递:['id','id'],模板id,模板用途,流程名字,流程模板, |
| | | // flowTemplate: |
| | | // vars:object格式,名字为vars,里面key键值,自己随意 |
| | | parameter: { |
| | | typeof: Object, |
| | | default: () => { } |
| | |
| | | processName: this.parameter[this.parameterKeys.flowTemplate], |
| | | topName: this.title, |
| | | ids: this.parameter[this.parameterKeys.ids], |
| | | vars:this.parameter['vars'] |
| | | } |
| | | }, |
| | | userIndex(arr1) { |
| | |
| | | message: "请选择节点!" |
| | | }); |
| | | } else { |
| | | console.log('baoc') |
| | | const response = await personnelSave({ ...this.saveParam, flowTaskUsers: this.collectParam.flowTaskUsers }) |
| | | const {modelKey,modelName,processDesc,processName,templateId,topName,vars} = this.saveParam |
| | | const vals= {modelKey,modelName,processDesc,processName,templateId,topName,...vars} |
| | | const response = await personnelSave({ variables:vals, flowTaskUsers: this.collectParam.flowTaskUsers, }) |
| | | if (response.status === 200) { |
| | | console.log(response) |
| | | this.$message({ |
| | |
| | | ids:['0000','22222222'], |
| | | code:'8b5e2017-990f-454a-9c39-4c4eeeb57553', |
| | | type:'PUBLIC', |
| | | template:'模板template' |
| | | template:'模板template', |
| | | vars:{ |
| | | name:'111', |
| | | sex:'222' |
| | | } |
| | | }, |
| | | props:{ |
| | | flowTemplate:'template', |
| | |
| | | { label: '任务名称', prop: 'historyActivityName', minWidth: 120 }, |
| | | { label: '执行操作', prop: 'sex', minWidth: 80 }, |
| | | { label: '任务开始时间', prop: 'createTime', minWidth: 140 }, |
| | | { label: '审批意见', prop: 'sex', minWidth: 220, overHidden: true }, |
| | | { label: '审批意见', prop: 'comment', minWidth: 220, overHidden: true }, |
| | | { label: '执行人', prop: 'assigneeName', minWidth: 80 }, |
| | | { label: '任务完成时间', prop: 'endTime', minWidth: 140 }, |
| | | { label: '已上传审批文件', prop: 'sex', minWidth: 220, overHidden: true }, |
| | |
| | | if (res.success) { |
| | | this.$message.success(res.msg); |
| | | this.$router.$avueRouter.closeTag(); |
| | | this.$router.push({ path: `/work/start` }); |
| | | this.$router.push({ path: `/work/todo` }); |
| | | } else { |
| | | this.$message.error(res.msg || '提交失败'); |
| | | } |