42 lines
1.0 KiB
JavaScript
42 lines
1.0 KiB
JavaScript
import { WeaLocaleProvider } from 'ecCom';
|
|
const getLabel = WeaLocaleProvider.getLabel;
|
|
|
|
export const getRightMenus=(isAdd)=>{
|
|
let rightMenus = [{
|
|
key: 'save',
|
|
content: getLabel(86, '保存', 'label'),
|
|
icon: <i className="icon-coms-Preservation" />
|
|
}];
|
|
if(!isAdd){
|
|
rightMenus=[...rightMenus, {
|
|
key: 'delete',
|
|
content: getLabel(91, '删除', 'label'),
|
|
icon: <i className="icon-coms-delete" />
|
|
}, {
|
|
key: 'addNewRemind',
|
|
content: getLabel(33416, '新建提醒', 'label'),
|
|
icon: <i className="icon-coms-New-Flow" />
|
|
}];
|
|
}
|
|
return rightMenus;
|
|
}
|
|
|
|
export const tabs = [{
|
|
name: getLabel(81711, '基本信息'),
|
|
key: '1'
|
|
}, {
|
|
name: getLabel(20620, '任务看板'),
|
|
key: '2'
|
|
}, {
|
|
name: getLabel(15153,"相关交流"),
|
|
key: '3'
|
|
},{
|
|
name: getLabel(20620, '日报'),
|
|
key: '4'
|
|
}, {
|
|
name:getLabel(320, '任务列表'),
|
|
key: '6'
|
|
}, {
|
|
name:getLabel(352, '统计'),
|
|
key: '7'
|
|
}]; |