|
@@ -46,6 +46,10 @@ function A2Abusiness() {
|
|
|
// 顶部的type 按钮
|
|
|
const [topType, setTopType] = useState<TopTypeType>('ZL')
|
|
|
|
|
|
+ const typeName = useMemo(() => {
|
|
|
+ return A2AtopTypeArr.find(v => v.key === topType)!.name
|
|
|
+ }, [topType])
|
|
|
+
|
|
|
// 筛选和分页
|
|
|
const [tableSelect, setTableSelect] = useState(tableSelectBase)
|
|
|
|
|
@@ -138,7 +142,7 @@ function A2Abusiness() {
|
|
|
return MessageFu.warning('只支持导出最多30000条数据。请增加筛选条件,并重新尝试')
|
|
|
|
|
|
if (A2ATableList.list.length === 0) return MessageFu.warning('当前搜索条件没有数据!')
|
|
|
- const name = '业务订单' + dayjs(new Date()).format('YYYY-MM-DD HH:mm')
|
|
|
+ const name = typeName + '订单' + dayjs(new Date()).format('YYYY-MM-DD HH:mm')
|
|
|
|
|
|
const objTemp: any = {}
|
|
|
|
|
@@ -219,7 +223,7 @@ function A2Abusiness() {
|
|
|
const toExcel = new ExportJsonExcel(option) //new
|
|
|
toExcel.saveExcel() //保存
|
|
|
}
|
|
|
- }, [A2ATableList.list.length, A2ATableList.total, tableSelect, topType])
|
|
|
+ }, [A2ATableList.list.length, A2ATableList.total, tableSelect, topType, typeName])
|
|
|
|
|
|
const columns = useMemo(() => {
|
|
|
let arr: any = [
|
|
@@ -350,7 +354,7 @@ function A2Abusiness() {
|
|
|
<div className={styles.A2Abusiness}>
|
|
|
<div className='pageTitle'>
|
|
|
{leftTitle}
|
|
|
- {openInfo.id ? `(${A2AtopTypeArr.find(v => v.key === topType)!.name})` : ''}
|
|
|
+ {openInfo.id ? `(${typeName})` : ''}
|
|
|
</div>
|
|
|
{/* 顶部筛选 */}
|
|
|
<div className='A2Atop'>
|