自测wenti

This commit is contained in:
jjLv 2024-08-22 10:36:19 +08:00
parent be21098f35
commit 5d64e103bf
1 changed files with 11 additions and 3 deletions

View File

@ -155,6 +155,7 @@
<el-input
v-model="queryshCode.shCode"
placeholder="请输入手环编码"
maxlength="20"
/>
</el-form-item>
</el-form>
@ -222,7 +223,7 @@
</el-table-column>
</el-table>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitFormBind"> </el-button>
<el-button type="primary" @click="submitFormBind"> </el-button>
<el-button @click="cancelBind"> </el-button>
</div>
<pagination
@ -242,6 +243,7 @@
<el-input
v-model="queryshEdit.shCode"
placeholder="请输入手环编码"
maxlength="20"
/>
</el-form-item>
</el-form>
@ -1607,11 +1609,15 @@
getShboxName(e,row){
this.queryshCode.shboxId = row.shboxId;
this.queryshCode.shboxName = row.shboxName;
this.queryshCode.shboxCapacity = row.shboxCapacity;
this.queryshCode.shboxBindNum = row.shboxBindNum;
if(this.shboxIdOne == row.shboxId){
this.shboxIdOne = null
e.target.checked = false;
this.queryshCode.shboxId = null;
this.queryshCode.shboxName =null;
this.queryshCode.shboxCapacity = null
this.queryshCode.shboxBindNum = null;
}else{
this.shboxIdOne = row.shboxId;
}
@ -1620,11 +1626,15 @@
getShboxNameEdit(e,row){
this.queryshEdit.shboxId = row.shboxId;
this.queryshEdit.shboxName = row.shboxName;
this.queryshEdit.shboxCapacity = row.shboxCapacity;
this.queryshEdit.shboxBindNum = row.shboxBindNum;
if(this.shboxId == row.shboxId){
this.shboxId = 0
e.target.checked = false;
this.queryshEdit.shboxId = null;
this.queryshEdit.shboxName =null;
this.queryshEdit.shboxCapacity = null;
this.queryshEdit.shboxBindNum = null;
}else{
this.shboxId = row.shboxId;
}
@ -1651,8 +1661,6 @@
/** 提交按钮 */
submitForm() {
console.log(this.shboxIdOne);
console.log(this.radioOne);
this.queryshCode.shCode = this.queryshCode.shCode;
this.queryshCode.shboxId = this.shboxIdOne;
this.$refs["queryshCode"].validate(valid => {