| | |
| | | visible(n) { |
| | | this.dialogVisible = n; |
| | | if (n) { |
| | | this.saveParam=this.setSaveParam(); |
| | | this.apiInit() |
| | | this.apiDict() |
| | | } |
| | |
| | | }, |
| | | deep:true, |
| | | immediate:true |
| | | } |
| | | }, |
| | | parameter:{ |
| | | handler(newval,oldval){ |
| | | console.log('子',newval) |
| | | } |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | tags: [], |
| | | typeName: [], |
| | | collectParam: {}, |
| | | saveParam: this.saveParam(), |
| | | saveParam: this.setSaveParam(), |
| | | users: [], |
| | | rules: { |
| | | processName: [ |
| | |
| | | }, |
| | | |
| | | mounted() { |
| | | // this.apiInit() |
| | | // this.apiDict() |
| | | }, |
| | | methods: { |
| | | saveParam() { |
| | | created() { |
| | | }, |
| | | methods: { |
| | | setSaveParam() { |
| | | return { |
| | | processName: this.parameter[this.parameterKeys.flowTemplate], |
| | | topName: this.title, |
| | |
| | | return this.initFrom.findIndex(i => i.taskId === arr1) |
| | | }, |
| | | async apiInit() { |
| | | const response = await personnelInit({ type: this.parameter[this.parameterKeys.type], templateId: this.parameter[this.parameterKeys.code] }) |
| | | const response = await personnelInit({ type: this.parameter[this.parameterKeys.type], templateId: this.parameter[this.parameterKeys.code]}) |
| | | if (response.status === 200) { |
| | | console.log(response) |
| | | this.initFrom = response.data.data.user |
| | |
| | | message: "请选择节点!" |
| | | }); |
| | | } else { |
| | | const {modelKey,modelName,processDesc,processName,templateId,topName,vars} = this.saveParam |
| | | const vals= {modelKey,modelName,processDesc,processName,templateId,topName,...vars} |
| | | const {modelKey,modelName,processDesc,processName,templateId,topName,vars,ids} = this.saveParam |
| | | const vals= {modelKey,modelName,processDesc,processName,templateId,topName,ids,...vars} |
| | | const response = await personnelSave({ variables:vals, flowTaskUsers: this.collectParam.flowTaskUsers, }) |
| | | if (response.status === 200) { |
| | | console.log(response) |