Browse Source

Merge branch 'dev-tuceng0616' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into dev-tuceng0616

shibei_master
jiangyy 3 years ago
parent
commit
90cda7b951
  1. 2
      src/views/modules/cpts/base/cpts/edit.vue
  2. 5
      src/views/modules/shequzhili/csgltc/csgl.vue
  3. 16
      src/views/modules/shequzhili/csgltc/csglForm.vue
  4. 5
      src/views/modules/shequzhili/ggfwtc/ggfw.vue
  5. 14
      src/views/modules/shequzhili/ggfwtc/ggfwForm.vue

2
src/views/modules/cpts/base/cpts/edit.vue

@ -506,7 +506,7 @@ export default {
// //
search search
.searchRectangle({ .searchRectangle({
keyword: item.value, keyword: this.fmData[item.keyName],
bounds: map.getBounds(), bounds: map.getBounds(),
}) })
.then((result) => { .then((result) => {

5
src/views/modules/shequzhili/csgltc/csgl.vue

@ -526,8 +526,9 @@ export default {
const { data, code, msg } = await requestPost(url, fileFormData) const { data, code, msg } = await requestPost(url, fileFormData)
if (code === 0) { if (code === 0) {
this.$message({ this.$message({
type: "success", showClose: true,
message: "导入成功" message: "导入中,请到系统管理-导入记录中查看进度",
duration: 0,
}); });
this.loadTable() this.loadTable()

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

@ -62,6 +62,8 @@
label-width="150px"> label-width="150px">
<el-input-number class="item_width_4" <el-input-number class="item_width_4"
v-model="formData.areaCovered" v-model="formData.areaCovered"
:precision="2"
:step="0.01"
:min="0" :min="0"
:max="9999" :max="9999"
label="占地面积"></el-input-number> label="占地面积"></el-input-number>
@ -240,8 +242,10 @@ export default {
data : this.cityManagement data : this.cityManagement
} }
this.formData = { ...data } this.formData = { ...data }
map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude)) const lat = this.formData.latitude === null || this.formData.latitude === '' ? '' : this.formData.latitude;
this.setMarker(this.formData.latitude, this.formData.longitude) const lon = this.formData.longitude === null || this.formData.longitude === '' ? '' : this.formData.longitude;
map.setCenter(new TMap.LatLng(lat,lon))
this.setMarker(lat,lon)
} else { } else {
this.$message.error(msg) this.$message.error(msg)
} }
@ -274,7 +278,7 @@ export default {
}else { }else {
url = '/gov/org/icCityManagement/edit' url = '/gov/org/icCityManagement/edit'
} }
const { data, code, msg } = await requestPost(url, this.formData) const { data, code, msg, internalMsg } = await requestPost(url, this.formData)
if (code === 0) { if (code === 0) {
this.$message({ this.$message({
type: 'success', type: 'success',
@ -285,7 +289,7 @@ export default {
this.btnDisable = false this.btnDisable = false
} else { } else {
this.btnDisable = false this.btnDisable = false
this.$message.error(msg) this.$message.error(internalMsg)
} }
}, },
@ -298,7 +302,7 @@ export default {
// init // init
initMap () { initMap () {
// //
var center = new window.TMap.LatLng(36.0722275, 120.38945519) var center = new window.TMap.LatLng(36.52799, 120.7553)
// map TMap.Map() // map TMap.Map()
map = new window.TMap.Map(document.getElementById('app'), { map = new window.TMap.Map(document.getElementById('app'), {
center: center, // center: center, //
@ -401,7 +405,7 @@ export default {
geocoder geocoder
.getAddress({ location: location }) // .getAddress({ location: location }) //
.then((result) => { .then((result) => {
this.formData.address = result.result.address this.formData.address = result.result.address === '' || result.result.address === null ? this.formData.address : result.result.address
// //
}); });
}, },

5
src/views/modules/shequzhili/ggfwtc/ggfw.vue

@ -562,8 +562,9 @@ export default {
const { data, code, msg } = await requestPost(url, fileFormData) const { data, code, msg } = await requestPost(url, fileFormData)
if (code === 0) { if (code === 0) {
this.$message({ this.$message({
type: "success", showClose: true,
message: "导入成功" message: "导入中,请到系统管理-导入记录中查看进度",
duration: 0,
}); });
this.loadTable() this.loadTable()

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

@ -44,6 +44,8 @@
label-width="150px"> label-width="150px">
<el-input-number class="item_width_4" <el-input-number class="item_width_4"
v-model="formData.areaCovered" v-model="formData.areaCovered"
:precision="2"
:step="0.01"
:min="0" :min="0"
:max="9999" :max="9999"
label="占地面积"></el-input-number> label="占地面积"></el-input-number>
@ -218,8 +220,10 @@
} }
this.formData = { ...data } this.formData = { ...data }
map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude)) const lat = this.formData.latitude === null || this.formData.latitude === '' ? '' : this.formData.latitude;
this.setMarker(this.formData.latitude, this.formData.longitude) const lon = this.formData.longitude === null || this.formData.longitude === '' ? '' : this.formData.longitude;
map.setCenter(new TMap.LatLng(lat, lon))
this.setMarker(lat, lon)
} else { } else {
this.$message.error(msg) this.$message.error(msg)
} }
@ -252,7 +256,7 @@
}else { }else {
url = '/gov/org/icPublicService/edit' url = '/gov/org/icPublicService/edit'
} }
const { data, code, msg } = await requestPost(url, this.formData) const { data, code, msg,internalMsg } = await requestPost(url, this.formData)
if (code === 0) { if (code === 0) {
this.$message({ this.$message({
type: 'success', type: 'success',
@ -263,7 +267,7 @@
this.btnDisable = false this.btnDisable = false
} else { } else {
this.btnDisable = false this.btnDisable = false
this.$message.error(msg) this.$message.error(internalMsg)
} }
}, },
@ -380,7 +384,7 @@
geocoder geocoder
.getAddress({ location: location }) // .getAddress({ location: location }) //
.then((result) => { .then((result) => {
this.formData.address = result.result.address this.formData.address = result.result.address === '' || result.result.address === null ? this.formData.address : result.result.address
// //
}); });
}, },

Loading…
Cancel
Save