|  | @@ -64,7 +64,7 @@
 | 
	
		
			
				|  |  |                              class="box-item"
 | 
	
		
			
				|  |  |                              v-for="(value, key) in images[currentIndex].detail2"
 | 
	
		
			
				|  |  |                              :key="key"
 | 
	
		
			
				|  |  | -                            @click="toggleAcitve(key)"
 | 
	
		
			
				|  |  | +                            @click="toggleQualityAcitve(key)"
 | 
	
		
			
				|  |  |                              :class="{ active: activeOuput === key }"
 | 
	
		
			
				|  |  |                          >
 | 
	
		
			
				|  |  |                              <div class="item-name">{{ key }}</div>
 | 
	
	
		
			
				|  | @@ -106,14 +106,6 @@ eventBus.on("click:point", function ({ farmId, sampleId, geoHash }) {
 | 
	
		
			
				|  |  |      getSampleFiles(geoHash);
 | 
	
		
			
				|  |  |      VE_API.miniimage.list(params).then((res) => {
 | 
	
		
			
				|  |  |          if (res.code === 0) {
 | 
	
		
			
				|  |  | -            res.data.map((item) => {
 | 
	
		
			
				|  |  | -                item.detail1 = { 总枝条数: "11000", 开花率: "56", 雄花比例: "38", 花穗率: "78" };
 | 
	
		
			
				|  |  | -                item.detail2 = {
 | 
	
		
			
				|  |  | -                    地形条件: "81",
 | 
	
		
			
				|  |  | -                    透光率: "66",
 | 
	
		
			
				|  |  | -                    通风率: "78",
 | 
	
		
			
				|  |  | -                };
 | 
	
		
			
				|  |  | -            });
 | 
	
		
			
				|  |  |              images.value = res.data;
 | 
	
		
			
				|  |  |              dialogVisible.value = true;
 | 
	
		
			
				|  |  |              console.log("images", images.value);
 | 
	
	
		
			
				|  | @@ -174,28 +166,29 @@ const photoBaseData = ref([
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |  ]);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -const photoList = ref([
 | 
	
		
			
				|  |  | -    { key: "营养", statement: "营养老熟 延迟,12月10日 末次老熟" },
 | 
	
		
			
				|  |  | -    { key: "病虫", statement: "2月3日爆发啃食类虫害。" },
 | 
	
		
			
				|  |  | -    { key: "异常", statement: "1月3日,花带叶30%。3月4日,花量过大。" },
 | 
	
		
			
				|  |  | -]);
 | 
	
		
			
				|  |  | +const photoList = ref([]);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  const activeOuput = ref(1);
 | 
	
		
			
				|  |  | -const outputBox = ref([
 | 
	
		
			
				|  |  | -    { id: 1, name: "花穗率", value: "78%" },
 | 
	
		
			
				|  |  | -    { id: 2, name: "总枝条数", value: "11000" },
 | 
	
		
			
				|  |  | -    { id: 3, name: "开花率", value: "56%" },
 | 
	
		
			
				|  |  | -    { id: 4, name: "雄花比例", value: "38%" },
 | 
	
		
			
				|  |  | -]);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -const qualityBox = ref([
 | 
	
		
			
				|  |  | -    { id: 5, name: "通风率", value: "78%" },
 | 
	
		
			
				|  |  | -    { id: 6, name: "透光率", value: "66%" },
 | 
	
		
			
				|  |  | -    { id: 7, name: "地形条件", value: "81%" },
 | 
	
		
			
				|  |  | -]);
 | 
	
		
			
				|  |  | +// 产量详情
 | 
	
		
			
				|  |  | +function toggleAcitve(name) {
 | 
	
		
			
				|  |  | +    activeOuput.value = name;
 | 
	
		
			
				|  |  | +    if (name.indexOf("开花") > -1) {
 | 
	
		
			
				|  |  | +        eventBus.emit("change:watermark", "开花目标框")
 | 
	
		
			
				|  |  | +    } else if (name.indexOf("花穗") > -1) {
 | 
	
		
			
				|  |  | +        eventBus.emit("change:watermark", "花穗目标框")
 | 
	
		
			
				|  |  | +    } else if (name.indexOf("雄花") > -1) {
 | 
	
		
			
				|  |  | +        eventBus.emit("change:watermark", "雄花目标框")
 | 
	
		
			
				|  |  | +    } else if (name.indexOf("枝条数") > -1) {
 | 
	
		
			
				|  |  | +        eventBus.emit("change:watermark", "枝条目标框")
 | 
	
		
			
				|  |  | +    } else {
 | 
	
		
			
				|  |  | +        eventBus.emit("change:watermark", "")
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +// 质量详情
 | 
	
		
			
				|  |  | +function toggleQualityAcitve() {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -function toggleAcitve(id) {
 | 
	
		
			
				|  |  | -    activeOuput.value = id;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  |  
 |