This commit is contained in:
cxc
2022-06-24 17:38:12 +08:00
parent c1a79aa727
commit 6c5de74adf
3 changed files with 13 additions and 4 deletions

View File

@ -137,7 +137,16 @@ export default {
for (let i = 0; i < this.res.list.length; i++) {
const item = this.res.list[i];
this.titData.push(item.indicator_name);
this.valData.push({ value: item.cate, name: item.indicator_name });
this.valData.push({
value: item.cate,
name: item.indicator_name,
tooltip: {
trigger: "item",
formatter: `{b}</br>目标数:${item.targetTasks}</br>完成数:${
item.completedTasks
}<br>完成率:${item.cate.toFixed(2)}%`,
},
});
}
this.setPageData(val);
});