fix: 商品管理菜单在具体俱乐部可见,支持专区与商品管理
侧栏不再要求集团汇总才显示商品列表/类型专区;类型CRUD仍仅集团汇总可写。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -110,6 +110,10 @@
|
||||
<el-icon><Warning /></el-icon>
|
||||
<span>处罚管理</span>
|
||||
</el-menu-item>
|
||||
<el-menu-item v-if="canShow('gongdan')" index="/gongdan">
|
||||
<el-icon><ChatDotRound /></el-icon>
|
||||
<span>投诉工单</span>
|
||||
</el-menu-item>
|
||||
|
||||
<!-- 商品管理 -->
|
||||
<el-sub-menu v-if="canShow('product')" index="/product">
|
||||
@@ -117,9 +121,9 @@
|
||||
<el-icon><Goods /></el-icon>
|
||||
<span>商品管理</span>
|
||||
</template>
|
||||
<el-menu-item v-if="canShow('product.list') && isAllClubScope" index="/product/list">商品列表</el-menu-item>
|
||||
<el-menu-item v-if="canShow('product.type-zone') && isAllClubScope" index="/product/type-zone">商品类型专区管理</el-menu-item>
|
||||
<el-menu-item v-if="canShow('product.data') && isAllClubScope" index="/product/data">商品数据分析</el-menu-item>
|
||||
<el-menu-item v-if="canShow('product.list')" index="/product/list">商品列表</el-menu-item>
|
||||
<el-menu-item v-if="canShow('product.type-zone')" index="/product/type-zone">商品类型专区管理</el-menu-item>
|
||||
<el-menu-item v-if="canShow('product.data')" index="/product/data">商品数据分析</el-menu-item>
|
||||
<el-menu-item v-if="canShow('product.fake-orders')" index="/product/fake-orders">假单管理</el-menu-item>
|
||||
</el-sub-menu>
|
||||
|
||||
@@ -251,7 +255,7 @@ import { useRoute, useRouter } from 'vue-router'
|
||||
import { ElMessage, ElNotification } from 'element-plus'
|
||||
import {
|
||||
List, User, Warning, Money, Fold, Expand, Connection, Setting,
|
||||
Goods, UserFilled, Shop, Comment,DataAnalysis, Medal // 新增
|
||||
Goods, UserFilled, Shop, Comment, DataAnalysis, Medal, ChatDotRound
|
||||
} from '@element-plus/icons-vue'
|
||||
import request from '@/utils/request'
|
||||
import KefuConnect from '@/components/KefuConnect.vue'
|
||||
@@ -430,9 +434,9 @@ const agentUnread = ref(0) // 未读消息总数
|
||||
const permPrefixMap = {
|
||||
'abca1': 'Ds', // 打手
|
||||
'baac2': 'Boss', // 老板
|
||||
'cabc3': 'Gs', // 管事
|
||||
'cabc3': 'Ds', // 管事(与小程序一致,统一 Ds)
|
||||
'cb3a2': 'Sj', // 商家
|
||||
'bcaa4': 'Zz' // 组长
|
||||
'bcaa4': 'Ds' // 组长(与小程序一致,统一 Ds)
|
||||
}
|
||||
|
||||
// 获取客服权限及GoEasy配置
|
||||
|
||||
Reference in New Issue
Block a user