From dcfe2e1201320dfbba3869db04652d745a23e721 Mon Sep 17 00:00:00 2001 From: smallchill Date: Mon, 14 Sep 2020 15:55:30 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=20=E4=BF=AE=E6=94=B9=E5=8C=BA=E5=88=92?= =?UTF-8?q?=E7=AD=89=E7=BA=A7=E5=AD=97=E6=AE=B5level=E4=B8=BAregionLevel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/base/region.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/base/region.vue b/src/views/base/region.vue index 8f139ae..85fe97a 100644 --- a/src/views/base/region.vue +++ b/src/views/base/region.vue @@ -67,6 +67,7 @@ nodeKey: 'id', lazy: true, treeLoad: function (node, resolve) { + debugger const parentCode = (node.level === 0) ? "00" : node.data.id; getLazyTree(parentCode).then(res => { resolve(res.data.data.map(item => { @@ -136,7 +137,7 @@ }, { label: "区划等级", - prop: "level", + prop: "regionLevel", type: "radio", dicUrl: "/api/blade-system/dict/dictionary?code=region", props: { @@ -332,7 +333,7 @@ this.regionForm.code = ''; this.regionForm.subCode = ''; this.regionForm.name = ''; - this.regionForm.level = (this.regionForm.level === 5) ? 5 : this.regionForm.level + 1; + this.regionForm.regionLevel = (this.regionForm.regionLevel === 5) ? 5 : this.regionForm.regionLevel + 1; }, handleSubmit(form, done, loading) { const parentCode = form.parentCode === this.topCode ? '' : form.parentCode;