|
|
@ -1,24 +1,4 @@
|
|
|
|
<style scoped>
|
|
|
|
<style scoped>
|
|
|
|
label {
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
line-height: 1.2;
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.item-desc {
|
|
|
|
|
|
|
|
color: #aaa;
|
|
|
|
|
|
|
|
font-size: small;
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
line-height: 1.2;
|
|
|
|
|
|
|
|
margin-top: 0.2em;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.item-desc a {
|
|
|
|
|
|
|
|
color: #aaa;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
form >>> input {
|
|
|
|
|
|
|
|
font-family: 'Courier New', Courier, monospace;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* >>> .um-edit-dialog {
|
|
|
|
* >>> .um-edit-dialog {
|
|
|
|
max-width: 90%;
|
|
|
|
max-width: 90%;
|
|
|
|
width: 30em;
|
|
|
|
width: 30em;
|
|
|
@ -29,57 +9,62 @@ form >>> input {
|
|
|
|
<el-dialog @close="cancel()" title="音乐标签编辑" :visible="show" custom-class="um-edit-dialog" center>
|
|
|
|
<el-dialog @close="cancel()" title="音乐标签编辑" :visible="show" custom-class="um-edit-dialog" center>
|
|
|
|
<el-form ref="form" status-icon :model="form" label-width="0">
|
|
|
|
<el-form ref="form" status-icon :model="form" label-width="0">
|
|
|
|
<section>
|
|
|
|
<section>
|
|
|
|
<el-image v-show="!editPicture" :src="imgFile.url || picture" style="width: 100px; height: 100px">
|
|
|
|
<div class="music-cover">
|
|
|
|
<div slot="error" class="image-slot el-image__error">暂无封面</div>
|
|
|
|
<el-image v-show="!editPicture" :src="imgFile.url || picture">
|
|
|
|
</el-image>
|
|
|
|
<div slot="error" class="image-slot el-image__error">暂无封面</div>
|
|
|
|
<el-upload v-show="editPicture" :auto-upload="false" :on-change="addFile" :on-remove="rmvFile" :show-file-list="true" :limit="1" list-type="picture" action="" drag>
|
|
|
|
</el-image>
|
|
|
|
<i class="el-icon-upload" />
|
|
|
|
<el-upload v-show="editPicture" :auto-upload="false" :on-change="addFile" :on-remove="rmvFile" :show-file-list="true" :limit="1" list-type="picture" action="" drag>
|
|
|
|
<div class="el-upload__text">将新图片拖到此处,或<em>点击选择</em><br />以替换自动匹配的图片</div>
|
|
|
|
<i class="el-icon-upload" />
|
|
|
|
<div slot="tip" class="el-upload__tip">
|
|
|
|
<div class="el-upload__text">将新图片拖到此处,或<em>点击选择</em><br />以替换自动匹配的图片</div>
|
|
|
|
新拖到此处的图片将覆盖原始图片
|
|
|
|
<div slot="tip" class="el-upload__tip">
|
|
|
|
</div>
|
|
|
|
新拖到此处的图片将覆盖原始图片
|
|
|
|
</el-upload>
|
|
|
|
</div>
|
|
|
|
<i
|
|
|
|
</el-upload>
|
|
|
|
:class="{'el-icon-edit': !editPicture, 'el-icon-check': editPicture}"
|
|
|
|
<i :class="{'el-icon-edit': !editPicture, 'el-icon-check': editPicture}"
|
|
|
|
@click="changeCover"
|
|
|
|
@click="changeCover"></i>
|
|
|
|
></i><br />
|
|
|
|
</div>
|
|
|
|
标题:
|
|
|
|
|
|
|
|
<span v-show="!editTitle">{{title}}</span>
|
|
|
|
<div class="edit-item">
|
|
|
|
<el-input v-show="editTitle" v-model="title"></el-input>
|
|
|
|
<div class="label">标题</div>
|
|
|
|
<i
|
|
|
|
<div class="value" v-show="!editTitle">{{title}}</div>
|
|
|
|
:class="{'el-icon-edit': !editTitle, 'el-icon-check': editTitle}"
|
|
|
|
<el-input class="input" size="small" v-show="editTitle" v-model="title"/>
|
|
|
|
@click="editTitle = !editTitle"
|
|
|
|
<i :class="{'el-icon-edit': !editTitle, 'el-icon-check': editTitle}"
|
|
|
|
></i><br />
|
|
|
|
@click="editTitle = !editTitle"/>
|
|
|
|
艺术家:
|
|
|
|
</div>
|
|
|
|
<span v-show="!editArtist">{{artist}}</span>
|
|
|
|
<div class="edit-item">
|
|
|
|
<el-input v-show="editArtist" v-model="artist"></el-input>
|
|
|
|
<div class="label">艺术家</div>
|
|
|
|
<i
|
|
|
|
<div class="value" v-show="!editArtist">{{artist}}</div>
|
|
|
|
:class="{'el-icon-edit': !editArtist, 'el-icon-check': editArtist}"
|
|
|
|
<el-input class="input" size="small" v-show="editArtist" v-model="artist"/>
|
|
|
|
@click="editArtist = !editArtist"
|
|
|
|
<i :class="{'el-icon-edit': !editArtist, 'el-icon-check': editArtist}"
|
|
|
|
></i><br />
|
|
|
|
@click="editArtist = !editArtist"
|
|
|
|
专辑:
|
|
|
|
/>
|
|
|
|
<span v-show="!editAlbum">{{album}}</span>
|
|
|
|
</div>
|
|
|
|
<el-input v-show="editAlbum" v-model="album"></el-input>
|
|
|
|
<div class="edit-item">
|
|
|
|
<i
|
|
|
|
<div class="label">专辑</div>
|
|
|
|
:class="{'el-icon-edit': !editAlbum, 'el-icon-check': editAlbum}"
|
|
|
|
<div class="value" v-show="!editAlbum">{{album}}</div>
|
|
|
|
@click="editAlbum = !editAlbum"
|
|
|
|
<el-input class="input" size="small" v-show="editAlbum" v-model="album"/>
|
|
|
|
></i><br />
|
|
|
|
<i :class="{'el-icon-edit': !editAlbum, 'el-icon-check': editAlbum}"
|
|
|
|
专辑艺术家:
|
|
|
|
@click="editAlbum = !editAlbum"
|
|
|
|
<span v-show="!editAlbumartist">{{albumartist}}</span>
|
|
|
|
/>
|
|
|
|
<el-input v-show="editAlbumartist" v-model="albumartist"></el-input>
|
|
|
|
</div>
|
|
|
|
<i
|
|
|
|
<div class="edit-item">
|
|
|
|
:class="{'el-icon-edit': !editAlbumartist, 'el-icon-check': editAlbumartist}"
|
|
|
|
<div class="label">专辑艺术家</div>
|
|
|
|
@click="editAlbumartist = !editAlbumartist"
|
|
|
|
<div class="value" v-show="!editAlbumartist">{{albumartist}}</div>
|
|
|
|
></i><br />
|
|
|
|
<el-input class="input" size="small" v-show="editAlbumartist" v-model="albumartist"/>
|
|
|
|
风格:
|
|
|
|
<i :class="{'el-icon-edit': !editAlbumartist, 'el-icon-check': editAlbumartist}"
|
|
|
|
<span v-show="!editGenre">{{genre}}</span>
|
|
|
|
@click="editAlbumartist = !editAlbumartist"
|
|
|
|
<el-input v-show="editGenre" v-model="genre"></el-input>
|
|
|
|
/>
|
|
|
|
<i
|
|
|
|
</div>
|
|
|
|
:class="{'el-icon-edit': !editGenre, 'el-icon-check': editGenre}"
|
|
|
|
<div class="edit-item">
|
|
|
|
@click="editGenre = !editGenre"
|
|
|
|
<div class="label">风格</div>
|
|
|
|
></i><br />
|
|
|
|
<div class="value" v-show="!editGenre">{{genre}}</div>
|
|
|
|
|
|
|
|
<el-input class="input" size="small" v-show="editGenre" v-model="genre"/>
|
|
|
|
|
|
|
|
<i :class="{'el-icon-edit': !editGenre, 'el-icon-check': editGenre}"
|
|
|
|
|
|
|
|
@click="editGenre = !editGenre"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<p class="item-desc">
|
|
|
|
<p class="tip">
|
|
|
|
为了节省您设备的资源,请在确定前充分检查,避免反复修改。<br />
|
|
|
|
为了节省您设备的资源,请在确定前充分检查,避免反复修改。<br />
|
|
|
|
直接关闭此对话框不会保留所作的更改。
|
|
|
|
直接关闭此对话框不会保留所作的更改。
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|