From 88e83d773a58039f585d4eac271e587440a1848c Mon Sep 17 00:00:00 2001 From: zhihao <18915542763@163.com> Date: Wed, 17 Jun 2026 10:14:37 +0800 Subject: [PATCH] =?UTF-8?q?czh-20260617-=E4=BF=AE=E5=A4=8D=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E6=88=91=E7=9A=84=E5=B7=A5=E4=BD=9C=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=8A=9E=E7=90=86=E7=BC=BA=E5=A4=B1=E7=BB=8F=E5=8A=9E=E4=BA=BA?= =?UTF-8?q?=EF=BC=9B=E5=88=A0=E9=99=A4=E9=A6=96=E9=A1=B5=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=B8=B2=E6=9F=93=E7=9A=84logo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProcessPortal/components/MyWork.vue | 36 ++++++++++++++++++- .../components/WelcomeBanner.vue | 2 +- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/ProcessPortal/components/MyWork.vue b/src/views/dashboard/ProcessPortal/components/MyWork.vue index 50a17ae..1d122d3 100644 --- a/src/views/dashboard/ProcessPortal/components/MyWork.vue +++ b/src/views/dashboard/ProcessPortal/components/MyWork.vue @@ -147,12 +147,46 @@ vars: result.records, }; let tempFormUrl = result.formUrl; - if (tempFormUrl && tempFormUrl.indexOf('?') != -1 && !/^http[s]?:\/\/.*/.test(tempFormUrl) && tempFormUrl.indexOf('{{DOMAIN_URL}}') == -1) { + //节点配置表单URL,VUE组件类型对应的拓展参数 + if (tempFormUrl && tempFormUrl.indexOf('?') != -1 && !isURL(tempFormUrl) && tempFormUrl.indexOf('{{DOMAIN_URL}}') == -1) { tempFormUrl = result.formUrl.split('?')[0]; + let qv: any = getQueryVariable(result.formUrl); + if (qv.edit == 1) { + formData['disabled'] = false; + } + formData.extendUrlParams = qv; + } + //如果没有taskId参数,程序自动追加,用于设计器表单节点权限 + if (tempFormUrl != null && tempFormUrl.indexOf('{{DOMAIN_URL}}/desform/') != -1 && tempFormUrl.indexOf('taskId') == -1) { + tempFormUrl = tempFormUrl.trim(); + if (tempFormUrl.endsWith('?')) { + tempFormUrl = tempFormUrl + 'taskId=' + result.taskDefKey; + } else { + tempFormUrl = tempFormUrl + '&taskId=' + result.taskDefKey; + } } return { formData, formUrl: tempFormUrl }; } + function isURL(s) { + return /^http[s]?:\/\/.*/.test(s); + } + + function getQueryVariable(url) { + if (!url) return; + let t, + n, + r, + i = url.split('?')[1], + s = {}; + (t = i.split('&')), (r = null), (n = null); + for (let o in t) { + let u = t[o].indexOf('='); + u !== -1 && ((r = t[o].substr(0, u)), (n = t[o].substr(u + 1)), (s[r] = n)); + } + return s; + } + async function handleClaim(record) { await taskClaim({ taskId: record.id }); await reloadTodo(); diff --git a/src/views/dashboard/ProcessPortal/components/WelcomeBanner.vue b/src/views/dashboard/ProcessPortal/components/WelcomeBanner.vue index a989b58..c619da3 100644 --- a/src/views/dashboard/ProcessPortal/components/WelcomeBanner.vue +++ b/src/views/dashboard/ProcessPortal/components/WelcomeBanner.vue @@ -4,7 +4,7 @@
-

{{ greeting }},{{ userinfo.realname }}👋

+

{{ greeting }},{{ userinfo.realname }}