Update PreviewTable.vue

This commit is contained in:
xhacker-zzz 2021-12-22 15:11:15 +08:00 committed by GitHub
parent 8518c27069
commit 283eb74081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 21 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" @change="changeTitle" clearable></el-input>
<el-input placeholder="请输入歌曲标题" v-model="iTitle ? iTitle : iTitle = scope.row.title, iTitle" @change="(value)=>{ scope.row.title = value }" 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" @change="changeArtist" clearable></el-input>
<el-input placeholder="请输入歌手" v-model="iArtist ? iArtist : iArtist = scope.row.artist, iArtist" @change="(value)=>{ scope.row.artist = value }" 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" @change="changeAlbum" clearable></el-input>
<el-input placeholder="请输入专辑名称" v-model="iAlbum ? iAlbum : iAlbum = scope.row.album, iAlbum" @change="(value)=>{ scope.row.album = value }" clearable></el-input>
</template>
</el-table-column>
<el-table-column label="操作">
@ -63,24 +63,6 @@ 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>