|
@@ -6,16 +6,12 @@ import { B3eTableC } from '@/utils/tableData'
|
|
|
import MyPopconfirm from '@/components/MyPopconfirm'
|
|
|
import classNames from 'classnames'
|
|
|
import Y1cathet from '@/pages/Y_goodsDetails/Y1cathet'
|
|
|
+import { openGoodsInfoFu } from '@/utils/history'
|
|
|
|
|
|
function B3goodsTable() {
|
|
|
// 点击删除
|
|
|
const delTableFu = useCallback(async (id: number) => {}, [])
|
|
|
|
|
|
- // 点击查看 新窗口打开 待完善
|
|
|
- const lookPage = useCallback((id: number) => {
|
|
|
- window.open('/#/goodsLook/99', '_blank')
|
|
|
- }, [])
|
|
|
-
|
|
|
// 打开侧边栏
|
|
|
const [cathet, setCathet] = useState(0)
|
|
|
|
|
@@ -44,7 +40,7 @@ function B3goodsTable() {
|
|
|
render: (item: any) => {
|
|
|
return (
|
|
|
<>
|
|
|
- <Button size='small' type='text' onClick={() => lookPage(item.id)}>
|
|
|
+ <Button size='small' type='text' onClick={() => openGoodsInfoFu(item.id)}>
|
|
|
查看
|
|
|
</Button>
|
|
|
<MyPopconfirm txtK='删除' onConfirm={() => delTableFu(item.id)} />
|
|
@@ -53,7 +49,7 @@ function B3goodsTable() {
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
- }, [delTableFu, lookPage])
|
|
|
+ }, [delTableFu])
|
|
|
|
|
|
return (
|
|
|
<div className={styles.B3goodsTable}>
|