Commit 63d89a6daafca3b1cd88f9e5ab8f18c346d5c5ab

Authored by fengtao
1 parent 2009a7c1

feat:联调首页服务端接口

@@ -113,7 +113,6 @@ @@ -113,7 +113,6 @@
113 import { useDate } from '../hooks/useDate'; 113 import { useDate } from '../hooks/useDate';
114 import { getTrendData } from '/@/api/dashboard'; 114 import { getTrendData } from '/@/api/dashboard';
115 import { useGlobSetting } from '/@/hooks/setting'; 115 import { useGlobSetting } from '/@/hooks/setting';
116 - import { getEntitiesId } from '/@/api/dashboard/index';  
117 116
118 defineExpose({ 117 defineExpose({
119 isAdmin, 118 isAdmin,
@@ -161,10 +160,6 @@ @@ -161,10 +160,6 @@
161 if (isAdmin(props.role)) return; 160 if (isAdmin(props.role)) return;
162 let content = JSON.parse(window.localStorage.getItem('entityId')); 161 let content = JSON.parse(window.localStorage.getItem('entityId'));
163 entityId = content; 162 entityId = content;
164 - if (entityId == null) {  
165 - const res = await getEntitiesId();  
166 - entityId = res.data[0]?.entityId;  
167 - }  
168 const sendValue = JSON.stringify({ 163 const sendValue = JSON.stringify({
169 entityDataCmds: [ 164 entityDataCmds: [
170 { 165 {
@@ -112,7 +112,6 @@ @@ -112,7 +112,6 @@
112 import { useDate } from '../hooks/useDate'; 112 import { useDate } from '../hooks/useDate';
113 import { getTrendData } from '/@/api/dashboard'; 113 import { getTrendData } from '/@/api/dashboard';
114 import { useGlobSetting } from '/@/hooks/setting'; 114 import { useGlobSetting } from '/@/hooks/setting';
115 - import { getEntitiesId } from '/@/api/dashboard/index';  
116 115
117 defineExpose({ 116 defineExpose({
118 isAdmin, 117 isAdmin,
@@ -160,10 +159,6 @@ @@ -160,10 +159,6 @@
160 if (isAdmin(props.role)) return; 159 if (isAdmin(props.role)) return;
161 let content = JSON.parse(window.localStorage.getItem('entityId')); 160 let content = JSON.parse(window.localStorage.getItem('entityId'));
162 entityId = content; 161 entityId = content;
163 - if (entityId == null) {  
164 - const res = await getEntitiesId();  
165 - entityId = res.data[0]?.entityId;  
166 - }  
167 const sendValue = JSON.stringify({ 162 const sendValue = JSON.stringify({
168 entityDataCmds: [ 163 entityDataCmds: [
169 { 164 {