质量管理/安全知识库

This commit is contained in:
Teo
2025-06-27 18:35:48 +08:00
parent 5e5803b641
commit 036a41f726
16 changed files with 1619 additions and 680 deletions

View File

@ -67,7 +67,7 @@
<el-icon class="mr"><View /></el-icon>
</a>
<a href="#">
<el-icon @click="handleDelete(file.ossId, 'ossId')"><Delete /></el-icon>
<el-icon @click="handleDelete((file as any).ossId, 'ossId')"><Delete /></el-icon>
</a>
</div>
</div>
@ -147,7 +147,7 @@ watch(
if (Array.isArray(val)) {
list = val;
} else {
const res = await listByIds(val);
const res = await listByIds(val as any);
list = res.data.map((oss) => {
return {
name: oss.originalName,
@ -211,7 +211,11 @@ const handleUploadError = () => {
};
// 上传成功回调
const handleUploadSuccess = (res: any, file: UploadFile) => {
interface UploadFileWithOssId extends UploadFile {
ossId?: string;
}
const handleUploadSuccess = (res: any, file: UploadFileWithOssId) => {
if (res.code === 200) {
if (res.data) {
uploadList.value.push({