From 22f9e1efd4c77a2c665d2e3e2c84c25e6ae775d4 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期四, 21 十二月 2023 17:07:01 +0800 Subject: [PATCH] 销售明细单 销售机会,销售报价单根据接口获取的配置判断是否必填的功能+按钮禁止点击的样式修改 --- src/components/layout/components/appsidebar/index.vue | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/components/layout/components/appsidebar/index.vue b/src/components/layout/components/appsidebar/index.vue index a3e7990..7be1f15 100644 --- a/src/components/layout/components/appsidebar/index.vue +++ b/src/components/layout/components/appsidebar/index.vue @@ -13,7 +13,7 @@ text-color="#bfcbd9" active-text-color="#fff" > - <el-submenu v-for="item in menus" :key="item.id" :index="item.id" > + <el-submenu v-for="item in menus" :key="item.id" :index="item.id.toString()" > <template slot="title"> <i class="el-icon-money icon"></i> <span>{{ item.title }}</span> @@ -66,7 +66,21 @@ console.log(res.data.list,"crm鑿滃崟") res.data.list.map((item)=>{ if(item.systemType===2){ - this.menus=item.menus + let newList= JSON.parse(JSON.stringify([...item.menus])) + // 闅愯棌浜� 鐢熸垚璁″垝 鍜� 鏈嶅姟鏀惰垂绠$悊妯″潡 + if(newList[1]){ + const found = newList[1].children.find(obj => obj.title === "鐢熸垚璁″垝") + if(found){ + newList[1].children=[...newList[1].children.slice(0, -1)]; + } + } + if(newList[2]){ + const found1 = newList[2].children.find(obj => obj.title === "鏈嶅姟鏀惰垂绠$悊") + if(found1){ + newList[2].children=[...newList[2].children.slice(0, -1)]; + } + } + this.menus=newList } }) }) -- Gitblit v1.8.0