From d7fa51feacf056036db4a36c7184fff192dc821e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com>
Date: Wed, 11 Jan 2023 13:40:37 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/area/index.vue | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/views/system/area/index.vue b/src/views/system/area/index.vue
index 014904e..8e6ba37 100644
--- a/src/views/system/area/index.vue
+++ b/src/views/system/area/index.vue
@@ -211,9 +211,9 @@
-
+
否
是
@@ -468,7 +468,9 @@ export default {
/** 查询区域列表 */
getList() {
this.loading = true;
+ console.log(this.queryParams);
listArea(this.queryParams).then((response) => {
+ console.log(1);
response.rows.forEach((e) => {
if (e.remoteSigns == 1) {
e.remoteSigns = true;
@@ -537,6 +539,7 @@ export default {
this.form.parentId = row.id;
this.form.parentCode = row.areaCode;
this.form.parentName = row.areaName;
+ this.form.areaLevel = row.areaLevel
this.title = "添加区域";
this.open = true;
},
@@ -565,6 +568,9 @@ export default {
addArea(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
+ this.queryParams.parentCode = this.form.parentCode;
+ this.queryParams.areaLevel = null;
+ console.log(this.queryParams);
this.getList();
});
}