|
|
@ -12,16 +12,28 @@
|
|
|
|
label-width="100px"
|
|
|
|
label-width="100px"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-form-item prop="volid" label="期刊编号">
|
|
|
|
<el-form-item prop="volid" label="期刊编号">
|
|
|
|
<el-input size="small" placeholder="期刊编号"></el-input>
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="data.number"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
placeholder="期刊编号"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item prop="title" label="期刊标题">
|
|
|
|
<el-form-item prop="title" label="期刊标题">
|
|
|
|
<el-input size="small" placeholder="请输入期刊标题"></el-input>
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="data.name"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
placeholder="请输入期刊标题"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item prop="tag" label="期刊标签">
|
|
|
|
<el-form-item prop="tag" label="期刊标签">
|
|
|
|
<el-input size="small" placeholder="请选择"></el-input>
|
|
|
|
<el-input size="small" placeholder="请选择"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item prop="author" label="期刊作者">
|
|
|
|
<el-form-item prop="author" label="期刊作者">
|
|
|
|
<el-input size="small" placeholder="不填写则默认为发布者"></el-input>
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="data.userId"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
placeholder="不填写则默认为发布者"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item prop="image" label="上传封面">
|
|
|
|
<el-form-item prop="image" label="上传封面">
|
|
|
|
<el-upload
|
|
|
|
<el-upload
|
|
|
@ -32,7 +44,7 @@
|
|
|
|
multiple
|
|
|
|
multiple
|
|
|
|
:limit="1"
|
|
|
|
:limit="1"
|
|
|
|
:on-exceed="handleExceed"
|
|
|
|
:on-exceed="handleExceed"
|
|
|
|
:file-list="fileList"
|
|
|
|
:file-list="coverUploadFileList"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button size="small" type="primary" icon="el-icon-receiving"
|
|
|
|
<el-button size="small" type="primary" icon="el-icon-receiving"
|
|
|
|
>上传图片</el-button
|
|
|
|
>上传图片</el-button
|
|
|
@ -66,7 +78,7 @@
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<el-table
|
|
|
|
<el-table
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
:data="data.songTableData"
|
|
|
|
:data="data.songs"
|
|
|
|
style="width: calc(50% + 400px); margin: 0 0 auto auto;"
|
|
|
|
style="width: calc(50% + 400px); margin: 0 0 auto auto;"
|
|
|
|
stripe
|
|
|
|
stripe
|
|
|
|
class="draggable-table"
|
|
|
|
class="draggable-table"
|
|
|
@ -81,17 +93,22 @@
|
|
|
|
<i class="el-icon-rank"></i>
|
|
|
|
<i class="el-icon-rank"></i>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="专辑封面"></el-table-column>
|
|
|
|
<el-table-column prop="picture" label="专辑封面"></el-table-column>
|
|
|
|
<el-table-column prop="name" label="歌曲名称"></el-table-column>
|
|
|
|
<el-table-column prop="name" label="歌曲名称"></el-table-column>
|
|
|
|
<el-table-column label="歌手/乐队"></el-table-column>
|
|
|
|
<el-table-column prop="artist" label="歌手/乐队"></el-table-column>
|
|
|
|
<el-table-column label="所属专辑"></el-table-column>
|
|
|
|
<el-table-column prop="album" label="所属专辑"></el-table-column>
|
|
|
|
<el-table-column label="时长"></el-table-column>
|
|
|
|
<el-table-column prop="duration" label="时长"></el-table-column>
|
|
|
|
<el-table-column label="操作" fixed="right" width="300">
|
|
|
|
<el-table-column label="操作" fixed="right" width="300">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button plain icon="el-icon-edit" type="primary" size="mini"
|
|
|
|
<el-button plain icon="el-icon-edit" type="primary" size="mini"
|
|
|
|
>编辑</el-button
|
|
|
|
>编辑</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button plain icon="el-icon-success" type="success" size="mini"
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-success"
|
|
|
|
|
|
|
|
type="success"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
@click="handleLyricClick(scope.row)"
|
|
|
|
>歌词</el-button
|
|
|
|
>歌词</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-popconfirm
|
|
|
|
<el-popconfirm
|
|
|
@ -123,13 +140,32 @@
|
|
|
|
<el-form-item prop="volid" label="期刊文案">
|
|
|
|
<el-form-item prop="volid" label="期刊文案">
|
|
|
|
<quill-editor
|
|
|
|
<quill-editor
|
|
|
|
ref="text"
|
|
|
|
ref="text"
|
|
|
|
v-model="data.content"
|
|
|
|
v-model="data.summary"
|
|
|
|
style="height: 500px;"
|
|
|
|
style="height: 500px;"
|
|
|
|
class="myQuillEditor"
|
|
|
|
class="myQuillEditor"
|
|
|
|
:options="editorOption"
|
|
|
|
:options="editorOption"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
|
|
|
title="歌词"
|
|
|
|
|
|
|
|
:visible="true"
|
|
|
|
|
|
|
|
v-if="lyricDialog.visible"
|
|
|
|
|
|
|
|
width="40%"
|
|
|
|
|
|
|
|
top="60px"
|
|
|
|
|
|
|
|
append-to-body
|
|
|
|
|
|
|
|
:before-close="handleLyricDialogBeforeClose"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-input type="textarea" v-model="lyricDialog.data"></el-input>
|
|
|
|
|
|
|
|
<span slot="footer">
|
|
|
|
|
|
|
|
<el-button size="small" type="primary" @click="handleLyricDialogSubmit"
|
|
|
|
|
|
|
|
>保存</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button size="small" @click="handleLyricDialogCancel"
|
|
|
|
|
|
|
|
>取消</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -144,11 +180,25 @@ export default {
|
|
|
|
props: {
|
|
|
|
props: {
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
|
type: Object,
|
|
|
|
type: Object,
|
|
|
|
default: {}
|
|
|
|
default: {
|
|
|
|
|
|
|
|
id: null,
|
|
|
|
|
|
|
|
name: null,
|
|
|
|
|
|
|
|
tag: [],
|
|
|
|
|
|
|
|
number: null,
|
|
|
|
|
|
|
|
userId: null,
|
|
|
|
|
|
|
|
coverPhoto: null,
|
|
|
|
|
|
|
|
songs: []
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
lyricDialog: {
|
|
|
|
|
|
|
|
visible: false,
|
|
|
|
|
|
|
|
songId: null,
|
|
|
|
|
|
|
|
data: ""
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
coverUploadFileList: [],
|
|
|
|
// editorOption里是放图片上传配置参数用的,例如:
|
|
|
|
// editorOption里是放图片上传配置参数用的,例如:
|
|
|
|
// action: '/api/product/richtext_img_upload.do', // 必填参数 图片上传地址
|
|
|
|
// action: '/api/product/richtext_img_upload.do', // 必填参数 图片上传地址
|
|
|
|
// methods: 'post', // 必填参数 图片上传方式
|
|
|
|
// methods: 'post', // 必填参数 图片上传方式
|
|
|
@ -157,10 +207,6 @@ export default {
|
|
|
|
// size: 500, // 可选参数 图片大小,单位为Kb, 1M = 1024Kb
|
|
|
|
// size: 500, // 可选参数 图片大小,单位为Kb, 1M = 1024Kb
|
|
|
|
// accept: 'multipart/form-data, image/png, image/gif, image/jpeg, image/bmp, image/x-icon,image/jpg' // 可选 可上传的图片格式
|
|
|
|
// accept: 'multipart/form-data, image/png, image/gif, image/jpeg, image/bmp, image/x-icon,image/jpg' // 可选 可上传的图片格式
|
|
|
|
editorOption: {},
|
|
|
|
editorOption: {},
|
|
|
|
data: {
|
|
|
|
|
|
|
|
songTableData: [{ name: 1 }, { name: 2 }],
|
|
|
|
|
|
|
|
content: null
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
rules: {}
|
|
|
|
rules: {}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -203,6 +249,51 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
beforeRemove(file, fileList) {
|
|
|
|
beforeRemove(file, fileList) {
|
|
|
|
return this.$confirm(`确定移除 ${file.name}?`);
|
|
|
|
return this.$confirm(`确定移除 ${file.name}?`);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 弹窗关闭按扭点击事件
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
handleLyricDialogBeforeClose(done) {
|
|
|
|
|
|
|
|
for (let sIndex in this.data.songs) {
|
|
|
|
|
|
|
|
if (this.data.songs[sIndex].id === this.lyricDialog.songId) {
|
|
|
|
|
|
|
|
this.data.songs[sIndex].lyric = this.lyricDialog.data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.lyricDialog.data = "";
|
|
|
|
|
|
|
|
this.lyricDialog.songId = null;
|
|
|
|
|
|
|
|
this.lyricDialog.visible = false;
|
|
|
|
|
|
|
|
done();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 弹窗提交按扭点击事件
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
handleLyricDialogSubmit() {
|
|
|
|
|
|
|
|
for (let sIndex in this.data.songs) {
|
|
|
|
|
|
|
|
if (this.data.songs[sIndex].id === this.lyricDialog.songId) {
|
|
|
|
|
|
|
|
this.data.songs[sIndex].lyric = this.lyricDialog.data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.lyricDialog.data = "";
|
|
|
|
|
|
|
|
this.lyricDialog.songId = null;
|
|
|
|
|
|
|
|
this.lyricDialog.visible = false;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 弹窗取消按扭点击事件
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
handleLyricDialogCancel() {
|
|
|
|
|
|
|
|
this.lyricDialog.data = "";
|
|
|
|
|
|
|
|
this.lyricDialog.songId = null;
|
|
|
|
|
|
|
|
this.lyricDialog.visible = false;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 打开弹窗按扭点击事件
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
handleLyricClick(row) {
|
|
|
|
|
|
|
|
this.lyricDialog.songId = row.id;
|
|
|
|
|
|
|
|
this.lyricDialog.data = row.lyric;
|
|
|
|
|
|
|
|
this.lyricDialog.visible = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|