新建任务
This commit is contained in:
1 parent
ae997fe850
commit
b3fa84e828
6 files changed
+425
-586
No files matched your search
@@ -68,7 +68,6 @@
|
||||
watch: {
|
||||
'inputFile':{
|
||||
handler(newVal,oldVal){
|
||||
console.log('inputFile', newVal);
|
||||
newVal.forEach(element => {
|
||||
this.uploadFn(element)
|
||||
});
|
||||
@@ -108,24 +107,12 @@
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log('uploadFn', result);
|
||||
|
||||
const { filename, downloadPath, binarySize } = result.data.appData.resultData;
|
||||
this.$emit('input', [...this.value, {filename, downloadPath, binarySize}]);
|
||||
|
||||
const { status } = result.data;
|
||||
if (status === 'success') {
|
||||
await window.jianghuAxios({
|
||||
data: {
|
||||
appData: {
|
||||
pageId: 'allPage',
|
||||
actionId: 'insertItem',
|
||||
actionData: { filename, downloadPath, binarySize }
|
||||
}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
// this.uploadFail++
|
||||
if (status !== 'success') {
|
||||
await window.vtoast.fail(filename + "上传失败");
|
||||
}
|
||||
this.isTableLoading = false
|
||||
|
||||
Reference in new issue
Block a user