|
@@ -118,6 +118,7 @@ function C4import({ colseFu }: Props) {
|
|
|
// 导入合格数据之后变成true
|
|
// 导入合格数据之后变成true
|
|
|
|
|
|
|
|
const B1upXLSXRef = useRef<any>(null)
|
|
const B1upXLSXRef = useRef<any>(null)
|
|
|
|
|
+ const [upType, setUpType] = useState('')
|
|
|
|
|
|
|
|
// 上传表格数据
|
|
// 上传表格数据
|
|
|
const [infoXLSX, setInfoXLSX] = useState<TypeinfoXLSX>({
|
|
const [infoXLSX, setInfoXLSX] = useState<TypeinfoXLSX>({
|
|
@@ -157,7 +158,13 @@ function C4import({ colseFu }: Props) {
|
|
|
>
|
|
>
|
|
|
<Button>下载模板</Button>
|
|
<Button>下载模板</Button>
|
|
|
</a>
|
|
</a>
|
|
|
- <Button type='primary' onClick={() => B1upXLSXRef.current?.openUpFu('1')}>
|
|
|
|
|
|
|
+ <Button
|
|
|
|
|
+ type='primary'
|
|
|
|
|
+ onClick={() => {
|
|
|
|
|
+ setUpType('馆内数据')
|
|
|
|
|
+ B1upXLSXRef.current?.openUpFu('1')
|
|
|
|
|
+ }}
|
|
|
|
|
+ >
|
|
|
上传表格
|
|
上传表格
|
|
|
</Button>
|
|
</Button>
|
|
|
<span className='jianGe'></span>
|
|
<span className='jianGe'></span>
|
|
@@ -170,7 +177,13 @@ function C4import({ colseFu }: Props) {
|
|
|
>
|
|
>
|
|
|
<Button>下载模板</Button>
|
|
<Button>下载模板</Button>
|
|
|
</a>
|
|
</a>
|
|
|
- <Button type='primary' onClick={() => B1upXLSXRef.current?.openUpFu('2')}>
|
|
|
|
|
|
|
+ <Button
|
|
|
|
|
+ type='primary'
|
|
|
|
|
+ onClick={() => {
|
|
|
|
|
+ setUpType('省平台数据')
|
|
|
|
|
+ B1upXLSXRef.current?.openUpFu('2')
|
|
|
|
|
+ }}
|
|
|
|
|
+ >
|
|
|
上传表格
|
|
上传表格
|
|
|
</Button>
|
|
</Button>
|
|
|
<span className='C4tit'>每组数据最多1000条</span>
|
|
<span className='C4tit'>每组数据最多1000条</span>
|
|
@@ -181,7 +194,11 @@ function C4import({ colseFu }: Props) {
|
|
|
infoXLSX={infoXLSX}
|
|
infoXLSX={infoXLSX}
|
|
|
upSuccFu={(succ, err) => setInfoXLSX({ show: true, succ, err })}
|
|
upSuccFu={(succ, err) => setInfoXLSX({ show: true, succ, err })}
|
|
|
isZongZhang={true}
|
|
isZongZhang={true}
|
|
|
- url='cms/import/im/upload/excel'
|
|
|
|
|
|
|
+ url={
|
|
|
|
|
+ upType === '馆内数据'
|
|
|
|
|
+ ? 'cms/import/im/upload/excel/gn'
|
|
|
|
|
+ : 'cms/import/im/upload/excel'
|
|
|
|
|
+ }
|
|
|
clickSuccFu={arr => {
|
|
clickSuccFu={arr => {
|
|
|
// console.log(123, arr)
|
|
// console.log(123, arr)
|
|
|
getListFu()
|
|
getListFu()
|