From 2c6108551512f7f8311a8037725eb157c714671b Mon Sep 17 00:00:00 2001 From: zhoulinf <2507241354@qq.com> Date: Thu, 27 Nov 2025 14:42:53 +0800 Subject: [PATCH] =?UTF-8?q?story#7552=20=E6=BD=9C=E5=9C=A8=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=95=86=EF=BC=8C=E7=9C=81=E7=A6=81=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/supplierAdd.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/index/supplierAdd.vue b/src/views/index/supplierAdd.vue index 902cf4f8..f1ee4726 100644 --- a/src/views/index/supplierAdd.vue +++ b/src/views/index/supplierAdd.vue @@ -158,7 +158,7 @@ children: 'children', label: 'title', }, - areaProps: { multiple: true, checkStrictly: true, value: 'id',label: 'title', emitPath: false, }, + areaProps: { multiple: true, checkStrictly: true, value: 'id',label: 'title', emitPath: false}, configId: '', wechatId: '', } @@ -295,7 +295,15 @@ }, async getAreaTree() { let res = await getArea(); - this.areaList = res?.data; + let result = res?.data + result?.map(item=>{ + if( item.parentId == 0 ) { + this.$set(item , 'disabled' ,true) + } else { + this.$set(item , 'disabled' ,false) + } + }) + this.areaList = result; }, /*async getSupplierServiceTree(){ let res = await supplierServicePartTree({