Update PreviewTable.vue

This commit is contained in:
xhacker-zzz 2021-12-22 14:59:38 +08:00 committed by GitHub
parent bf61bb76e4
commit 8518c27069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 3 deletions

View File

@ -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>