修改
This commit is contained in:
parent
62a9cb3108
commit
63223d1b42
@ -36,7 +36,7 @@
|
|||||||
v-model="queryParams.areaName"
|
v-model="queryParams.areaName"
|
||||||
placeholder="请输入区域名称"
|
placeholder="请输入区域名称"
|
||||||
clearable
|
clearable
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="resethandleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="区域编码" prop="areaCode">
|
<el-form-item label="区域编码" prop="areaCode">
|
||||||
@ -44,7 +44,7 @@
|
|||||||
v-model="queryParams.areaCode"
|
v-model="queryParams.areaCode"
|
||||||
placeholder="请输入区域编码"
|
placeholder="请输入区域编码"
|
||||||
clearable
|
clearable
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="resethandleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
@ -52,7 +52,7 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleQuery"
|
@click="resethandleQuery"
|
||||||
>搜索</el-button
|
>搜索</el-button
|
||||||
>
|
>
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||||
@ -358,7 +358,6 @@ export default {
|
|||||||
this.queryParams.areaLevel = 1;
|
this.queryParams.areaLevel = 1;
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
selectAreaListinfo(1).then((res) => {
|
selectAreaListinfo(1).then((res) => {
|
||||||
this.queryParams.areaLevel = null;
|
|
||||||
if (res.data.length > 0) {
|
if (res.data.length > 0) {
|
||||||
res.data.forEach((e) => {
|
res.data.forEach((e) => {
|
||||||
e.children = [
|
e.children = [
|
||||||
@ -449,6 +448,14 @@ export default {
|
|||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
},
|
},
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
|
resethandleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.queryParams.pageSize = 10;
|
||||||
|
this.queryParams.areaLevel = null;
|
||||||
|
this.queryParams.areaCode = null;
|
||||||
|
this.queryParams.parentName = null;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
this.queryParams.pageNum = 1;
|
this.queryParams.pageNum = 1;
|
||||||
this.getList();
|
this.getList();
|
||||||
@ -457,6 +464,7 @@ export default {
|
|||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.queryParams.parentCode = null;
|
this.queryParams.parentCode = null;
|
||||||
|
this.queryParams.areaLevel = 1;
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user