From c83d83f950feebde8f6ea9e5842d26132c1946f5 Mon Sep 17 00:00:00 2001 From: liujun Date: Thu, 14 Dec 2023 17:02:05 +0800 Subject: [PATCH] =?UTF-8?q?13126=20=E4=BC=81=E4=B8=9A=E7=AB=AF=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E7=9A=84=E7=9B=B8=E5=85=B3=E6=96=B9=20=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E7=9A=84=E6=97=B6=E5=80=99=E5=9F=BA=E5=B1=82=E4=B8=BB?= =?UTF-8?q?=E7=AE=A1=E9=83=A8=E9=97=A8=E5=92=8C=E5=9F=BA=E5=B1=82=E7=9B=91?= =?UTF-8?q?=E7=AE=A1=E9=83=A8=E9=97=A8=E8=83=BD=E9=80=89=E6=8B=A9=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E5=88=86=E5=85=AC=E5=8F=B8=20=E5=BA=94=E8=AF=A5?= =?UTF-8?q?=E5=8F=AA=E8=83=BD=E9=80=89=E6=8B=A9=E8=87=AA=E5=B7=B1=E5=88=86?= =?UTF-8?q?=E5=85=AC=E5=8F=B8=20=E5=8F=82=E8=80=83=E5=88=9B=E5=BB=BA=20?= =?UTF-8?q?=E6=B3=A8=E6=84=8F=E4=B8=8D=E8=83=BD=E5=BD=B1=E5=93=8D=E7=9B=91?= =?UTF-8?q?=E7=AE=A1=E7=AB=AF=E5=88=9B=E5=BB=BA=E7=9A=84=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xgf/insert/components/corpInfoEdit.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/views/xgf/insert/components/corpInfoEdit.vue b/src/views/xgf/insert/components/corpInfoEdit.vue index 5cb09f2..38985d0 100644 --- a/src/views/xgf/insert/components/corpInfoEdit.vue +++ b/src/views/xgf/insert/components/corpInfoEdit.vue @@ -448,16 +448,13 @@ export default { return list }, cascaderChange(e) { - // console.log('e', e) const newVal = e[e.length - 1] - // console.log('选中', newVal[newVal.length - 1]) if (newVal === '1' || newVal === '2' || newVal === '3' || newVal === '4') { this.$message({ message: '请选择正确的属地...', type: 'error' }) this.form.POSSESSION.pop() - // console.log('移除', this.corpStateForm.REGULATORY_DEPARTMENT_ARR) } }, // 加载级联的方法 @@ -525,7 +522,8 @@ export default { '/department/listTreeManageAndCorp1/', {} ).then((data) => { - this.treeData = JSON.parse(data.zTreeNodes) + const treeData = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes') + this.treeData = this.removeEmptyChildren(treeData) }).catch((e) => { }) resolve() @@ -599,7 +597,7 @@ export default { getDict() { return new Promise((resolve, reject) => { requestFN( - '/corpinfo/listTreeManageAndCorpHasOrder', + '/department/listTree/', {} ).then((data) => { const treeData = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes')