| 
					
				 | 
			
			
				@@ -6,13 +6,23 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <div class="chart-item"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <chart-box name="物候调节" arrow="left"></chart-box> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <div class="chart-item"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <chart-box name="病虫测报" arrow="left"></chart-box> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <div class="chart-item diseases"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <chart-box name="病虫测报" arrow="left"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <template #title-right> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div class="btn-group"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <div :class="['btn-item',{active:active===index}]" @click="handleActive(index)" v-for="(item,index) in diseasesBtnGroup" :key="index">{{item}}</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <pie-chart class="pie-chart" styleName="styleName1"></pie-chart> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <div class="desc box-bg"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          异常区域中,<span>xx</span> %区域需要 打药,xx %需要 剪枝通风,xx %需要 剪除病枝 。当前分别有 xx %,xx %,xx %的区域尚未执行。 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </chart-box> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <div class="chart-item evaluate"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <chart-box name="营养评估" arrow="left"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <div class="content"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <bar-chart styleName="styleName1"></bar-chart> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <bar-chart styleName="styleName1" :xData="evaluateXData" :yData="evaluateYData"></bar-chart> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <div class="box-bg text"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             目前果园跨度异常比例达到<span>**%</span>,需要提供 <span>叶面肥</span>补充营养 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </div> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -32,9 +42,21 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script setup> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import {ref} from 'vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import chartBox from "@/components/chartBox.vue"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import barChart from "@/components/charts/barChart.vue"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import pieChart from "@/components/charts/pieChart.vue"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 病虫测报 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const diseasesBtnGroup = ["病害1","病害2","病害3"] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const active = ref(0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const handleActive = (i) =>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  active.value = i 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 营养评估 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const evaluateXData = ["正常", "较大", "异常"] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const evaluateYData = [33, 41, 43] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <style lang="scss" scoped> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -52,6 +74,44 @@ import barChart from "@/components/charts/barChart.vue"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     &.chart-item:last-child { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       margin: 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    .box-bg{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      border-radius: 2px 2px 0 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      font-size: 12px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      padding: 3px 6px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      box-sizing: border-box; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      background: linear-gradient(180deg, rgb(85, 85, 85,0.4) 0%, rgb(35, 35, 35,1) 100%); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    &.diseases{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      .btn-group{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        font-size: 11px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        display: flex; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        align-items: center; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .btn-item{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          border-radius: 2px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          padding: 2px 4px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          margin-left: 8px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          cursor: pointer; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          &.active{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            background: #4F4F4F; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      .pie-chart{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        width: 100%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        height: calc(100% - 57px - 10px); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        margin-bottom: 10px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      .desc{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        width: 100%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        height: 57px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        text-indent: 2em; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        letter-spacing: 1px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        color: rgba(255,255,255,0.7); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        span{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          color: #69BDFF; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     &.evaluate { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       .content { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         width: 100%; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -61,9 +121,7 @@ import barChart from "@/components/charts/barChart.vue"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         justify-content: space-between; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         margin-bottom: 10px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         .text{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          color: rgba(255,255,255,0.7); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           font-weight: 400; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          font-size: 12px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           padding: 8px 0 4px 5px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           text-indent: 2em; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           margin-left: 8px; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -72,15 +130,9 @@ import barChart from "@/components/charts/barChart.vue"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      .box-bg{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        border-radius: 2px 2px 0 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        background: linear-gradient(180deg, rgb(85, 85, 85,0.4) 0%, rgb(35, 35, 35,1) 100%); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       .text-list { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         width: 100%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         height: 68px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        padding: 3px 6px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        box-sizing: border-box; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         .text-item{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           display: flex; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           align-items: center; 
			 |