Merge remote-tracking branch 'origin/feature/0915_素材中心新增手动上传' into test
This commit is contained in:
@ -269,7 +269,9 @@ export default defineComponent({
|
||||
});
|
||||
return;
|
||||
}
|
||||
const { code, data } = await postBatchRawMaterial({ raw_materials: uploadData.value });
|
||||
|
||||
const raw_materials = uploadData.value.filter((item) => item.uploadStatus !== EnumUploadStatus.error);
|
||||
const { code } = await postBatchRawMaterial({ raw_materials });
|
||||
if (code === 200) {
|
||||
message.success('上传成功');
|
||||
emit('update');
|
||||
@ -493,7 +495,6 @@ export default defineComponent({
|
||||
multiple
|
||||
customRequest={handleUpload}
|
||||
class="w-full mb-16px"
|
||||
accept={[...imageExtensions, ...videoExtensions, ...documentExtensions].join(',')}
|
||||
showUploadList={false}
|
||||
>
|
||||
<div
|
||||
|
||||
@ -17,7 +17,9 @@ import { Button, Modal, message } from 'ant-design-vue';
|
||||
import { deleteRawMaterial, batchDeleteRawMaterials } from '@/api/all/generationWorkshop';
|
||||
import icon1 from '@/assets/img/media-account/icon-warn-1.png';
|
||||
|
||||
const update = inject('update');
|
||||
// const update = inject('update');
|
||||
|
||||
const emits = defineEmits(['update', 'batchUpdate']);
|
||||
|
||||
const visible = ref(false);
|
||||
const fileId = ref(null);
|
||||
|
||||
@ -94,7 +94,7 @@ import { ref, computed } from 'vue';
|
||||
import { Button, Tooltip, Table, Tag } from 'ant-design-vue';
|
||||
const { Column } = Table;
|
||||
import { formatTableField, exactFormatTime, formatFileSize, downloadByUrl } from '@/utils/tools';
|
||||
import { slsWithCatch } from '@/utils/stroage.ts';
|
||||
// import { slsWithCatch } from '@/utils/stroage.ts';
|
||||
import { TABS_LIST, ORIGIN_LIST, RawMaterialType } from '../../constants';
|
||||
|
||||
import TextOverTips from '@/components/text-over-tips';
|
||||
|
||||
Reference in New Issue
Block a user