消息通知增加是否已读查询
This commit is contained in:
@ -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 });
|
||||
|
@ -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} >
|
||||
搜索
|
||||
|
Reference in New Issue
Block a user