修改指挥部大屏安全教育智能分析有数据但不显示的bug
This commit is contained in:
parent
b419461185
commit
23b099a17b
@ -91,7 +91,6 @@ let listData = ref([
|
|||||||
{ header: "特种作业人员教育", type: 2, content: "1#塔吊报警频次较上周增长60%,塔吊间各个设备之间的衔接进行全面检查,以防止" }
|
{ header: "特种作业人员教育", type: 2, content: "1#塔吊报警频次较上周增长60%,塔吊间各个设备之间的衔接进行全面检查,以防止" }
|
||||||
]);
|
]);
|
||||||
|
|
||||||
let questionTotal = ref(0 as any);
|
|
||||||
let dataList2 = ref([
|
let dataList2 = ref([
|
||||||
{
|
{
|
||||||
value: 0,
|
value: 0,
|
||||||
@ -157,6 +156,7 @@ const getPersonList = async () => {
|
|||||||
dataList2.value[1].value = res.result.personType.toaltPerson.totalPerson;
|
dataList2.value[1].value = res.result.personType.toaltPerson.totalPerson;
|
||||||
dataList2.value[2].value = res.result.personType.toaltPerson.totalPerson;
|
dataList2.value[2].value = res.result.personType.toaltPerson.totalPerson;
|
||||||
console.log("安全教育智能分析666", res);
|
console.log("安全教育智能分析666", res);
|
||||||
|
drawEchart2();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
// 获取人员履职情况分析数据--整改人
|
// 获取人员履职情况分析数据--整改人
|
||||||
@ -267,7 +267,6 @@ function drawEchart2() {
|
|||||||
trigger: "item"
|
trigger: "item"
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
// text: questionTotal.value,
|
|
||||||
text: "100%",
|
text: "100%",
|
||||||
subtext: "入场三级教育\n完成率",
|
subtext: "入场三级教育\n完成率",
|
||||||
x: "24%",
|
x: "24%",
|
||||||
@ -505,21 +504,7 @@ function drawEchart2() {
|
|||||||
// echartsTest.resize();
|
// echartsTest.resize();
|
||||||
// })
|
// })
|
||||||
}
|
}
|
||||||
//获取质量管理
|
|
||||||
// const safeData = ref(null as any);
|
|
||||||
const qualityInfo = async () => {
|
|
||||||
const res: any = await selectQualityStatisticsApi({ projectSn: store.sn });
|
|
||||||
// dataList2.value[0].value = res.result.total.rectificationNum;
|
|
||||||
// dataList2.value[1].value = res.result.total.totalNum - res.result.total.rectificationNum;
|
|
||||||
questionTotal.value = res.result.total.totalNum;
|
|
||||||
drawEchart2();
|
|
||||||
};
|
|
||||||
//将方法暴露给父组件
|
|
||||||
defineExpose({
|
|
||||||
qualityInfo
|
|
||||||
});
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
qualityInfo();
|
|
||||||
getMemberJobStatusFn();
|
getMemberJobStatusFn();
|
||||||
getPersonList();
|
getPersonList();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user