Update PreviewTable.vue

This commit is contained in:
xhacker-zzz 2021-12-23 09:49:52 +08:00 committed by GitHub
parent 28b44fea07
commit 1355bdf9bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<el-table :data="tableData" style="width: 100%">
<el-table-column label="封面">
<template slot-scope="scope">
<el-upload :auto-upload="false" :show-file-list="true" :on-change="(res)=>{ changeCover(res,scope.row) }" action="" drag>
<el-upload :auto-upload="false" :show-file-list="false" :on-change="(res)=>{ changeCover(res,scope.row) }" action="" drag>
<img :src="scope.row.picture" style="width: 100px; height: 100px">
<div slot="error" class="image-slot el-image__error">暂无封面</div>
</img>
@ -97,12 +97,12 @@ export default {
URL.revokeObjectURL(row.file);
await regenerate(row);
},
async changeArtist(file, row) {
async changeArtist(value, row) {
row.artist = value
URL.revokeObjectURL(row.file);
await regenerate(row);
},
async changeAlbum(file, row) {
async changeAlbum(value, row) {
row.album = value
URL.revokeObjectURL(row.file);
await regenerate(row);