feat: introduce Vue Bootstrap interface and scoped router network status
This commit is contained in:
+2
-2
@@ -15,12 +15,12 @@ function deviceCameras(cameras,context=deviceContext){
|
||||
if(context.source==='recorder')return cameras.filter(c=>c.recorderId===context.id||c.archiveRecorderId===context.id);
|
||||
return [];
|
||||
}
|
||||
function enterDevice(source,id,tab='device'){
|
||||
function enterDevice(source,id,tab='auto'){
|
||||
const device=ZhaoDevices.catalog(state).find(d=>d.source===source&&d.id===id);
|
||||
if(!device){toast('该设备不存在或未获授权');return;}
|
||||
stopPlayers();resetPlayback();if(typeof closePtz==='function')closePtz();
|
||||
const returnSite=$('#site-filter').value;$('#site-filter').value='';deviceContext={source,id,returnSite};scopeEntered=true;
|
||||
showPage(tab==='device'&&source==='camera'&&deviceCameras(state.cameras).length?'live':tab);
|
||||
showPage(tab==='auto'?(source==='camera'&&deviceCameras(state.cameras).length?'live':'device'):tab);
|
||||
}
|
||||
function renderSteward(){
|
||||
const home=currentHome(),device=selectedDevice(),within=loggedIn&&scopeEntered&&!!home;
|
||||
|
||||
Reference in New Issue
Block a user