jingling 9 months ago
commit 0b28798f63

@ -1,8 +1,8 @@
<!-- <!--
* @Author: 王文杰 * @Author: 王文杰
* @Date: 2024-02-02 09:28:28 * @Date: 2024-02-02 09:28:28
* @LastEditors: 王文杰 * @LastEditors: 王文杰
* @LastEditTime: 2024-02-02 13:45:21 * @LastEditTime: 2024-02-02 14:47:31
* @FilePath: /jnpf-web/src/components/mapComponents/index.vue * @FilePath: /jnpf-web/src/components/mapComponents/index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
@ -69,7 +69,6 @@
methods: { methods: {
// //
handleSureMap() { handleSureMap() {
debugger
this.$emit('sure', this.map_data) this.$emit('sure', this.map_data)
}, },
// //

@ -49,7 +49,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item class="site-item" label="回收站位置" prop="stationName"> <jnpf-form-tip-item class="site-item" label="回收站位置" prop="stationName">
<JnpfInput class="input" disabled v-model="dataForm.stationLocation" @change="changeData('stationName',-1)" placeholder="请选择站点位置" clearable :style='{"width":"100%"}'> <JnpfInput class="input" disabled v-model="dataForm.address" @change="changeData('stationName',-1)" placeholder="请选择站点位置" clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
<el-button @click="handleShowMap"></el-button> <el-button @click="handleShowMap"></el-button>
</jnpf-form-tip-item> </jnpf-form-tip-item>
@ -297,11 +297,12 @@ export default {
}, },
Vmodel: "", Vmodel: "",
currVmodel: "", currVmodel: "",
stationLocationObj: {}, //
dataForm: { dataForm: {
stationCode: undefined, stationCode: undefined,
stationName: undefined, stationName: undefined,
stationLocation: undefined, // address: undefined, //
longitude: undefined,
latitude: undefined,
shortName: undefined, shortName: undefined,
managementModel: undefined, managementModel: undefined,
city: [], city: [],
@ -333,7 +334,7 @@ export default {
message: '请输入', message: '请输入',
trigger: 'blur' trigger: 'blur'
}, ], }, ],
stationLocation: [{ address: [{
required: true, required: true,
message: '请输入', message: '请输入',
trigger: 'blur' trigger: 'blur'
@ -455,8 +456,9 @@ export default {
this.visibleMap = false this.visibleMap = false
}, },
sureMap(valObj){ sureMap(valObj){
this.stationLocationObj = valObj this.dataForm.address = valObj.address
this.dataForm.stationLocation = valObj.address this.dataForm.longitude = valObj.lng
this.dataForm.latitude = valObj.lat
console.log('位置信息',valObj) console.log('位置信息',valObj)
this.visibleMap = false this.visibleMap = false
}, },
@ -809,11 +811,6 @@ export default {
}, },
dataList() { dataList() {
var _data = this.dataForm; var _data = this.dataForm;
// stationLocationObj
var _data_new = {
..._data,
stationLocationObj: this.stationLocationObj
}
return _data; return _data;
}, },
dataInfo(dataAll) { dataInfo(dataAll) {

Loading…
Cancel
Save