fix(接口测试): bugFix
This commit is contained in:
parent
fd83f2d362
commit
776c7edebc
|
@ -12,10 +12,12 @@
|
||||||
<template #content>
|
<template #content>
|
||||||
<div class="flex w-[200px] flex-col gap-[8px]">
|
<div class="flex w-[200px] flex-col gap-[8px]">
|
||||||
<template v-if="alreadyDeleteFiles.length > 0">
|
<template v-if="alreadyDeleteFiles.length > 0">
|
||||||
|
<div class="flex items-center justify-between">
|
||||||
<div class="flex items-center gap-[4px]">
|
<div class="flex items-center gap-[4px]">
|
||||||
<icon-exclamation-circle-fill class="!text-[rgb(var(--warning-6))]" :size="18" />
|
<icon-exclamation-circle-fill class="!text-[rgb(var(--warning-6))]" :size="18" />
|
||||||
<div class="text-[var(--color-text-4)]">{{ t('ms.add.attachment.alreadyDelete') }}</div>
|
<div class="text-[var(--color-text-4)]">{{ t('ms.add.attachment.alreadyDelete') }}</div>
|
||||||
<MsButton type="text" :disabled="props.disabled" @click="clearDeletedFiles">
|
</div>
|
||||||
|
<MsButton type="text" :disabled="props.disabled" size="mini" @click="clearDeletedFiles">
|
||||||
{{ t('ms.add.attachment.quickClear') }}
|
{{ t('ms.add.attachment.quickClear') }}
|
||||||
</MsButton>
|
</MsButton>
|
||||||
</div>
|
</div>
|
||||||
|
@ -27,7 +29,7 @@
|
||||||
<a-tooltip :content="t('ms.add.attachment.remove')">
|
<a-tooltip :content="t('ms.add.attachment.remove')">
|
||||||
<MsButton type="text" status="secondary" :disabled="props.disabled" @click="handleClose(file)">
|
<MsButton type="text" status="secondary" :disabled="props.disabled" @click="handleClose(file)">
|
||||||
<MsIcon
|
<MsIcon
|
||||||
type="icon-icon_unlink"
|
type="icon-icon_delete-trash_outlined1"
|
||||||
:class="props.disabled ? '' : 'hover:text-[rgb(var(--primary-5))]'"
|
:class="props.disabled ? '' : 'hover:text-[rgb(var(--primary-5))]'"
|
||||||
size="16"
|
size="16"
|
||||||
/>
|
/>
|
||||||
|
@ -148,6 +150,7 @@
|
||||||
|
|
||||||
function clearDeletedFiles() {
|
function clearDeletedFiles() {
|
||||||
inputFiles.value = inputFiles.value.filter((item) => !item.delete);
|
inputFiles.value = inputFiles.value.filter((item) => !item.delete);
|
||||||
|
fileList.value = fileList.value.filter((item) => !item.delete);
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleClose(data: TagData) {
|
function handleClose(data: TagData) {
|
||||||
|
|
|
@ -82,9 +82,9 @@
|
||||||
@open-save-as="handleOpenSaveAs"
|
@open-save-as="handleOpenSaveAs"
|
||||||
@delete-file="emit('deleteFile', $event)"
|
@delete-file="emit('deleteFile', $event)"
|
||||||
>
|
>
|
||||||
<div class="h-full flex-1">
|
<div class="h-full w-[calc(100%-24px)]">
|
||||||
<MsTagsInput
|
<MsTagsInput
|
||||||
v-model:model-value="inputFiles"
|
:model-value="inputFiles"
|
||||||
:input-class="props.inputClass"
|
:input-class="props.inputClass"
|
||||||
placeholder=" "
|
placeholder=" "
|
||||||
:disabled="props.disabled"
|
:disabled="props.disabled"
|
||||||
|
|
|
@ -993,8 +993,8 @@
|
||||||
record.files = files.map((e) => ({
|
record.files = files.map((e) => ({
|
||||||
...e,
|
...e,
|
||||||
fileId: e.uid || e.fileId || '',
|
fileId: e.uid || e.fileId || '',
|
||||||
fileName: e.originalName || '',
|
fileName: e.originalName || e.name || e.fileName || '',
|
||||||
fileAlias: e.name || '',
|
fileAlias: e.name || e.fileName || '',
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
addTableLine(rowIndex);
|
addTableLine(rowIndex);
|
||||||
|
@ -1030,7 +1030,7 @@
|
||||||
record.file = {
|
record.file = {
|
||||||
...files[0],
|
...files[0],
|
||||||
fileId: files[0].uid || files[0].fileId || '',
|
fileId: files[0].uid || files[0].fileId || '',
|
||||||
fileName: files[0].originalName || '',
|
fileName: files[0].originalName || files[0].fileName || '',
|
||||||
fileAlias: files[0].name || '',
|
fileAlias: files[0].name || '',
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue