This commit is contained in:
PC-202306242200\Administrator
2024-09-20 14:15:05 +08:00
parent 0744635890
commit 271a499def
48 changed files with 94 additions and 64 deletions

View File

@@ -11,6 +11,8 @@ import { PlusOutlined } from '@ant-design/icons';
const GoodsTableList: React.FC = () => {
const actionRef = useRef<ActionType>();
const access = useAccess()
const columns = [
{
@@ -93,6 +95,7 @@ const GoodsTableList: React.FC = () => {
<Button
type="link"
size="small"
hidden={!access.hasPerms('/api/goods/update')}
onClick={() => {
history.push(`goods/${record.id}/update`);
}}
@@ -142,6 +145,7 @@ const GoodsTableList: React.FC = () => {
<Button
type="primary"
key="add"
hidden={!access.hasPerms('/api/goods/add')}
onClick={async () => {
history.push('goods/0/create');
}}