|
|
|
@ -24,13 +24,13 @@ const CommonTable: FC = (props) => {
|
|
|
|
|
const receiveMessageFromIndex = (event: any) => {
|
|
|
|
|
const data: any = exceptStr(event.data);
|
|
|
|
|
if (!_.isEmpty(data)) {
|
|
|
|
|
const { columns, dataSource, pageInfo, i18n, selectedRowKeys, selectedKey } = data;
|
|
|
|
|
const { columns, dataSource, pageInfo, i18n, selectedRowKeys, selectedKey, azOperate } = data;
|
|
|
|
|
const { current: pageNum, pageSize: size, total } = pageInfo;
|
|
|
|
|
setDataSource(dataSource);
|
|
|
|
|
setI18n(i18n);
|
|
|
|
|
setPageInfo({ pageNum, size, total });
|
|
|
|
|
setSelected(selectedRowKeys);
|
|
|
|
|
setColumns([
|
|
|
|
|
setColumns(azOperate ? [
|
|
|
|
|
...columns,
|
|
|
|
|
{
|
|
|
|
|
title: i18n["操作"],
|
|
|
|
@ -46,7 +46,7 @@ const CommonTable: FC = (props) => {
|
|
|
|
|
) : null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]);
|
|
|
|
|
] : columns);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const handleEdit = (record: any) => {
|
|
|
|
|