* [bug#65177] Move the code of biz to pms.

This commit is contained in:
xieqiyu
2025-09-08 01:37:11 +00:00
parent bbaac98a60
commit 607bd37261
2 changed files with 30 additions and 5 deletions
+26 -5
View File
@@ -2227,11 +2227,32 @@ window.getDocViewSidebarTabs = function(doc, info)
].filter(Boolean);
}
if(info.isNewDoc) return [{key: 'outline', icon: 'list-box', title: getLang('docOutline')}];
return [
{key: 'outline', icon: 'list-box', title: getLang('docOutline')},
{key: 'history', icon: 'history', title: getLang('history')},
]
let tabList = [];
if(info.isNewDoc)
{
tabList.push({key: 'outline', icon: 'list-box', title: getLang('docOutline')});
}
else
{
tabList.push(
{key: 'outline', icon: 'list-box', title: getLang('docOutline')},
{key: 'history', icon: 'history', title: getLang('history')}
);
}
if(info.mode == 'view' && doc.status != 'draft' && !doc.api)
{
tabList.push(
{
key : 'relateObject',
icon : 'link',
title : getLang('relateObject'),
render: function(doc){return {fetcher: $.createLink('doc', 'ajaxGetRelatedObjects', `docID=${doc.id}`)}}
});
}
return tabList;
}
function getSpaceFetcher(spaceType, spaceID = 0)