质量管理/安全知识库
This commit is contained in:
@ -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({
|
||||
|
@ -30,7 +30,7 @@ const props = defineProps({
|
||||
page: propTypes.number.def(1),
|
||||
limit: propTypes.number.def(20),
|
||||
pageSizes: {
|
||||
type: Array,
|
||||
type: Array<number>,
|
||||
default: () => [10, 20, 30, 50]
|
||||
},
|
||||
// 移动端页码按钮的数量端默认值5
|
||||
|
Reference in New Issue
Block a user