|
@@ -78,10 +78,12 @@
|
|
|
</view>
|
|
|
|
|
|
|
|
|
- <view class="form-label-select">
|
|
|
+ <view class="form-label-input">
|
|
|
<view class="phone-form-label"><text class="form-label-require"></text>通讯地址</view>
|
|
|
- <view>{{formData.juzhuDizhi}}</view>
|
|
|
- <view @click="openMap">点击</view>
|
|
|
+ <view @click="openMap" class="input-text-row">
|
|
|
+ <view >{{formData.juzhuDizhi}}</view>
|
|
|
+ <icon></icon>
|
|
|
+ </view>
|
|
|
<!-- <picker :range="shuxiangList" mode='selector' :value="formData.shuxiangIndex" range-key="name"
|
|
|
@change="shuxiangChange" @cancel="shuxiangCancel" class="select-picker-box">
|
|
|
<view class="form-radio-select">
|
|
@@ -89,7 +91,6 @@
|
|
|
<icon></icon>
|
|
|
</view>
|
|
|
</picker> -->
|
|
|
- <icon></icon>
|
|
|
</view>
|
|
|
|
|
|
<view class="form-label-select">
|
|
@@ -344,17 +345,18 @@
|
|
|
// 确认选择时获取完整数据
|
|
|
onPickerConfirm() {
|
|
|
const [provinceIndex, cityIndex] = this.multiIndex;
|
|
|
-
|
|
|
+
|
|
|
const selectedProvince = this.multiArray[0][provinceIndex];
|
|
|
const selectedCity = this.multiArray[1][cityIndex];
|
|
|
- this.formData.jiguanShengId = selectedProvince.value
|
|
|
- this.formData.jiguanShiId = selectedCity.value
|
|
|
- this.formData.jiguanShiName = selectedCity.label
|
|
|
- this.formData.jiguanShengName = selectedProvince.label
|
|
|
- this.formData.jiguanObj.jiguanShengId = selectedProvince.value
|
|
|
- this.formData.jiguanObj.jiguanShiId = selectedCity.value
|
|
|
console.log("选中的省份完整数据:", selectedProvince);
|
|
|
- console.log("选中的城市完整数据:", selectedCity);
|
|
|
+ console.log("选中的城市完整数据:", selectedCity);
|
|
|
+ this.formData.jiguanShengId = selectedProvince?selectedProvince.value:''
|
|
|
+ this.formData.jiguanShiId = selectedCity?selectedCity.value:''
|
|
|
+ this.formData.jiguanShiName =selectedCity?selectedCity.label:''
|
|
|
+ this.formData.jiguanShengName = selectedProvince?selectedProvince.label:''
|
|
|
+ this.formData.jiguanObj.jiguanShengId = selectedProvince?selectedProvince.value:''
|
|
|
+ this.formData.jiguanObj.jiguanShiId = selectedCity?selectedCity.value:''
|
|
|
+
|
|
|
},
|
|
|
setSelectedCity(cityId) {
|
|
|
for (let i = 0; i < this.allData.length; i++) {
|