feat: unify order workbench and stable paged evidence views
This commit is contained in:
1 parent
10eac70745
commit
84e2f0d9ba
30 files changed
+543
-294
No files matched your search
@@ -1,14 +1,14 @@
|
||||
'use strict';
|
||||
window.AppNavigation=(()=>{
|
||||
const primary=[['overview','overview'],['order-notifications','mail'],['records','file'],['exceptions','alert'],['assistant','spark'],['business-settings','rules'],['system-settings','settings']];
|
||||
const primary=[['overview','overview'],['notification-orders','file'],['notification-batches','mail'],['tools','spark'],['exceptions','alert'],['business-settings','rules'],['system-settings','settings']];
|
||||
const groups={
|
||||
records:['records','records-pdf'],
|
||||
'order-notifications':['order-notifications','notification-execution','notification-orders','notification-batches','notification-history','schedule'],
|
||||
tools:['records','records-pdf','assistant','storage'],
|
||||
'order-notifications':['notification-orders','notification-batches','schedule'],
|
||||
'business-settings':['order-rules','rule-fields'],
|
||||
'system-settings':['bpm','mail','storage','assistant-settings','health','users','audit']
|
||||
'system-settings':['bpm','mail','assistant-settings','health','users','audit']
|
||||
};
|
||||
const configuration=['schedule','calendar','templates','notification-settings'];
|
||||
const aliases={'business-settings':'order-rules','system-settings':'bpm',rules:'order-rules',notifications:'order-rules',supervisor:'health',connections:'health'};
|
||||
const aliases={'order-notifications':'overview','notification-execution':'notification-orders','notification-history':'notification-batches',tools:'records','business-settings':'order-rules','system-settings':'bpm',rules:'order-rules',notifications:'order-rules',supervisor:'health',connections:'health'};
|
||||
const icons={
|
||||
overview:'M4 4h6v6H4z M14 4h6v6h-6z M4 14h6v6H4z M14 14h6v6h-6z',
|
||||
mail:'M4 5h16v14H4z M4 6l8 6 8-6',
|
||||
@@ -36,7 +36,7 @@ window.AppNavigation=(()=>{
|
||||
if(item.left<box.left+5)container.scrollLeft-=box.left+5-item.left;
|
||||
else if(item.right>box.right-5)container.scrollLeft+=item.right-box.right+5;
|
||||
}
|
||||
function links(ids,active,{views,esc},labels={}){return ids.map(id=>`<a class="nav-link settings-tab ${active===id?'active':''}" href="${window.RecordState?.href(id)||'#'+id}" ${['records','records-pdf'].includes(id)?'data-record-route="'+id+'"':''} ${active===id?'aria-current="page"':''}>${icon(routeIcons[id])}<span>${esc(labels[id]||views[id][0])}</span></a>`).join('');}
|
||||
function links(ids,active,{views,esc},labels={}){return ids.map(id=>`<a class="nav-link settings-tab ${active===id?'active':''}" href="${window.RecordState?.href(id)||'#'+id}" ${['records','records-pdf','notification-orders','notification-batches'].includes(id)?'data-record-route="'+id+'"':''} ${active===id?'aria-current="page"':''}>${icon(routeIcons[id])}<span>${esc(labels[id]||views[id][0])}</span></a>`).join('');}
|
||||
function renderTabs(container,{id,user,views,esc}){
|
||||
const section=sectionFor(id);container.hidden=!section;
|
||||
container.className='nav nav-segmented settings-tabs';container.setAttribute('aria-label',section==='records'?'记录导航':section==='order-notifications'?'订单通知管理导航':section==='business-settings'?'业务设置导航':'系统设置导航');
|
||||
|
||||
Reference in new issue
Block a user