更新部分功能
This commit is contained in:
@ -19,9 +19,10 @@ interface attachmentsAdd {
|
||||
|
||||
interface Props {
|
||||
viewType?: boolean;
|
||||
record?: string;
|
||||
}
|
||||
const OtherAttachmentsTab: React.FC<Props> = (props) => {
|
||||
const { viewType = false } = props;
|
||||
const { viewType = false, record = '' } = props;
|
||||
//语言切换
|
||||
const intl = useIntl();
|
||||
//列表渲染数据
|
||||
@ -35,7 +36,7 @@ const OtherAttachmentsTab: React.FC<Props> = (props) => {
|
||||
const getList = async (pageNo = 1, pageSize = 10) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
const { code, data } = await battachmentsGetPage({ pageNo, pageSize });
|
||||
const { code, data } = await battachmentsGetPage({ pageNo, pageSize, supplierId: record });
|
||||
if (code === 200) {
|
||||
setData(data.records);
|
||||
setPagination({ current: pageNo, pageSize, total: data.total });
|
||||
|
Reference in New Issue
Block a user