fix: 客服菜单增加投诉工单,列表按俱乐部过滤
seed_kefu_menu 后侧栏才能出现「投诉工单」;admin list 使用 club 上下文过滤。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -282,6 +282,11 @@ class GongdanAdminListView(APIView):
|
||||
page = int(request.data.get('page') or 1)
|
||||
page_size = min(int(request.data.get('page_size') or 20), 100)
|
||||
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')
|
||||
leixing = request.data.get('leixing')
|
||||
keyword = (request.data.get('keyword') or '').strip()
|
||||
|
||||
@@ -62,6 +62,8 @@ KEFU_MENU_ROW_DEFS = [
|
||||
'perm_codes': ['005aa', '66693a', '66693b', '66693c', '66694c', '99933abs']},
|
||||
{'page_id': 'punishment.detail', 'name': '积分处罚详情', 'path': '/punishment/detail', 'parent_id': 'punishment', 'sort_order': 81,
|
||||
'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.list', 'name': '商品列表', 'path': '/product/list', 'parent_id': 'product', 'sort_order': 91,
|
||||
'perm_codes': ['2200a']},
|
||||
|
||||
Reference in New Issue
Block a user