智慧园区前端大屏
shuishen
2024-12-17 b0d112cd650d36132039ae19155f012f07d9500f
全局搜索去除、免登录增加、经纬度等信息显示去除
3 files modified
36 ■■■■■ changed files
src/components/global/MapContainer.vue 4 ●●●● patch | view | raw | blame | history
src/pages/login.vue 28 ●●●●● patch | view | raw | blame | history
src/pages/map/index.vue 4 ●●●● patch | view | raw | blame | history
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,
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>
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'