From 8a16cf90be81831f8549cf10f0e416c144ae1fcd Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Mon, 6 Jan 2025 17:03:02 +0800 Subject: [PATCH] =?UTF-8?q?1/6=20=E7=81=AF=E7=BB=84=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basic/workplace/bingdLedGroupDialog.vue | 16 ++++++++-------- src/views/basic/workplace/ledManage.vue | 16 ++++++++-------- src/views/basic/workplace/workplaceQueue.vue | 18 ++++++++++++------ 3 files changed, 28 insertions(+), 22 deletions(-) diff --git a/src/views/basic/workplace/bingdLedGroupDialog.vue b/src/views/basic/workplace/bingdLedGroupDialog.vue index a9d1d881..33da3240 100644 --- a/src/views/basic/workplace/bingdLedGroupDialog.vue +++ b/src/views/basic/workplace/bingdLedGroupDialog.vue @@ -63,26 +63,26 @@ diff --git a/src/views/basic/workplace/ledManage.vue b/src/views/basic/workplace/ledManage.vue index 91eda74d..4c98e6c4 100644 --- a/src/views/basic/workplace/ledManage.vue +++ b/src/views/basic/workplace/ledManage.vue @@ -66,26 +66,26 @@ diff --git a/src/views/basic/workplace/workplaceQueue.vue b/src/views/basic/workplace/workplaceQueue.vue index 0e3f9f2a..af1b1278 100644 --- a/src/views/basic/workplace/workplaceQueue.vue +++ b/src/views/basic/workplace/workplaceQueue.vue @@ -246,16 +246,17 @@ + {{ ledData.mac }} {{ ledData.remark }} - {{ lesStatusMap[ledData.red] }} - {{ lesStatusMap[ledData.orange] }} - {{ lesStatusMap[ledData.blue] }} - {{ lesStatusMap[ledData.green] }} + {{ ledData.red == 0 ? "关闭" : "开启" }} + {{ ledData.orange == 0 ? "关闭" : "开启" }} + {{ ledData.blue == 0 ? "关闭" : "开启" }} + {{ ledData.green == 0 ? "关闭" : "开启" }} @@ -502,7 +503,7 @@ export default { lesStatusMap: { true : "开启", false: "关闭" - } + }, } }, methods: { @@ -869,7 +870,12 @@ export default { } this.sysWorkplaceQueue = {} this.product = {} - this.ledData = {} + this.ledData = { + red : null, + orange: null, + blue: null, + green: null + } this.addBindVisible = true this.$nextTick(() => { this.$refs.inputRef1.focus() // 设置焦点到第一个输入框