| 
					
				 | 
			
			
				@@ -65,7 +65,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <div class="overview-file"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     <div class="box-title">质量详情</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     <div class="box-wrap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                      <div 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <div 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             class="box-item" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             v-for="(item, index) in qualityBox" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             :key="index" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -93,7 +93,7 @@ const lock = ref(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const farmId = ref(766); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const nameRef = ref(""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const isLoadingImg = ref(true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const isLoadingImg = ref(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const images = ref(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const dialogVisible = ref(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // 获取当前日期 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -106,9 +106,9 @@ startDate.setMonth(currentDate.getMonth() - 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const formattedStartDate = dateFormat(startDate, "YY-mm-dd"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const formattedEndDate = dateFormat(currentDate, "YY-mm-dd"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-eventBus.on("change:watermark",function(name){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  nameRef.value = name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+eventBus.on("change:watermark", function (name) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    nameRef.value = name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const outputBox = ref([ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { id: 1, name: "产量估计", value: "" }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -121,35 +121,30 @@ const qualityBox = ref([ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { id: 6, name: "透光率", value: "" }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { id: 7, name: "病虫比例", value: "" }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const showTag = ref(false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-eventBus.on("click:point",function({farmId,sampleId, data}){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  sampleId = data.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  getSampleFiles(data.geoHashSample); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  photoBaseData.value[0].value = data.pz; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    isLoadingImg.value = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  let startDate = new Date(currentDate); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  startDate.setMonth(currentDate.getMonth() - 2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const showTag = ref(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+eventBus.off("click:point", handleClickPoint); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+eventBus.on("click:point", handleClickPoint); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// 格式化日期 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  let params = {sampleId,farmId,startDate:dateFormat(startDate, "YY-mm-dd")} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  VE_API.miniimage.list(params).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if(res.code === 0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        dialogVisible.value = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      images.value = res.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      isLoadingImg.value = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  showTag.value = data.nonghu == 1 ? true : false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//   photoBaseData.value[0].value = data.pz; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//   photoBaseData.value[1].value = data?.sgbmj ? data?.sgbmj + "平方米" : "--"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//   photoBaseData.value[2].value = data?.zzts ? data.zzts + "" : "--"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//   photoBaseData.value[3].value = data?.sl ? data?.sl + "年" : "--"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//   outputBox.value[0].value = data?.cl ? (data.cl + "斤") : "--"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//   outputBox.value[1].value = data?.spgl? (data.spgl + "%") : "--"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//   qualityBox.value[0].value = data?.tfl? (data.tfl + "%") : "--"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//   qualityBox.value[1].value = data?.tgl? (data.tgl + "%") : "--"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//   qualityBox.value[2].value = data?.dxtj? (data.dxtj + "%") : "--"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+function handleClickPoint({ farmId, sampleId, data }) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    console.log("click:point"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    sampleId = data.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    getSampleFiles(data.geoHashSample); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    photoBaseData.value[0].value = data.pz; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    isLoadingImg.value = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    let startDate = new Date(currentDate); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    startDate.setMonth(currentDate.getMonth() - 2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 格式化日期 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    let params = { sampleId, farmId, startDate: dateFormat(startDate, "YY-mm-dd") }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    VE_API.miniimage.list(params).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (res.code === 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            dialogVisible.value = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            images.value = res.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            isLoadingImg.value = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    showTag.value = data.nonghu == 1 ? true : false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 eventBus.off("albumCarousel", toggleActiveImg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 eventBus.on("albumCarousel", toggleActiveImg); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -161,33 +156,33 @@ function toggleActiveImg(index) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const getSampleFiles = (geoHash) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // photoList.value = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    VE_API.mini_farm.getSampleFiles({ geoHashSample: geoHash }).then(({data}) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    VE_API.mini_farm.getSampleFiles({ geoHashSample: geoHash }).then(({ data }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         photoBaseData.value[0].value = data.meta_info.type_id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        let pj = "--" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(data.meta_info.crown){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          pj = Math.sqrt(data.meta_info.crown * 1.2).toFixed(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let pj = "--"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (data.meta_info.crown) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            pj = Math.sqrt(data.meta_info.crown * 1.2).toFixed(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        photoBaseData.value[1].value = data.meta_info.crown + "平方米(蓬径"+pj+"米)"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        photoBaseData.value[2].value = data.meta_info.branch_num ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        photoBaseData.value[1].value = data.meta_info.crown + "平方米(蓬径" + pj + "米)"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        photoBaseData.value[2].value = data.meta_info.branch_num; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    photoBaseData.value[3].value = data.meta_info.age + "年" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    photoList.value[0].key = data.meta_info.dp_alert_info.key 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    photoList.value[0].statement = data.meta_info.dp_alert_info.statement 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    photoList.value[1].key = data.meta_info.grow_alert_info.key 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    photoList.value[1].statement = data.meta_info.grow_alert_info.statement 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    photoList.value[2].key = data.meta_info.nutrition_info.key 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    photoList.value[2].statement = data.meta_info.nutrition_info.statement 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    photoList.value[3].key = data.meta_info.prescription_info.key 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    photoList.value[3].statement = data.meta_info.prescription_info.statement 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // if(data.production_info.production){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //   data.production_info.production = (data.production_info.production * 1.3).toFixed(1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    outputBox.value[0].value = data.production_info.production + "斤" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    outputBox.value[1].value = data.production_info.quality.toFixed(0) + "%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    outputBox.value[2].value = data.production_info.cihua_ratio.toFixed(0) + "%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    qualityBox.value[0].value = data.ecology_info.ventilation + "%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    qualityBox.value[1].value = data.ecology_info.transmittance + "%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    qualityBox.value[2].value = data.ecology_info.dp_situation+"%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        photoBaseData.value[3].value = data.meta_info.age + "年"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        photoList.value[0].key = data.meta_info.dp_alert_info.key; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        photoList.value[0].statement = data.meta_info.dp_alert_info.statement; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        photoList.value[1].key = data.meta_info.grow_alert_info.key; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        photoList.value[1].statement = data.meta_info.grow_alert_info.statement; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        photoList.value[2].key = data.meta_info.nutrition_info.key; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        photoList.value[2].statement = data.meta_info.nutrition_info.statement; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        photoList.value[3].key = data.meta_info.prescription_info.key; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        photoList.value[3].statement = data.meta_info.prescription_info.statement; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // if(data.production_info.production){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   data.production_info.production = (data.production_info.production * 1.3).toFixed(1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        outputBox.value[0].value = data.production_info.production + "斤"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        outputBox.value[1].value = data.production_info.quality.toFixed(0) + "%"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        outputBox.value[2].value = data.production_info.cihua_ratio?.toFixed(0) + "%"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        qualityBox.value[0].value = data.ecology_info.ventilation + "%"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        qualityBox.value[1].value = data.ecology_info.transmittance + "%"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        qualityBox.value[2].value = data.ecology_info.dp_situation + "%"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -211,10 +206,10 @@ const photoBaseData = ref([ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const photoList = ref([ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    {key: "病虫", statement: "--"}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    {key: "异常", statement: "--"}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    {key: "营养", statement: "--"}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    {key: "农事", statement: "--"}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { key: "病虫", statement: "--" }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { key: "异常", statement: "--" }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { key: "营养", statement: "--" }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { key: "农事", statement: "--" }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const activeOuput = ref(null); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -223,28 +218,26 @@ const activeOuput = ref(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function toggleAcitve(name) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     activeOuput.value = name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (name.indexOf("开花") > -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        eventBus.emit("change:watermark", "开花目标框") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        eventBus.emit("change:watermark", "开花目标框"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } else if (name.indexOf("花穗") > -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        eventBus.emit("change:watermark", "花穗目标框") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        eventBus.emit("change:watermark", "花穗目标框"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } else if (name.indexOf("雄花") > -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        eventBus.emit("change:watermark", "雄花目标框") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        eventBus.emit("change:watermark", "雄花目标框"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } else if (name.indexOf("枝条数") > -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        eventBus.emit("change:watermark", "") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        eventBus.emit("change:watermark", ""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        eventBus.emit("change:watermark", "") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        eventBus.emit("change:watermark", ""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function closeDialog() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    activeOuput.value = null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    eventBus.emit("change:watermark", "") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    eventBus.emit("resetImgIndex") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    activeOuput.value = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    eventBus.emit("change:watermark", ""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    eventBus.emit("resetImgIndex"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // 质量详情 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-function toggleQualityAcitve() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+function toggleQualityAcitve() {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <style lang="scss" scoped> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -266,7 +259,7 @@ function toggleQualityAcitve() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             align-items: center; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             .tag { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                border: 1px solid #FFD489; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                border: 1px solid #ffd489; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 border-radius: 4px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 font-size: 12px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 display: inline-block; 
			 |