update config file
This commit is contained in:
parent
b08c912644
commit
fae77a64c2
|
@ -57,7 +57,7 @@ const BTable = (props: any) => {
|
|||
>
|
||||
编辑
|
||||
</Button>
|
||||
{actionCloumn}
|
||||
{actionCloumn ? actionCloumn(record) : null}
|
||||
<Popconfirm
|
||||
title="删除确认"
|
||||
description="您是否需要删除该数据?"
|
||||
|
|
|
@ -20,10 +20,10 @@ const Source = (props: Store) => {
|
|||
sourceStore.getlist();
|
||||
}, [sourceStore]);
|
||||
const gotoDetail = () => {};
|
||||
const upload = (e) => {
|
||||
console.log("upload", e.target.files);
|
||||
const upload = (f,e) => {
|
||||
let param = new FormData();
|
||||
param.append("file", e.target.files[0]);
|
||||
param.append("file", f.target.files[0]);
|
||||
param.append("identity", e.identity);
|
||||
baseHttp.upload("public/fts/upload",param)
|
||||
};
|
||||
return (
|
||||
|
@ -40,8 +40,8 @@ const Source = (props: Store) => {
|
|||
deleteCallback={(id) => {
|
||||
sourceStore.deleteItem(id);
|
||||
}}
|
||||
actionCloumn={
|
||||
<>
|
||||
actionCloumn={(e)=>{
|
||||
return <>
|
||||
<Button size="small" onClick={() => gotoDetail()}>
|
||||
查看数据集
|
||||
</Button>
|
||||
|
@ -49,10 +49,12 @@ const Source = (props: Store) => {
|
|||
type="file"
|
||||
name="文件上传"
|
||||
accept=".xlsx"
|
||||
onChange={upload}
|
||||
onChange={(f)=>{
|
||||
upload(f,e)
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
}
|
||||
}}
|
||||
editCallback={(record) => {
|
||||
setIsModalOpen(true);
|
||||
formRef.current?.setFieldsValue(record);
|
||||
|
|
Loading…
Reference in New Issue