|
@@ -1,7 +1,7 @@
|
|
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
|
|
import styles from './index.module.scss'
|
|
|
import { useDispatch, useSelector } from 'react-redux'
|
|
|
-import { A2AFromDataType, A2AtopTypeArr } from './data'
|
|
|
+import { A2AFromDataType, A2AtopTypeArr, TopTypeType } from './data'
|
|
|
import { A2A_APIgetlist, A2A_APIgetlistDerive, A2A_APIremove } from '@/store/action/A2Abusiness'
|
|
|
import { RootState } from '@/store'
|
|
|
import { MessageFu } from '@/utils/message'
|
|
@@ -36,7 +36,7 @@ function A2Abusiness() {
|
|
|
const dispatch = useDispatch()
|
|
|
|
|
|
// 顶部的type 按钮
|
|
|
- const [topType, setTopType] = useState('ZL')
|
|
|
+ const [topType, setTopType] = useState<TopTypeType>('ZL')
|
|
|
|
|
|
// 筛选和分页
|
|
|
const [tableSelect, setTableSelect] = useState(tableSelectBase)
|
|
@@ -258,7 +258,8 @@ function A2Abusiness() {
|
|
|
title: '操作',
|
|
|
render: (item: A2AListType) => (
|
|
|
<>
|
|
|
- <Button size='small' type='text' onClick={() => setLookId(item.id)}>
|
|
|
+ {/* // 查看 待完善 */}
|
|
|
+ <Button size='small' type='text'>
|
|
|
查看
|
|
|
</Button>
|
|
|
<Button
|
|
@@ -293,8 +294,7 @@ function A2Abusiness() {
|
|
|
const obj = {
|
|
|
'': '业务订单',
|
|
|
新增: '业务订单-新增',
|
|
|
- 编辑: '业务订单-编辑',
|
|
|
- 查看: '业务订单-查看'
|
|
|
+ 编辑: '业务订单-编辑'
|
|
|
}
|
|
|
return obj[openInfo.txt]
|
|
|
}, [openInfo.txt])
|
|
@@ -310,9 +310,6 @@ function A2Abusiness() {
|
|
|
setTableSelect({ ...tableSelect, dateStart, dateEnd })
|
|
|
}
|
|
|
|
|
|
- // 查看 待完善
|
|
|
- const [lookId, setLookId] = useState(0)
|
|
|
-
|
|
|
return (
|
|
|
<div className={styles.A2Abusiness}>
|
|
|
<div className='pageTitle'>
|