| 
					
				 | 
			
			
				@@ -107,11 +107,11 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <div class="list-wrap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <div class="no-data" v-show="!adoptList.length">暂无数据</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <div class="no-data" v-show="!adoptList || !adoptList.length">暂无数据</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <div class="list-item" v-for="(item, index) in adoptList" :key="index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                <div class="list-info"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <div class="list-info" @click.stop="showTreeDialog(item)"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     <div class="tree-icon"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        <div class="tree-tag" v-show="!item.miniUserId">未守护</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <div class="tree-tag" v-show="!item.miniUserId">待守护</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         <div class="tree-tag wait" v-show="item.miniUserId">已守护</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         <img class="tree-img" src="@/assets/images/foster-home/tree-item.png" alt="" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         <!-- <img class="tree-img" :src="item.icon || require(`@/assets/images/foster-home/list/1.png`)" alt="" /> --> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -206,7 +206,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         <div 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             class="center-item p-t-2 user-wrap" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             v-show="!item.miniUserId && !isManySetting && !item.settingPrice" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            @click="showTreeDialog(item)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            @click.stop="showTreeDialog(item)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             <img src="@/assets/images/foster-home/user.png" alt="" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             <span class="user-text">选择预留守护人</span> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -243,7 +243,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    <div v-show="!isManySetting && !item.settingPrice" @click="toSettingSinglePrice(index, true)"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <div v-show="!isManySetting && !item.settingPrice" @click.stop="toSettingSinglePrice(index, true)"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         <img src="@/assets/images/common/edit-icon.png" alt="" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </div> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -268,7 +268,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <!-- 渐变主色按钮 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <div class="center-btn" v-show="adoptList.length" @click="manySetPrice">批量编辑果树</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <div class="center-btn" v-show="adoptList && adoptList.length" @click="manySetPrice">批量编辑果树</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <!-- 渐变主色按钮 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <!-- <div class="btn-group list-btn" v-show="isManySetting"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <div class="btn cancel-btn" @click="saveManySetting(0)">取消</div> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -286,6 +286,7 @@ import { useRouter } from "vue-router"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import eventBus from "@/api/eventBus"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const router = useRouter(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const currentFarmId = store.getters.userinfo.curFarmId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const areaVal = ref(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const areaOptions = ref([]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const typeVal = ref(0); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -326,10 +327,10 @@ const offlineTakeSelected = ref(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const userList = ref([]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const speciesList = ref([]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function getUserList() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    VE_API.manage_interface.offlineTakeList({ farmId: 766 }).then(({ data }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    VE_API.manage_interface.offlineTakeList({ farmId: currentFarmId }).then(({ data }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         userList.value = data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    VE_API.manage_interface.speciesList({ farmId: 766 }).then(({ data }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    VE_API.manage_interface.speciesList({ farmId: currentFarmId }).then(({ data }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         speciesList.value = data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -340,7 +341,7 @@ onMounted(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function getBlueRegionList() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    VE_API.manage_interface.fetchRegionList({ farmId: 766 }).then(({ data }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    VE_API.manage_interface.fetchRegionList({ farmId: currentFarmId }).then(({ data }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         areaOptions.value = data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -357,12 +358,12 @@ function handleChageData() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function getSamplePage() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     VE_API.manage_interface 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         .fetchSamplePage({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            farmId: 766, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            farmId: currentFarmId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             regionId: areaVal.value === 0 ? null : areaVal.value, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             isRenyang: statusVal.value === "-1" ? null : statusVal.value, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ageRange: ageVal.value === 0 ? null : [ageVal.value - 10, ageVal.value], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             pz: typeVal.value === 0 ? null : typeVal.value, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            page: currentPage.value, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            page: currentPage.value - 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             limit: 20, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         .then(({ data, count }) => { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -420,7 +421,7 @@ function settingSinglePrice() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function showTreeDialog(item) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     eventBus.emit("click:point", {  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        farmId: 766,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        farmId: currentFarmId,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         sampleId: item.sampleId,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         data: item, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 |