|
@@ -1,14 +1,13 @@
|
|
-import React, { useCallback, useMemo, useRef } from 'react'
|
|
|
|
|
|
+import React, { useCallback, useRef } from 'react'
|
|
import styles from './index.module.scss'
|
|
import styles from './index.module.scss'
|
|
import { useParams } from 'react-router-dom'
|
|
import { useParams } from 'react-router-dom'
|
|
import B3aTop from '../B3add/B3aTop'
|
|
import B3aTop from '../B3add/B3aTop'
|
|
import { TypeB3PageSta } from '../type'
|
|
import { TypeB3PageSta } from '../type'
|
|
import { Button } from 'antd'
|
|
import { Button } from 'antd'
|
|
-import MyTable from '@/components/MyTable'
|
|
|
|
-import { B3eTableC } from '@/utils/tableData'
|
|
|
|
import MyPopconfirm from '@/components/MyPopconfirm'
|
|
import MyPopconfirm from '@/components/MyPopconfirm'
|
|
import history from '@/utils/history'
|
|
import history from '@/utils/history'
|
|
import { B3TiaoObjUrl, B3TitObjKey } from '../B3add'
|
|
import { B3TiaoObjUrl, B3TitObjKey } from '../B3add'
|
|
|
|
+import B3goodsTable from '../../B3goodsTable'
|
|
|
|
|
|
type Props = {
|
|
type Props = {
|
|
pageSta: TypeB3PageSta
|
|
pageSta: TypeB3PageSta
|
|
@@ -20,27 +19,6 @@ function B3editMain({ pageSta }: Props) {
|
|
// 点击按钮调用子组件的方法获取数据
|
|
// 点击按钮调用子组件的方法获取数据
|
|
const topRef = useRef<any>(null)
|
|
const topRef = useRef<any>(null)
|
|
|
|
|
|
- // 点击删除
|
|
|
|
- const delTableFu = useCallback(async (id: number) => {}, [])
|
|
|
|
-
|
|
|
|
- const tableLastBtn = useMemo(() => {
|
|
|
|
- return [
|
|
|
|
- {
|
|
|
|
- title: '操作',
|
|
|
|
- render: (item: any) => {
|
|
|
|
- return (
|
|
|
|
- <>
|
|
|
|
- <Button size='small' type='text'>
|
|
|
|
- 查看
|
|
|
|
- </Button>
|
|
|
|
- <MyPopconfirm txtK='删除' onConfirm={() => delTableFu(item.id)} />
|
|
|
|
- </>
|
|
|
|
- )
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- }, [delTableFu])
|
|
|
|
-
|
|
|
|
// 点击保存
|
|
// 点击保存
|
|
const btnOk = useCallback(async () => {
|
|
const btnOk = useCallback(async () => {
|
|
// 从顶部组件中拿到数据
|
|
// 从顶部组件中拿到数据
|
|
@@ -67,22 +45,7 @@ function B3editMain({ pageSta }: Props) {
|
|
Dom={
|
|
Dom={
|
|
<>
|
|
<>
|
|
{/* 藏品清单 */}
|
|
{/* 藏品清单 */}
|
|
- <div className='B3eGoodTab'>
|
|
|
|
- <div className='B3eGtop'>
|
|
|
|
- <div className='B3eGtop1'>藏品清单</div>
|
|
|
|
- <div>
|
|
|
|
- <Button type='primary'>从已鉴定的藏品中新增</Button> 
|
|
|
|
- <Button type='primary'>新增</Button>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- {/* 表格 */}
|
|
|
|
- <MyTable
|
|
|
|
- list={[{ id: 1, thumb: '' }]}
|
|
|
|
- columnsTemp={B3eTableC}
|
|
|
|
- lastBtn={tableLastBtn}
|
|
|
|
- pagingInfo={false}
|
|
|
|
- />
|
|
|
|
- </div>
|
|
|
|
|
|
+ <B3goodsTable />
|
|
</>
|
|
</>
|
|
}
|
|
}
|
|
/>
|
|
/>
|