消息通知增加是否已读查询

This commit is contained in:
孙景学
2025-08-11 15:18:26 +08:00
parent b443415522
commit 1645cb26d8
2 changed files with 13 additions and 1 deletions

View File

@ -54,7 +54,7 @@ const SupplierEntryManage: React.FC = () => {
setLoading(true);
try {
// mock 请求
const { code, data } = await getPage({ basePageRequest: { pageNo, pageSize }, ...form.getFieldsValue(), type: 'supplier' });
const { code, data } = await getPage({ basePageRequest: { pageNo, pageSize }, ...form.getFieldsValue(), type: 'supplier', approveStatus: "2" });
if (code === 200) {
setData(data.records);
setPagination({ ...pagination, current: pageNo, pageSize, total: data.total });

View File

@ -8,6 +8,11 @@ import { getDictList } from '@/servers/api/dicts'
//统一列表分页
import tableProps from '@/utils/tableProps'
const readTypeOptions = [
{ dicName: '是', code: '1' },
{ dicName: '否', code: '0' },
];
interface CategoryOption {
code: string;
dicName: string;
@ -144,6 +149,13 @@ const SupplierMessage: React.FC = () => {
))}
</Select>
</Form.Item>
<Form.Item name="read" label="是否已读">
<Select style={{ width: 200 }} placeholder="请选择是否已读" allowClear>
{readTypeOptions.map(opt => (
<Select.Option key={opt.code} value={opt.code}>{opt.dicName}</Select.Option>
))}
</Select>
</Form.Item>
<Form.Item>
<Button className="buttonSubmit" type="primary" htmlType="submit" icon={<SearchOutlined />} onClick={handleSearch} >