ming 3 سال پیش
والد
کامیت
14760389ee
1فایلهای تغییر یافته به همراه27 افزوده شده و 7 حذف شده
  1. 27 7
      pages/accountManage/perAdd/perAdd.vue

+ 27 - 7
pages/accountManage/perAdd/perAdd.vue

@@ -8,12 +8,15 @@
 					<text class="necessary">*</text>
 					联系方式:
 				</view>
-				<select name="" id="" v-model="phone" clearable>
+				<!-- <select name="" id="" v-model="phone" clearable>
 					<option value="0">请选择</option>
 					<option :value="item.phone" v-for="(item,index) in phoneListData" :key="index">{{item.phone}}
 					</option>
 				</select>
-				<text class="icon iconfont margin-right-sm margin-left">&#xe63d;</text>
+				<text class="icon iconfont margin-right-sm margin-left">&#xe63d;</text> -->
+				<view class="example-body">
+					<uni-combox :candidates="candidates" placeholder="请选择" v-model="phone"></uni-combox>
+				</view>
 				
 			</view>
 			<view class="form-item">
@@ -49,6 +52,10 @@
 			<view class="btn-area submitBottomBtn padding-lr-sm">
 				<button class="bg-blue round  margin-top" @click="$noMultipleClicks(submit)">提 交 </button>
 			</view>
+						
+			
+		
+			
 		</form>
 
 
@@ -62,11 +69,14 @@
 				noClick:true,
 				companyListData: [],
 				phoneListData: [],
-				"phone": 0,
+				"phone": '',
 				"company_code": 0,
 				"radioOne": "1",
 				"power": "",
-				"name":""
+				"name":"",
+				"candidates": [],
+				city:''
+
 
 
 			}
@@ -131,6 +141,11 @@
 					url: 'PermissionBinding/getphoneList',
 				})
 				this.phoneListData = res.data.data;
+
+				 this.phoneListData.forEach(e => {
+				    this.candidates.push(e.phone)
+				})
+				console.log(this.candidates)
 			},
 			//单位下拉请求数据
 			async getSiteList() {
@@ -165,9 +180,14 @@
 	}
 </script>
 
-
-
-
 <style lang="scss">
+	.example-body{
+		margin:0!important;
+		width: calc(100% - 104px);
+		z-index:10000
+	}
+	.uni-combox{
+		padding:0 10px 0 0!important
+	}
 	
 </style>