e68aae91 by lxs Committed by lihua

接入全景数字地图

1 parent 9803975c
...@@ -178,6 +178,28 @@ const routes: RouteRecordRaw[] = [ ...@@ -178,6 +178,28 @@ const routes: RouteRecordRaw[] = [
178 } 178 }
179 ] 179 ]
180 }, 180 },
181 {
182 path: '/data-meta/portraitMap',
183 component: Layout,
184 meta: {
185 title: '全景地图',
186 icon: 'sidebar-videos',
187 },
188 children: [
189 {
190 path: '',
191 name: 'portraitMap',
192 component: () => import('@/views/data_meta/portraitMap.vue'),
193 meta: {
194 title: '全景地图',
195 sidebar: false,
196 breadcrumb: false,
197 cache: true,
198 reuse: true
199 },
200 }
201 ]
202 }
181 ] 203 ]
182 204
183 export default routes 205 export default routes
......
...@@ -177,6 +177,9 @@ const useMenuStore = defineStore( ...@@ -177,6 +177,9 @@ const useMenuStore = defineStore(
177 if ((data== "/data-meta/reports/iframePage" || data== "/data-meta/report/budgetDataIndex") && r.path?.includes('/data-meta/report')) { 177 if ((data== "/data-meta/reports/iframePage" || data== "/data-meta/report/budgetDataIndex") && r.path?.includes('/data-meta/report')) {
178 return true; 178 return true;
179 } 179 }
180 if (data== "/data-meta/portraitMap" && r.path?.includes('/data-meta/portraitMap')) {
181 return true;
182 }
180 if (data.indexOf(`${r.path}/`) === 0 || data === r.path) { 183 if (data.indexOf(`${r.path}/`) === 0 || data === r.path) {
181 return true; 184 return true;
182 } 185 }
......
...@@ -157,9 +157,9 @@ const useRouteStore = defineStore( ...@@ -157,9 +157,9 @@ const useRouteStore = defineStore(
157 }; 157 };
158 } 158 }
159 r = routes.find((route: any) => { 159 r = routes.find((route: any) => {
160 return route.path === path || route.path === m.path || `/${route.path}` === m.path || ((path.includes('budgetDataIndex') && path.includes('/data-meta/report') && route.path.includes('/data-meta/report')) || (path.includes('iframePage') && path.includes('/data-meta/report'))); 160 return route.path === path || route.path === m.path || `/${route.path}` === m.path || ((path.includes('budgetDataIndex') && path.includes('/data-meta/report') && route.path.includes('/data-meta/report')) || (path.includes('iframePage') && path.includes('/data-meta/report')) || (path.includes('/data-meta/portraitMap') && route.path.includes('/data-meta/portraitMap')));
161 }); 161 });
162 if (r && (path.includes('budgetDataIndex') || path.includes('iframePage'))) { 162 if (r && (path.includes('budgetDataIndex') || path.includes('iframePage')) || path.includes('portraitMap')) {
163 r.path = path; 163 r.path = path;
164 } 164 }
165 if(r && m.icon && m.icon !== "{}") { 165 if(r && m.icon && m.icon !== "{}") {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!