| | |
| | | * @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: |
| | | * |
| | |
| | | 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, |
| | |
| | | <template> |
| | | <div class="box"> |
| | | <!-- <div class="box"> |
| | | <div class="login"> |
| | | <div class="logintitle"> |
| | | 新干化工园区“一园一策一图”VR平台 |
| | |
| | | <el-button class="loginto" type="primary" @click="login">登录</el-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | </template> |
| | | |
| | | <script setup> |
| | |
| | | //角色ID |
| | | roleId: '', |
| | | //用户名 |
| | | username: '', |
| | | username: 'xgsuper_admin', |
| | | //密码 |
| | | password: '', |
| | | password: 'XinGan@2024', |
| | | //账号类型 |
| | | type: 'account', |
| | | //验证码的值 |
| | |
| | | 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> |
| | |
| | | <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"> |
| | |
| | | </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' |