|
@@ -27,7 +27,7 @@
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<!-- 图片和附件 -->
|
|
<!-- 图片和附件 -->
|
|
|
- <el-form-item label="图片:">
|
|
|
|
|
|
|
+ <!-- <el-form-item label="图片:">
|
|
|
<i class="biaoshi biaoshi1"></i>
|
|
<i class="biaoshi biaoshi1"></i>
|
|
|
<el-upload
|
|
<el-upload
|
|
|
class="avatar-uploader"
|
|
class="avatar-uploader"
|
|
@@ -52,7 +52,8 @@
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
<p class="upHint">格式要求:支持png、jpg、gif和jpeg的图片格式;最大支持20M。</p>
|
|
<p class="upHint">格式要求:支持png、jpg、gif和jpeg的图片格式;最大支持20M。</p>
|
|
|
- </el-form-item> <!-- 上传附件 -->
|
|
|
|
|
|
|
+ </el-form-item> -->
|
|
|
|
|
+ <!-- 上传附件 -->
|
|
|
<el-form-item label="音频文件:">
|
|
<el-form-item label="音频文件:">
|
|
|
<i class="biaoshi"></i>
|
|
<i class="biaoshi"></i>
|
|
|
<el-upload
|
|
<el-upload
|
|
@@ -119,7 +120,7 @@ export default {
|
|
|
// 点击保存
|
|
// 点击保存
|
|
|
async saveGood () {
|
|
async saveGood () {
|
|
|
if (this.ruleForm.name.trim() === '') { return this.$message.warning('标题不能为空') }
|
|
if (this.ruleForm.name.trim() === '') { return this.$message.warning('标题不能为空') }
|
|
|
- if (this.ruleForm.thumb === '') { return this.$message.warning('图片不能为空') }
|
|
|
|
|
|
|
+ // if (this.ruleForm.thumb === '') { return this.$message.warning('图片不能为空') }
|
|
|
if (this.ruleForm.filePath === '') { return this.$message.warning('音频不能为空') }
|
|
if (this.ruleForm.filePath === '') { return this.$message.warning('音频不能为空') }
|
|
|
if (this.editor.txt.html() === '') { return this.$message.warning('歌词不能为空') }
|
|
if (this.editor.txt.html() === '') { return this.$message.warning('歌词不能为空') }
|
|
|
const obj = { ...this.ruleForm, description: this.editor.txt.html() }
|
|
const obj = { ...this.ruleForm, description: this.editor.txt.html() }
|