yiqi_screen/src/components/EquipmentRunStatus.vue
@@ -68,13 +68,13 @@ orient: "vertical", top: "25%", right: "5%", itemGap: 2, //块之间的间距 itemHeight: 5, itemGap: 5, //块之间的间距 itemHeight: 5, // 设置图例项的高度 itemWidth: 5, // 设置图例项的宽度 data: ["生产", "完成", "待机", "警告", "故障"], textStyle: { color: "#fff", fontSize: 10, fontSize: 8, }, formatter: (name) =>{ let res=this.option.series[0].data.filter(item=>item.name==name) @@ -195,6 +195,5 @@ } .box-container{ position: relative; /* border: 1px solid red; */ } </style>