refactor(projects): 调整为批量上传文件
This commit is contained in:
parent
56d6d77da5
commit
ffd6211e4d
@ -61,8 +61,9 @@ async function handleSubmit() {
|
|||||||
fileList.value.forEach(item => {
|
fileList.value.forEach(item => {
|
||||||
item.status = 'pending';
|
item.status = 'pending';
|
||||||
});
|
});
|
||||||
uploadRef.value?.submit();
|
await uploadRef.value?.submit();
|
||||||
visible.value = false;
|
visible.value = false;
|
||||||
|
emit('submitted');
|
||||||
}
|
}
|
||||||
|
|
||||||
function isErrorState(xhr: XMLHttpRequest) {
|
function isErrorState(xhr: XMLHttpRequest) {
|
||||||
@ -125,10 +126,10 @@ watch(visible, () => {
|
|||||||
:action="`${baseURL}/workflow/definition/importDef`"
|
:action="`${baseURL}/workflow/definition/importDef`"
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
:data="data"
|
:data="data"
|
||||||
:max="1"
|
:max="10"
|
||||||
:file-size="50"
|
:file-size="50"
|
||||||
accept=".json"
|
accept=".json"
|
||||||
:multiple="false"
|
:multiple="true"
|
||||||
directory-dnd
|
directory-dnd
|
||||||
:default-upload="false"
|
:default-upload="false"
|
||||||
list-type="text"
|
list-type="text"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user