Merge branch release/21.7.5 of zentao/zentaopms (#11370)
This commit is contained in:
@@ -93,13 +93,17 @@ function getZentaoListProps(type, blockID, props)
|
||||
if(props && props.isTemplate) blockID = '__TML_ZENTAOLIST__' + blockID;
|
||||
|
||||
const zentaoListLang = getLang('zentaoList');
|
||||
const exportUrl = $.createLink('doc', 'ajaxExportZentaoList', `blockID=${blockID}`);
|
||||
const exportUrl = `${location.origin}${$.createLink('doc', 'ajaxExportZentaoList', `blockID=${blockID}`)}`;
|
||||
const title = [(zentaoListLang ? zentaoListLang[type] : type), getLang('list')].join(config.clientLang.includes('zh') ? '' : ' ');
|
||||
return $.extend(
|
||||
{
|
||||
title: [(zentaoListLang ? zentaoListLang[type] : type), getLang('list')].join(config.clientLang.includes('zh') ? '' : ' '),
|
||||
exportUrl: `${location.origin}${exportUrl}`,
|
||||
title: title,
|
||||
fetcher: $.createLink('doc', 'zentaoList', `type=${type}&blockID=${blockID}`),
|
||||
clearBeforeLoad: false
|
||||
}, type === 'gantt' ? {
|
||||
export: [{type: 'link', props: {text: title, href: exportUrl}}]
|
||||
} : {
|
||||
exportUrl: exportUrl,
|
||||
}, props);
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
+14
-14
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user