czh-20260617-修复首页我的工作点击办理缺失经办人;删除首页无法渲染的logo
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user