fix: 客服菜单增加投诉工单,列表按俱乐部过滤

seed_kefu_menu 后侧栏才能出现「投诉工单」;admin list 使用 club 上下文过滤。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-07-21 00:47:24 +08:00
parent 27862fa22b
commit 7c6e14db01
2 changed files with 7 additions and 0 deletions

View File

@@ -282,6 +282,11 @@ class GongdanAdminListView(APIView):
page = int(request.data.get('page') or 1) page = int(request.data.get('page') or 1)
page_size = min(int(request.data.get('page_size') or 20), 100) page_size = min(int(request.data.get('page_size') or 20), 100)
qs = Gongdan.query.all().order_by('-CreateTime') qs = Gongdan.query.all().order_by('-CreateTime')
try:
from jituan.services.club_context import filter_club_char_field
qs = filter_club_char_field(qs, request, field='club_id')
except Exception:
pass
zhuangtai = request.data.get('zhuangtai') zhuangtai = request.data.get('zhuangtai')
leixing = request.data.get('leixing') leixing = request.data.get('leixing')
keyword = (request.data.get('keyword') or '').strip() keyword = (request.data.get('keyword') or '').strip()

View File

@@ -62,6 +62,8 @@ KEFU_MENU_ROW_DEFS = [
'perm_codes': ['005aa', '66693a', '66693b', '66693c', '66694c', '99933abs']}, 'perm_codes': ['005aa', '66693a', '66693b', '66693c', '66694c', '99933abs']},
{'page_id': 'punishment.detail', 'name': '积分处罚详情', 'path': '/punishment/detail', 'parent_id': 'punishment', 'sort_order': 81, {'page_id': 'punishment.detail', 'name': '积分处罚详情', 'path': '/punishment/detail', 'parent_id': 'punishment', 'sort_order': 81,
'perm_codes': ['005aa', '66693a', '66693b', '66693c', '66694c', '99933abs']}, 'perm_codes': ['005aa', '66693a', '66693b', '66693c', '66694c', '99933abs']},
{'page_id': 'gongdan', 'name': '投诉工单', 'path': '/gongdan', 'parent_id': '', 'sort_order': 82,
'perm_codes': ['gdck666', 'gdcl666']},
{'page_id': 'product', 'name': '商品管理', 'path': '', 'parent_id': '', 'sort_order': 90}, {'page_id': 'product', 'name': '商品管理', 'path': '', 'parent_id': '', 'sort_order': 90},
{'page_id': 'product.list', 'name': '商品列表', 'path': '/product/list', 'parent_id': 'product', 'sort_order': 91, {'page_id': 'product.list', 'name': '商品列表', 'path': '/product/list', 'parent_id': 'product', 'sort_order': 91,
'perm_codes': ['2200a']}, 'perm_codes': ['2200a']},