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 NODE_ENV=development
# VUE_APP_API_SERVER = http://epmet-dev.elinkservice.cn:41080/api # 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-test.elinkservice.cn/api
# VUE_APP_API_SERVER = https://epmet-cloud.elinkservice.cn/api # VUE_APP_API_SERVER = https://epmet-cloud.elinkservice.cn/api
# VUE_APP_API_SERVER = https://epdc-shibei.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; width: 360px;
height: calc(825px - 15px); height: calc(825px - 15px);
.menu {
position: relative;
width: 100%;
margin-bottom: 20px;
// height: calc((825px - 15px - 20px) / 2);
}
.title { .title {
margin-bottom: 10px; margin-bottom: 10px;
padding: 4px 0; padding: 4px 0;
@ -212,9 +219,9 @@
} }
} }
.list { .wrap {
margin-right: -8px; margin-right: -8px;
height: calc(825px - 120px); height: calc(825px - 45px);
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
@include scrollBar; @include scrollBar;

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

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

Loading…
Cancel
Save