修改责任单位隐患整改率统计

This commit is contained in:
Vce 2024-06-04 00:21:58 +08:00
parent 8973095146
commit e51077ac92

View File

@ -27,7 +27,7 @@
<el-tab-pane :label="'整改人'" name="first"></el-tab-pane>
<el-tab-pane :label="'检查人'" name="second"></el-tab-pane>
</el-tabs>
<div class="tabList">
<!-- <div class="tabList">
<div>排名</div>
<div v-if="activeIndex === '0' || activeIndex === '1'">姓名</div>
<div v-if="activeIndex === '2'">分包单位</div>
@ -52,6 +52,32 @@
<img src="@/assets/images/noData.png" alt="" />
<p>暂无数据</p>
</div>
</div> -->
<div class="tabList">
<div>排名</div>
<div v-if="activeIndex === '1' || activeIndex === '2'">姓名</div>
<div v-if="activeIndex === '0'">分包单位</div>
<div v-if="activeIndex === '0' || activeIndex === '2'">整改数量</div>
<div v-if="activeIndex === '1'">发起隐患数</div>
<div>整改率</div>
<div>及时整改率</div>
</div>
<div class="listBox">
<el-scrollbar>
<div v-for="(item, index) in tabList" :key="index" class="listStyle">
<div>{{ index + 1 }}</div>
<div v-if="activeIndex === '1' || activeIndex === '2'">{{ item.workerName }}</div>
<div v-if="activeIndex === '0'" :title="item.enterpriseName">{{ item.enterpriseName }}</div>
<div v-if="activeIndex === '0' || activeIndex === '2'">{{ item.createDangerNum || item.rectifiedNum}}</div>
<div v-if="activeIndex === '1'">{{ item.rectifiedNum }}</div>
<div>{{ item.rectifiedNumRatio }}</div>
<div>{{ item.rectifiedNumRatioTimely }}</div>
</div>
</el-scrollbar>
<div class="notoDta" v-if="tabList.length == 0">
<img src="@/assets/images/noData.png" alt="" />
<p>暂无数据</p>
</div>
</div>
</div>
</div>
@ -214,14 +240,29 @@ const handleClick = (tab: TabsPaneContext, event: Event) => {
activeIndex.value = tab.index;
console.log(tab);
if (tab.index == "0") {
getMemberJobStatusFn();
} else if (tab.index == "1") {
getInspectManStatusFn();
} else if (tab.index == "2") {
getEnterpriseStatusFn();
// getMemberJobStatusFn();
} else if (tab.index == "1") {
getMemberJobStatusFn();
// getInspectManStatusFn();
} else if (tab.index == "2") {
getInspectManStatusFn();
// getEnterpriseStatusFn();
}
console.log("activeIndex", activeIndex.value);
};
// const handleClick = (tab: TabsPaneContext, event: Event) => {
// activeIndex.value = tab.index;
// console.log(tab);
// if (tab.index == "0") {
// getMemberJobStatusFn();
// } else if (tab.index == "1") {
// getInspectManStatusFn();
// } else if (tab.index == "2") {
// getEnterpriseStatusFn();
// }
// console.log("activeIndex", activeIndex.value);
// };
function Pie() {
let dataArr = [];
for (var i = 0; i < 150; i++) {
@ -499,7 +540,8 @@ function drawEchart2() {
// })
}
onMounted(async () => {
getMemberJobStatusFn();
getEnterpriseStatusFn();
// getMemberJobStatusFn();
getPersonList();
});
</script>