zhangxp
2023-06-25 ce09f05787d274a506326c7e164a645d3bb1f377
流程调试
已修改3个文件
20 ■■■■ 文件已修改
Source/UBCS-WEB/src/components/template/SetPersonnel.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/flow/flowPath.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/work/process/leave/handle.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/template/SetPersonnel.vue
@@ -52,7 +52,9 @@
            typeof: String,
            default: '流程审批'
        },
        // 参数:选择的id,多个以数组方式传递:['id','id'],模板id,模板用途,流程名字,流程模板
        // 参数:选择的id,多个以数组方式传递:['id','id'],模板id,模板用途,流程名字,流程模板,
        // flowTemplate:
        // vars:object格式,名字为vars,里面key键值,自己随意
        parameter: {
            typeof: Object,
            default: () => { }
@@ -119,6 +121,7 @@
                processName: this.parameter[this.parameterKeys.flowTemplate],
                topName: this.title,
                ids: this.parameter[this.parameterKeys.ids],
                vars:this.parameter['vars']
            }
        },
        userIndex(arr1) {
@@ -197,8 +200,9 @@
                        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({
Source/UBCS-WEB/src/views/flow/flowPath.vue
@@ -23,7 +23,11 @@
                ids:['0000','22222222'],
                code:'8b5e2017-990f-454a-9c39-4c4eeeb57553',
                type:'PUBLIC',
                template:'模板template'
                template:'模板template',
                vars:{
                    name:'111',
                    sex:'222'
                }
            },
            props:{
                flowTemplate:'template',
Source/UBCS-WEB/src/views/work/process/leave/handle.vue
@@ -96,7 +96,7 @@
          { 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 },
@@ -145,7 +145,7 @@
      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 || '提交失败');
      }