From b0d112cd650d36132039ae19155f012f07d9500f Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 17 Dec 2024 16:43:11 +0800
Subject: [PATCH] 全局搜索去除、免登录增加、经纬度等信息显示去除
---
src/pages/login.vue | 28 +++++++++-------------------
src/pages/map/index.vue | 4 ++--
src/components/global/MapContainer.vue | 4 ++--
3 files changed, 13 insertions(+), 23 deletions(-)
diff --git a/src/components/global/MapContainer.vue b/src/components/global/MapContainer.vue
index 87e5913..d26f5a2 100644
--- a/src/components/global/MapContainer.vue
+++ b/src/components/global/MapContainer.vue
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2024-10-25 15:07:51
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-12-16 17:09:32
+ * @LastEditTime: 2024-12-17 16:41:32
* @FilePath: \bigScreen\src\components\global\MapContainer.vue
* @Description:
*
@@ -42,7 +42,7 @@
window.$turf = DC.getLib('turf')
window.$viewer = new DC.Viewer('viewer-container')
- window.$viewer.locationBar.enable = true
+ // window.$viewer.locationBar.enable = true
window.$viewer.zoomToPosition(new DC.Position(
115.4674,
diff --git a/src/pages/login.vue b/src/pages/login.vue
index ed98946..9cd9a97 100644
--- a/src/pages/login.vue
+++ b/src/pages/login.vue
@@ -1,5 +1,5 @@
<template>
- <div class="box">
+ <!-- <div class="box">
<div class="login">
<div class="logintitle">
新干化工园区“一园一策一图”VR平台
@@ -11,7 +11,7 @@
<el-button class="loginto" type="primary" @click="login">登录</el-button>
</div>
</div>
- </div>
+ </div> -->
</template>
<script setup>
@@ -29,9 +29,9 @@
//角色ID
roleId: '',
//用户名
- username: '',
+ username: 'xgsuper_admin',
//密码
- password: '',
+ password: 'XinGan@2024',
//账号类型
type: 'account',
//验证码的值
@@ -44,22 +44,12 @@
flag: 1,
})
-const login = () => {
- const loading = ElLoading.service({
- lock: true,
- text: '登录中,请稍后。。。',
- background: 'rgba(0, 0, 0, 0.7)',
+store.LoginByUsername(loginForm).then(res => {
+ router.push({
+ path: '/layout'
})
-
- store.LoginByUsername(loginForm).then(res => {
- router.push({
- path: '/layout'
- })
- loading.close()
- }).catch(() => {
- loading.close()
- })
-}
+}).catch(() => {
+})
</script>
<style lang="scss" scoped>
diff --git a/src/pages/map/index.vue b/src/pages/map/index.vue
index f66317a..1c25396 100644
--- a/src/pages/map/index.vue
+++ b/src/pages/map/index.vue
@@ -13,7 +13,7 @@
<map-container ref="MapContainer">
<template #content>
<div v-if="showContent" :class="[showSubLayout ? 'main-content-sub' : 'main-content']" id="MainContent">
- <main-search></main-search>
+ <!-- <main-search></main-search> -->
<main-tool></main-tool>
<div class="w100 h100 relative">
@@ -26,7 +26,7 @@
</template>
<script setup>
-import mainSearch from './components/mainSearch.vue'
+// import mainSearch from './components/mainSearch.vue'
import mainTool from './components/mainTool.vue'
import { useMap } from 'store/map'
--
Gitblit v1.9.3