From b8578617882ddf12c806022b1cee614785c0c7d6 Mon Sep 17 00:00:00 2001 From: 落日与鲸 <10806022+gong-jinbao@user.noreply.gitee.com> Date: 星期二, 25 二月 2025 14:26:01 +0800 Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/H5/threeSide --- management/src/pages/message-notification/index.jsx | 35 ++++++++++++++++++----------------- 1 files changed, 18 insertions(+), 17 deletions(-) diff --git a/management/src/pages/message-notification/index.jsx b/management/src/pages/message-notification/index.jsx index 9f5ca6e..14e63b0 100644 --- a/management/src/pages/message-notification/index.jsx +++ b/management/src/pages/message-notification/index.jsx @@ -40,14 +40,14 @@ dataIndex: 'bannerName', hideInSearch: true, }, - + { title: '状态', dataIndex: 'listingStatus', hideInSearch: true, valueEnum: { '上架中': { text: '已读' }, - '已下架' : { text: '未读' }, + '已下架': { text: '未读' }, } }, { @@ -56,20 +56,21 @@ render: (text, record) => { return ( <Space> - - <Button - type="link" - onClick={() => { - showDelConfirm(async () => { - let status = await sendRequest(deleteBanner, record.id) - if (status) { - actionRef.current.reload(); - } - },'确认标记已读所选信息吗?'); - }} - > - 标记已读 - </Button> + <Access accessible={access['/message_notification/mark_read']}> + <Button + type="link" + onClick={() => { + showDelConfirm(async () => { + let status = await sendRequest(deleteBanner, record.id) + if (status) { + actionRef.current.reload(); + } + }, '确认标记已读所选信息吗?'); + }} + > + 标记已读 + </Button> + </Access> </Space > ); }, @@ -87,7 +88,7 @@ showQuickJumper: true, defaultPageSize: 10, }} - search={{labelWidth: 140}} + search={{ labelWidth: 140 }} request={(params) => { params.bannerType = Number(params.bannerType) return buildProTableDataSource(getList, params) -- Gitblit v1.7.1