zhangdan 4 سال پیش
والد
کامیت
509fede3d9
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      pages/index/userInfo.vue

+ 3 - 3
pages/index/userInfo.vue

@@ -4,8 +4,8 @@
 			<view class="form-data">
 				<u-form :model="form" ref="uForm" :label-width="140" :error-type="['toast']">
 						<u-form-item prop="time" label="用户类型:" required>
-							<view v-if="userDetailInfo">{{form.addressType}}</view>
-							<v-select ref="addressType" placeholder="请选择用户类型" @itemChange="chooseType" code="ORDER_ADDRESS_TYPE" style="width: 100%" v-model="form.addressType"></v-select>	
+							<!-- <view v-if="userDetailInfo">{{form.addressType}}</view> -->
+							<v-select ref="addressType" placeholder="请选择用户类型" @itemChange="chooseType" code="ORDER_ADDRESS_TYPE" style="width: 100%"></v-select>	
 						</u-form-item>
 						<u-form-item prop="contactName" label="用户名称:" required>
 							<u-input placeholder="请输入用户名称"  v-model="form.contactName"/>
@@ -105,7 +105,7 @@
 				userDetail().then(res=>{
 					if(res.status==200){
 						this.userDetailInfo=res.data
-						this.form.addressType=res.data.addressTypeDictValue
+						this.$refs.addressType.setVal(res.data.addressType)
 						this.form.contactMobile=res.data.contactMobile
 						this.form.contactName=res.data.contactName
 						this.form.contactAddress=res.data.contactAddress