diff --git a/src/assets/images/app/location.png b/src/assets/images/app/location.png new file mode 100644 index 0000000..7f69ef4 Binary files /dev/null and b/src/assets/images/app/location.png differ diff --git a/src/store/getters.js b/src/store/getters.js index f42973b..5fed973 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -10,6 +10,7 @@ const getters = { id: state => state.user.id, name: state => state.user.name, nickName: state => state.user.nickName, + user: state => state.user, introduction: state => state.user.introduction, roles: state => state.user.roles, permissions: state => state.user.permissions, diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 2c7baeb..9b098fc 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -12,6 +12,7 @@ const user = { name: '', nickName: '', avatar: '', + user: {}, roles: [], permissions: [], //获取登录页相关标题 @@ -42,13 +43,15 @@ const user = { SET_AVATAR: (state, avatar) => { state.avatar = avatar }, + SET_USER: (state, user) => { + state.user = user + }, SET_ROLES: (state, roles) => { state.roles = roles }, SET_PERMISSIONS: (state, permissions) => { state.permissions = permissions }, - SET_STSTEMCONFIGlIST: (state, systemConfigList) => { state.systemConfigList = systemConfigList }, @@ -103,6 +106,7 @@ const user = { commit('SET_NAME', user.userName) commit('SET_NICK_NAME', user.nickName) commit('SET_AVATAR', avatar) + commit('SET_USER', user) /* 初始密码提示 */ if(res.isDefaultModifyPwd) { MessageBox.confirm('您的密码还是初始密码,请修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { diff --git a/src/views/app/detail.vue b/src/views/app/detail.vue index e26f3d5..bab88b1 100644 --- a/src/views/app/detail.vue +++ b/src/views/app/detail.vue @@ -42,10 +42,10 @@ - +
- +
@@ -61,6 +61,8 @@ data() { return { value:'', + // 项目路径 + baseRoutingUrll: '/api',//process.env.VUE_APP_BASE_API form:{} }; }, diff --git a/src/views/app/index.vue b/src/views/app/index.vue index fe8b531..5da14b6 100644 --- a/src/views/app/index.vue +++ b/src/views/app/index.vue @@ -43,6 +43,7 @@ }, created() { this.getMenuApp(); + console.log(this.$store.getters) }, methods: { getMenuApp(){ diff --git a/src/views/app/map-bf.vue b/src/views/app/map-bf.vue new file mode 100644 index 0000000..83c8796 --- /dev/null +++ b/src/views/app/map-bf.vue @@ -0,0 +1,916 @@ + + + diff --git a/src/views/app/map.vue b/src/views/app/map.vue index 76b83fb..7acc35d 100644 --- a/src/views/app/map.vue +++ b/src/views/app/map.vue @@ -13,182 +13,183 @@ 搜索 -
-
-
- - - - - - - - - - - - -
-

- -

-
-
-
- -
+ +
+ +
+ +
+ +
+ + + + + + +
- -
-

属性数据

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -634,6 +619,25 @@ color: #000000; } } + .location{ + display: flex; + align-items: center; + justify-content: center; + width: 50px; + height: 50px; + margin: 2vh; + position: absolute; + top: 12vh; + right: 0vw; + z-index: 9; + background-color: rgba(0,0,0,0.5); + border-radius: 10px; + img{ + width: 30px; + height: 30px; + border: 1px dashed #ffffff; + } + } .van-popup{ background: linear-gradient( 180deg, #E5FFF4 0%, #ffffff 100%); .landPopup{ @@ -860,4 +864,31 @@ width: 20vw; } } + + #land-btn-wrap { + position: relative; + width: 40%; + left: 60%; + bottom: 95%; + z-index: 2000; + } + + #landMapBox { + width: 100%; + height: 100%; + } + .ant-btn-red { + position: relative; + display: inline-block; + background: #D0EEFF; + border: 1px solid #99D3F5; + border-radius: 4px; + padding: 4px 12px; + overflow: hidden; + color: #1E88C7; + text-decoration: none; + text-indent: 0; + line-height: 20px; + right: -36%; + } diff --git a/vue.config.js b/vue.config.js index 0824733..1203326 100644 --- a/vue.config.js +++ b/vue.config.js @@ -10,7 +10,7 @@ const CompressionPlugin = require('compression-webpack-plugin') const name = process.env.VUE_APP_TITLE //const baseUrl = 'http://localhost:8080' // 后端接口 -const baseUrl = 'http://192.168.0.109:8080' // 后端接口 zzl +const baseUrl = 'http://192.168.0.106:8080' // 后端接口 zzl const port = process.env.port || process.env.npm_config_port || 80 // 端口