| 
					
				 | 
			
			
				@@ -1,6 +1,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <!-- el-select远程搜索公共组件 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <el-select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    :disabled="disabled" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     style="width: 100%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ref="selectRef" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     v-loadmore="loadmore" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -45,6 +46,14 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       type: Object, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       default: () => {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    searchParams: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      type: Object, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      default: () => {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    disabled: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      type: Boolean, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      default: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   data() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -56,15 +65,17 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   watch: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    value(newVal) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // console.log(newVal); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.selectId = newVal; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.options = [this.selectObj]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    selectObj(newVal) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      console.log(newVal); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (newVal) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.selectId = newVal.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.options = [newVal]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  created() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    this.getList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  // created() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  //   this.getList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  // }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     onChange() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$emit("input", this.selectId); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -84,6 +95,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 输入框没有值时默认请求第一页8条数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getList() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       let params = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ...this.searchParams, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         pageNum: 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         pageSize: 8, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }; 
			 |