feat:修改

This commit is contained in:
2026-05-19 19:26:41 +08:00
parent 4434480f32
commit 2030e68ff9
12 changed files with 1554 additions and 921 deletions

View File

@@ -145,10 +145,10 @@ const loadData = async () => {
getOeeStoppageEvents({ pageSize: 10 })
])
if (summaryRes?.data && summaryRes.data.length > 0) {
summaryList.value = summaryRes.data
const latest = summaryRes.data[0]
const previous = summaryRes.data[1] || latest
if (summaryRes && summaryRes.length > 0) {
summaryList.value = summaryRes
const latest = summaryRes[0]
const previous = summaryRes[1] || latest
oeeData.value = {
oee: latest.oee || 0,
@@ -162,12 +162,12 @@ const loadData = async () => {
}
}
if (lossRes?.data) {
lossList.value = lossRes.data
if (lossRes) {
lossList.value = lossRes
}
if (eventsRes?.rows) {
stoppageList.value = eventsRes.rows
if (eventsRes) {
stoppageList.value = eventsRes
}
updateCharts()
@@ -475,28 +475,33 @@ onUnmounted(() => {
<style lang="scss" scoped>
.screen-wrapper {
width: 100%;
min-height: 100%;
min-height: 100vh;
height: 100%;
background: linear-gradient(180deg, #0a1428 0%, #0d1b34 50%, #0a1428 100%);
overflow-y: auto;
overflow-x: hidden;
margin: 0;
padding: 0;
}
.screen-content {
background: transparent;
color: #ffffff;
width: 100%;
min-height: 100vh;
margin: 0;
padding: 20px;
box-sizing: border-box;
}
.screen-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 30px;
background: linear-gradient(90deg, rgba(0, 212, 255, 0.1) 0%, rgba(12, 30, 60, 0.8) 100%);
border-radius: 8px;
padding: 16px 24px;
background: linear-gradient(90deg, rgba(0, 168, 204, 0.9) 0%, rgba(0, 212, 255, 0.8) 50%, rgba(0, 168, 204, 0.9) 100%);
margin-bottom: 20px;
border: 1px solid rgba(0, 212, 255, 0.2);
border-bottom: 2px solid rgba(0, 212, 255, 0.4);
.title {
font-size: 26px;