diff --git a/src/views/system/area/index.vue b/src/views/system/area/index.vue
index 24fef2d..06e29bc 100644
--- a/src/views/system/area/index.vue
+++ b/src/views/system/area/index.vue
@@ -36,7 +36,7 @@
v-model="queryParams.areaName"
placeholder="请输入区域名称"
clearable
- @keyup.enter.native="handleQuery"
+ @keyup.enter.native="resethandleQuery"
/>
@@ -44,7 +44,7 @@
v-model="queryParams.areaCode"
placeholder="请输入区域编码"
clearable
- @keyup.enter.native="handleQuery"
+ @keyup.enter.native="resethandleQuery"
/>
@@ -52,7 +52,7 @@
type="primary"
icon="el-icon-search"
size="mini"
- @click="handleQuery"
+ @click="resethandleQuery"
>搜索
{
- this.queryParams.areaLevel = null;
if (res.data.length > 0) {
res.data.forEach((e) => {
e.children = [
@@ -449,6 +448,14 @@ export default {
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() {
this.queryParams.pageNum = 1;
this.getList();
@@ -457,6 +464,7 @@ export default {
resetQuery() {
this.resetForm("queryForm");
this.queryParams.parentCode = null;
+ this.queryParams.areaLevel = 1;
this.handleQuery();
},
// 多选框选中数据