Update PreviewTable.vue
This commit is contained in:
parent
28b44fea07
commit
1355bdf9bf
|
@ -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);
|
||||
|
|
Reference in New Issue