From c28ef8556cd40c671976aadf010fb43d7c39633b Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期四, 20 三月 2025 16:16:45 +0800
Subject: [PATCH] 修改大屏样式
---
UI-Project/src/views/PurchaseReturn/purchaseReturn.vue | 44 ++++++++++++++++++++++++++------------------
1 files changed, 26 insertions(+), 18 deletions(-)
diff --git a/UI-Project/src/views/PurchaseReturn/purchaseReturn.vue b/UI-Project/src/views/PurchaseReturn/purchaseReturn.vue
index bc22be8..673c709 100644
--- a/UI-Project/src/views/PurchaseReturn/purchaseReturn.vue
+++ b/UI-Project/src/views/PurchaseReturn/purchaseReturn.vue
@@ -496,16 +496,20 @@
return '#911005';
case 9:
return '#4682B4';
+ default:
+ return '#CDAF95';
}
}
function getRectColor2(state) {
switch (state) {
- case 2:
+ case 2:
return 'lightblue';
case 8:
return '#911005';
case 9:
return '#4682B4';
+ default:
+ return '#CDAF95';
}
}
function getRectColora(state) {
@@ -515,11 +519,13 @@
case 1:
return '#95d475';
case -1:
- return '#CDAF95';
+ return '#99BBFF';
case 8:
return '#911005';
case 9:
return '#4682B4';
+ default:
+ return '#CDAF95';
}
}
function getRectColorb(state) {
@@ -532,6 +538,8 @@
return '#911005';
case 9:
return '#4682B4';
+ default:
+ return '#CDAF95';
}
}
function showDialog1(rect) {
@@ -655,7 +663,7 @@
glassId: currentGlassId.value,
// temperingFeedSequence: currenttemperingFeedSequence.value,
line: 4001,
- status: 8,
+ state: 8,
workingProcedure: '閽㈠寲',
})
if (response.code == 200) {
@@ -675,7 +683,7 @@
const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', {
glassId: currentGlassId.value,
line: 4001,
- status: 8,
+ state: 8,
workingProcedure: '閽㈠寲',
})
if (response.code == 200) {
@@ -696,7 +704,7 @@
const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', {
glassId: currentGlassId.value,
line: 4001,
- status: 8,
+ state: 8,
workingProcedure: '閽㈠寲',
})
if (response.code == 200) {
@@ -717,7 +725,7 @@
const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', {
glassId: currentGlassId.value,
line: 4001,
- status: 9,
+ state: 9,
workingProcedure: '閽㈠寲',
})
if (response.code == 200) {
@@ -738,7 +746,7 @@
const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', {
glassId: currentGlassId.value,
line: 4001,
- status: 1,
+ state: 1,
workingProcedure: '閽㈠寲',
})
if (response.code == 200) {
@@ -759,7 +767,7 @@
const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', {
glassId: currentGlassId.value,
line: 4001,
- status: 9,
+ state: 9,
workingProcedure: '閽㈠寲',
})
if (response.code == 200) {
@@ -780,7 +788,7 @@
const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', {
glassId: currentGlassId.value,
line: 4001,
- status: 9,
+ state: 9,
workingProcedure: '閽㈠寲',
})
if (response.code == 200) {
@@ -801,7 +809,7 @@
const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', {
glassId: currentGlassId.value,
line: 4001,
- status: 8,
+ state: 8,
workingProcedure: '閽㈠寲',
})
if (response.code == 200) {
@@ -821,7 +829,7 @@
const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', {
glassId: currentGlassId.value,
line: 4001,
- status: 9,
+ state: 9,
workingProcedure: '閽㈠寲',
})
if (response.code == 200) {
@@ -841,7 +849,7 @@
const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingState', {
glassId: currentGlassId.value,
line: 4001,
- status: 3,
+ state: 3,
workingProcedure: '閽㈠寲',
})
if (response.code == 200) {
@@ -896,8 +904,8 @@
:style="{ position: 'absolute',
top: `${rect.y}px`,
left: `${rect.x}px`,
- width: `${rect.widtha}px`,
- height: `${rect.heighta}px`,
+ width: `${rect.width}px`,
+ height: `${rect.height}px`,
backgroundColor: rect.isActive ? '#ADFF2F' : getRectColor1(rect.state) }">
<div class="centered-text">
<div style="font-size: 15px;font-weight: bold;">{{ rect.glassId }}</div>
@@ -924,8 +932,8 @@
:style="{ position: 'absolute',
top: `${rect.y}px`,
left: `${rect.x}px`,
- width: `${rect.widtha}px`,
- height: `${rect.heighta}px`,
+ width: `${rect.width}px`,
+ height: `${rect.height}px`,
backgroundColor: rect.isActive ? '#ADFF2F' : getRectColor2(rect.state) }">
<div class="centered-text">
<div style="font-size: 15px;font-weight: bold;">{{ rect.glassId }}</div>
@@ -962,7 +970,7 @@
@click="showDialoga(rect)"
class="rect"
:style="{ position: 'absolute', top: `${rect.y}px`, left: `${rect.x}px`,
- width: `${rect.widtha}px`, height: `${rect.heighta}px`,
+ width: `${rect.width}px`, height: `${rect.height}px`,
backgroundColor: rect.isActive ? '#ADFF2F' : getRectColora(rect.state) }">
<div class="centered-text">
<div style="font-size: 15px;font-weight: bold;">{{ rect.glassId }}</div>
@@ -989,7 +997,7 @@
@click="showDialogb(rect)"
class="rect"
:style="{ position: 'absolute', top: `${rect.y}px`, left: `${rect.x}px`,
- width: `${rect.widtha}px`, height: `${rect.heighta}px`,
+ width: `${rect.width}px`, height: `${rect.height}px`,
backgroundColor: rect.isActive ? '#ADFF2F' : getRectColorb(rect.state) }">
<!-- backgroundColor: rect.state === 4 ? '#911005' : '#f8e3c5' }"> -->
<div class="centered-text">
--
Gitblit v1.8.0