|
|
@@ -63,7 +63,7 @@
|
|
|
</header>
|
|
|
|
|
|
<!-- 路由内容 -->
|
|
|
- <div class="content">
|
|
|
+ <div :class="isGis == '/onemap' ? 'content-gis' : 'content'">
|
|
|
<router-view />
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -71,7 +71,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
-import { computed } from 'vue'
|
|
|
+import { computed, ref } from 'vue'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
import { useUserStore } from '@/stores/user'
|
|
|
@@ -81,7 +81,8 @@ const logo = new URL('/static/image/logo.png', import.meta.url).href
|
|
|
|
|
|
const userStore = useUserStore()
|
|
|
const router = useRouter()
|
|
|
-const userName = "徐天炜"
|
|
|
+const userInfo = JSON.parse(localStorage.getItem('userInfo') || '{}')
|
|
|
+const userName = userInfo?.username =='user_xtw' ? '徐天炜' : userInfo?.username || ''
|
|
|
const navItems = [
|
|
|
{ path: '/dashboard', name: '工作台' },
|
|
|
{ path: '/onemap', name: '空间一张图' },
|
|
|
@@ -92,10 +93,11 @@ const navItems = [
|
|
|
{ path: '/tender-pool', name: '招标监测' },
|
|
|
{ path: '/bid-result', name: '开标与中标' }
|
|
|
]
|
|
|
-
|
|
|
+const isGis = ref('')
|
|
|
const currentTitle = computed(() => {
|
|
|
// sessionStorage.setItem('activeTab','ongoing')
|
|
|
const item = navItems.find(n => n.path === router.currentRoute.value.path)
|
|
|
+ isGis.value = item?.path ?? ''
|
|
|
if(!item){
|
|
|
return sessionStorage.getItem('name')
|
|
|
}else{
|
|
|
@@ -273,6 +275,13 @@ const handleLogout = () => {
|
|
|
height: calc(100vh - 70px);
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
+.content-gis {
|
|
|
+ padding: 0 0;
|
|
|
+ /* flex: 1; */
|
|
|
+ /* height: calc(70px); */
|
|
|
+ height: 100%;
|
|
|
+ overflow-y: auto;
|
|
|
+}
|
|
|
|
|
|
.el-dropdown-link {
|
|
|
cursor: pointer;
|