jiangyy 3 years ago
parent
commit
7fafe60675
  1. 3
      .env.development
  2. 11
      src/assets/scss/modules/visual/command.scss
  3. 8
      src/views/modules/shequzhili/csgltc/csglForm.vue
  4. 6
      src/views/modules/shequzhili/ggfwtc/ggfwForm.vue

3
.env.development

@ -1,6 +1,7 @@
NODE_ENV=development
# VUE_APP_API_SERVER = http://epmet-dev.elinkservice.cn:41080/api
VUE_APP_API_SERVER = http://192.168.1.140/api
# VUE_APP_API_SERVER = http://192.168.1.140/api
VUE_APP_API_SERVER = https://epmet-yantai.elinkservice.cn/api
# VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api
# VUE_APP_API_SERVER = https://epmet-cloud.elinkservice.cn/api
# VUE_APP_API_SERVER = https://epdc-shibei.elinkservice.cn/api

11
src/assets/scss/modules/visual/command.scss

@ -193,6 +193,13 @@
width: 360px;
height: calc(825px - 15px);
.menu {
position: relative;
width: 100%;
margin-bottom: 20px;
// height: calc((825px - 15px - 20px) / 2);
}
.title {
margin-bottom: 10px;
padding: 4px 0;
@ -212,9 +219,9 @@
}
}
.list {
.wrap {
margin-right: -8px;
height: calc(825px - 120px);
height: calc(825px - 45px);
overflow-y: auto;
overflow-x: hidden;
@include scrollBar;

8
src/views/modules/shequzhili/csgltc/csglForm.vue

@ -157,8 +157,8 @@ export default {
areaCovered: '',//
capacity: 0,//
address: '', //
longitude: 36.0722275, //
latitude: 120.38945519, //
longitude: null, //
latitude: null, //
principal: '',
mobile: ''
},
@ -292,11 +292,15 @@ export default {
initMap () {
//
let { latitude, longitude } = this.$store.state.user;
console.log('lat' + latitude + ',lon' + longitude)
if (!latitude || latitude == "" || latitude == "0") {
latitude = 39.9088810666821;
longitude = 116.39743841556731;
}
this.formData.latitude = latitude
this.formData.longitude = longitude
//
var center = new window.TMap.LatLng(latitude, longitude);
// var center = new window.TMap.LatLng(36.52799, 120.7553)

6
src/views/modules/shequzhili/ggfwtc/ggfwForm.vue

@ -138,8 +138,8 @@ export default {
areaCovered: '',//
capacity: '',//
address: '', //
longitude: 36.0722275, //
latitude: 120.38945519, //
longitude: null, //
latitude: null, //
principal: '',
mobile: ''
},
@ -277,6 +277,8 @@ export default {
latitude = 39.9088810666821;
longitude = 116.39743841556731;
}
this.formData.latitude = latitude
this.formData.longitude = longitude
//
var center = new window.TMap.LatLng(latitude, longitude);
// map TMap.Map()

Loading…
Cancel
Save