Update PreviewTable.vue
This commit is contained in:
parent
bf61bb76e4
commit
8518c27069
|
@ -11,17 +11,17 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="歌曲">
|
||||
<template #default="scope">
|
||||
<el-input placeholder="请输入歌曲标题" v-model="iTitle ? iTitle : iTitle = scope.row.title, iTitle" clearable></el-input>
|
||||
<el-input placeholder="请输入歌曲标题" v-model="iTitle ? iTitle : iTitle = scope.row.title, iTitle" @change="changeTitle" clearable></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="歌手">
|
||||
<template #default="scope">
|
||||
<el-input placeholder="请输入歌手" v-model="iArtist ? iArtist : iArtist = scope.row.artist, iArtist" clearable></el-input>
|
||||
<el-input placeholder="请输入歌手" v-model="iArtist ? iArtist : iArtist = scope.row.artist, iArtist" @change="changeArtist" clearable></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="专辑">
|
||||
<template #default="scope">
|
||||
<el-input placeholder="请输入专辑名称" v-model="iAlbum ? iAlbum : iAlbum = scope.row.album, iAlbum" clearable></el-input>
|
||||
<el-input placeholder="请输入专辑名称" v-model="iAlbum ? iAlbum : iAlbum = scope.row.album, iAlbum" @change="changeAlbum" clearable></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作">
|
||||
|
@ -63,6 +63,24 @@ export default {
|
|||
URL.revokeObjectURL(row.picture);
|
||||
}
|
||||
},
|
||||
changeCover(file, row) {
|
||||
row.picture = file.url;
|
||||
if (row.picture?.startsWith('blob:')) {
|
||||
URL.revokeObjectURL(row.picture);
|
||||
}
|
||||
},
|
||||
changeCover(file, row) {
|
||||
row.picture = file.url;
|
||||
if (row.picture?.startsWith('blob:')) {
|
||||
URL.revokeObjectURL(row.picture);
|
||||
}
|
||||
},
|
||||
changeCover(file, row) {
|
||||
row.picture = file.url;
|
||||
if (row.picture?.startsWith('blob:')) {
|
||||
URL.revokeObjectURL(row.picture);
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
Reference in New Issue