czh-20260617-修复首页我的工作点击办理缺失经办人;删除首页无法渲染的logo

This commit is contained in:
zhihao
2026-06-17 10:14:37 +08:00
parent 31827e85d6
commit 88e83d773a
2 changed files with 36 additions and 2 deletions
@@ -147,12 +147,46 @@
vars: result.records, vars: result.records,
}; };
let tempFormUrl = result.formUrl; 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]; 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 }; 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) { async function handleClaim(record) {
await taskClaim({ taskId: record.id }); await taskClaim({ taskId: record.id });
await reloadTodo(); await reloadTodo();
@@ -4,7 +4,7 @@
<div class="welcome-banner__deco welcome-banner__deco--bottom"></div> <div class="welcome-banner__deco welcome-banner__deco--bottom"></div>
<div class="welcome-banner__content"> <div class="welcome-banner__content">
<div class="welcome-banner__left"> <div class="welcome-banner__left">
<h2 class="welcome-banner__title">{{ greeting }}{{ userinfo.realname }}<span class="welcome-banner__wave">👋</span></h2> <h2 class="welcome-banner__title">{{ greeting }}{{ userinfo.realname }}</h2>
</div> </div>
<div class="welcome-banner__right"> <div class="welcome-banner__right">
<div class="welcome-banner__date-btn"> <div class="welcome-banner__date-btn">