feat(ai-web): 完成执行任务的创建(提交漏的文件)
This commit is contained in:
@@ -1,6 +1,41 @@
|
||||
import {amisRender, commonInfo} from '../util/amis.tsx'
|
||||
|
||||
function Test() {
|
||||
return (
|
||||
<div>Test</div>
|
||||
<div>
|
||||
{amisRender(
|
||||
{
|
||||
debug: commonInfo.debug,
|
||||
type: 'form',
|
||||
canAccessSuperData: false,
|
||||
actions: [
|
||||
{
|
||||
type: 'reset',
|
||||
label: '重置',
|
||||
},
|
||||
{
|
||||
type: 'submit',
|
||||
label: '提交',
|
||||
},
|
||||
],
|
||||
body: [
|
||||
{
|
||||
type: 'input-file',
|
||||
required: true,
|
||||
name: 'files',
|
||||
label: '数据文件',
|
||||
autoUpload: false,
|
||||
drag: true,
|
||||
multiple: true,
|
||||
accept: '*',
|
||||
maxSize: 104857600,
|
||||
receiver: `${commonInfo.baseAiUrl}/upload`,
|
||||
useChunk: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user