From 118a9350967c1e9d7634d61fc9766124f724b273 Mon Sep 17 00:00:00 2001 From: jjLv <1981429112@qq.com> Date: Fri, 9 Aug 2024 16:09:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E7=8E=AF=E7=AE=A1=E7=90=86=E5=8D=95?= =?UTF-8?q?=E9=80=89=E6=A1=86=E7=82=B9=E5=87=BB=E5=90=8E=E4=BC=98=E5=85=88?= =?UTF-8?q?=E5=8B=BE=E9=80=89=E6=9C=80=E5=90=8E=E4=B8=80=E8=A1=8Cbug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/base/bracelet/index.vue | 53 ++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 19 deletions(-) diff --git a/src/views/base/bracelet/index.vue b/src/views/base/bracelet/index.vue index a014bba..cf565f1 100644 --- a/src/views/base/bracelet/index.vue +++ b/src/views/base/bracelet/index.vue @@ -172,7 +172,7 @@ @@ -218,7 +218,7 @@ @@ -672,7 +672,8 @@ }, data() { return { - + shboxIdOne:null, + shboxIdTwo:null, radioOne:null, radioTwo:null, activeName: 'first', @@ -1351,12 +1352,14 @@ getShboxName(e,row){ this.queryshCode.shboxId = row.shboxId; this.queryshCode.shboxName = row.shboxName; - if(e.target.value == this[e.target.name]){ - e.target.checked = false + if(this.shboxIdOne == row.shboxId){ + this.shboxIdOne = null + e.target.checked = false; this.queryshCode.shboxId = null; this.queryshCode.shboxName =null; - this[e.target.name] = '' - } + }else{ + this.shboxIdOne = row.shboxId; + } }, getShboxNameEdit(e,row){ @@ -1379,26 +1382,35 @@ this.queryshCodeBind.shboxName = row.shboxName; this.queryshCodeBind.shboxCapacity = row.shboxCapacity; this.queryshCodeBind.shboxBindNum = row.shboxBindNum; - // if(e.target.value == this[e.target.name]){ - // e.target.checked = false - // this.queryshCodeBind.shboxId = null; - // this.queryshCodeBind.shboxName =null; - // this.queryshCodeBind.shboxCapacity = null; - // this.queryshCodeBind.shboxBindNum = null; - // this[e.target.name] = '' - // } - if(this.shboxId == row.shboxId){ - this.shboxId = 0 + if(this.shboxIdTwo == row.shboxId){ + this.shboxIdTwo = null e.target.checked = false; this.queryshCodeBind.shboxId = null; this.queryshCodeBind.shboxName =null; this.queryshCodeBind.shboxCapacity = null; this.queryshCodeBind.shboxBindNum = null; }else{ - this.shboxId = row.shboxId; + this.shboxIdTwo = row.shboxId; } }, + // getShboxBindNameAdd(e,row){ + // this.queryshCodeBind.shboxId = row.shboxId; + // this.queryshCodeBind.shboxName = row.shboxName; + // this.queryshCodeBind.shboxCapacity = row.shboxCapacity; + // this.queryshCodeBind.shboxBindNum = row.shboxBindNum; + // if(this.shboxIdOne == row.shboxId){ + // this.shboxIdOne = null + // e.target.checked = false; + // this.queryshCodeBind.shboxId = null; + // this.queryshCodeBind.shboxName =null; + // this.queryshCodeBind.shboxCapacity = null; + // this.queryshCodeBind.shboxBindNum = null; + // }else{ + // this.shboxIdOne = row.shboxId; + // } + // }, + @@ -1620,10 +1632,11 @@ //打开手环页面 openShbox(row){ // this.sidebandId = row.sidebandId; + this.shboxIdOne = null; this.title = "新增手环" this.showsh = true; this.getListTemp(); - this.radioOne=null; + // this.radioOne=null; this.queryshCode.pageNum = 1; this.queryshCode.shCode = undefined; }, @@ -1631,6 +1644,8 @@ //打开手环绑定页面 openShboxTemp(row){ // this.sidebandId = row.sidebandId; + this.queryshCodeBind = {}; + this.shboxIdTwo = null; this.title = "选择" this.showshBind = true; this.getListBind();