自测问题

This commit is contained in:
jjLv 2024-08-21 18:07:42 +08:00
parent 4ea0476d01
commit be21098f35
1 changed files with 19 additions and 14 deletions

View File

@ -2,7 +2,7 @@
<el-tabs v-model="activeName" @tab-click="handleClick" class="app-container">
<el-tab-pane label="手环管理" name="first" onclick="handleQuery">
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form :model="queryParams" ref="queryFormOne" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item prop="shCode">
<el-input
@ -20,14 +20,6 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item prop="shboxCode">
<el-input
v-model="queryParams.shboxCode"
placeholder="请输入手环箱编码"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item prop="shPersonName">
<el-input
v-model="queryParams.shPersonName"
@ -157,7 +149,7 @@
/>
<!-- 手环弹窗 -->
<el-dialog :title="title" :visible.sync="showsh" width="600px" height="600px" append-to-body>
<el-dialog :title="title" :visible.sync="showsh" width="600px" height="600px" append-to-body @close="cancel">
<el-form :model="queryshCode" ref="queryshCode" :rules="rules" size="small" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="手环编码" prop="shCode">
<el-input
@ -244,7 +236,7 @@
</el-dialog>
<!-- 修改手环弹窗 -->
<el-dialog :title="title" :visible.sync="showShEdit" width="600px" height="600px" append-to-body>
<el-dialog :title="title" :visible.sync="showShEdit" width="600px" height="600px" append-to-body @close="cancelEdit">
<el-form :model="queryshEdit" ref="queryshEdit" :rules="rules" size="small" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="手环编码" prop="shCode">
<el-input
@ -1169,11 +1161,12 @@
//
cancel() {
this.showsh = false;
this.reset();
this.resetAdd();
},
//
cancelEdit() {
this.showShEdit = false;
this.resetEdit();
},
//
cancelBind() {
@ -1204,9 +1197,14 @@
this.formThree = {};
this.resetForm("formThree");
},
//
resetAdd() {
this.queryshCode.shCode = '';
this.resetForm("queryshCode");
},
//
resetEdit() {
this.queryshEdit = {};
this.queryshEdit.shCode = {};
this.resetForm("queryshEdit");
},
//
@ -1246,7 +1244,7 @@
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.resetForm("queryFormOne");
this.currentSelectionSh = [];//
this.handleQuery();
},
@ -1554,6 +1552,7 @@
/** 修改按钮操作 */
handleUpdate(row) {
// this.reset();
this.queryshEdit.pageNum = 1;
const shPersonName = row.shPersonName;
const shId = row.shId;
if(shPersonName!=null&&shPersonName!=''){
@ -1652,7 +1651,10 @@
/** 提交按钮 */
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 => {
if (valid) {
addSh(this.queryshCode).then(response => {
@ -1864,6 +1866,8 @@
//
openShbox(row){
// this.resetAdd();
this.queryshCode.pageNum = 1;
this.shboxIdOne = null;
this.title = "新增手环"
this.showsh = true;
@ -1886,6 +1890,7 @@
//
openShEdit(row){
this.resetEdit();
this.shId = row.shId;
this.title = "修改手环"
this.showShEdit = true;