ecodeSDK.overwriteClassFnQueueMapSet('WeaReqTop', {
fn: (Com, newProps) => {
const { hash } = window.location;
if (!ecodeSDK.checkLPath('/spa/workflow/index_form.jsp#/main/workflow/req')) return;
const baseInfo = WfForm.getBaseInfo();
if (baseInfo.workflowid !== 132) return;
// 修改页面标题
document.title = '服务平台-留言回复';
// 获取要隐藏的元素
const elementsToHide = document.querySelectorAll('.ant-row.wea-new-top-req, .wf-req-sign-input');
// 获取要修改的元素
const wrapperElement = document.querySelector('.wea-new-top-req-wapper');
console.log(elementsToHide);
// 遍历并隐藏元素
elementsToHide.forEach(element => {
element.style.display = 'none';
});
// 设置要修改的元素的padding-top为0
if (wrapperElement) {
wrapperElement.style.paddingTop = '0';
}
return newProps;
},
desc: '隐藏流程顶部与签字意见'
});
[泛微ecode] 隐藏流程顶部与签字意见(纯表单) by https://oneszhang.com/archives/78.html