This commit is contained in:
DESKTOP-FUDKNA8\znjsz 2024-01-17 14:50:01 +08:00
parent a6e380a64c
commit 006b875d12

View File

@ -6,23 +6,25 @@ import { useWsStore } from "../store";
const listData = ref([]); const listData = ref([]);
const store = useWsStore(); const store = useWsStore();
store.$subscribe((mutation, state) => { store.$subscribe((mutation, state) => {
listData.value = (state.data2.lineDetailData || Array(3).fill({})).map((item, index) => ({ listData.value = (state.data2.lineDetailData || Array(3).fill({})).map(
productLine: item.productLine || "---", (item, index) => ({
mbt: item.edgingInput || "---", productLine: item.productLine || "---",
mbb: item.edgingOutput || "---", mbt: item.edgingInput || "---",
dkt: item.drillingInput || "---", mbb: item.edgingOutput || "---",
dkb: item.drillingOutput || "---", dkt: item.drillingInput || "---",
dmt: item.coatingInput || "---", dkb: item.drillingOutput || "---",
dmb: item.coatingOutput || "---", dmt: item.coatingInput || "---",
syt: item.silkInput || "---", dmb: item.coatingOutput || "---",
syb: item.silkOutput || "---", syt: item.silkInput || "---",
ght: item.solidificationInput || "---", syb: item.silkOutput || "---",
ghb: item.solidificationOutput || "---", ght: item.solidificationInput || "---",
gh1: item.temperingInput || "---", ghb: item.solidificationOutput || "---",
gh2: item.temperingOutput || "---", gh1: item.temperingInput || "---",
bzt: item.finalInput || "---", gh2: item.temperingOutput || "---",
bzb: item.finalOutput || "---", bzt: item.finalInput || "---",
})); bzb: item.finalOutput || "---",
})
);
}); });
</script> </script>
@ -57,7 +59,7 @@ store.$subscribe((mutation, state) => {
<style scoped> <style scoped>
.realtime-table { .realtime-table {
background: #00f3; background: #00f3;
height: 240px; height: 160px;
width: 80%; width: 80%;
align-self: self-start; align-self: self-start;
} }
@ -65,4 +67,8 @@ store.$subscribe((mutation, state) => {
.dark-table { .dark-table {
height: 100%; height: 100%;
} }
.dark-table >>> .el-table__inner-wrapper::before {
background-color: transparent !important;
}
</style> </style>