|
@@ -45,8 +45,9 @@
|
|
|
</div>
|
|
|
<div class="classList" v-else>
|
|
|
<!-- isFix:0 不可以编辑删除 -->
|
|
|
- <el-button v-for="item in dialogForm.personalChannelList.filter(i => i.isFix === 0)"
|
|
|
- :key="item.channelTypeId" size="small" @click="getActive(item)">
|
|
|
+ <el-button :type="active === item.sort ? 'primary' : ''"
|
|
|
+ v-for="item in dialogForm.personalChannelList.filter(i => i.isFix === 0)" :key="item.channelTypeId"
|
|
|
+ size="small" @click="getActive(item)">
|
|
|
{{ item.channelTypeName }}
|
|
|
</el-button>
|
|
|
<!-- isFix:1 可以编辑删除 -->
|
|
@@ -263,10 +264,8 @@ export default {
|
|
|
},
|
|
|
// 提交分类表单
|
|
|
getInputSubmit() {
|
|
|
- if (this.classForm.name === "") {
|
|
|
- this.$message.error('请输入频道分类名称')
|
|
|
- } else {
|
|
|
- if (this.type === null) {
|
|
|
+ if (this.classForm.channelTypeName) {
|
|
|
+ if (this.type === 1) {
|
|
|
classEdit(this.classForm.channelTypeName, this.classForm.channelTypeId).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
this.inputVisible = false
|
|
@@ -283,6 +282,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ } else {
|
|
|
+ this.$message.error('请输入频道分类名称')
|
|
|
}
|
|
|
},
|
|
|
|