|
@@ -523,7 +523,16 @@ export default {
|
|
|
|
|
|
// 内容列表提交
|
|
|
getSubmit(item) {
|
|
|
- if (this.tabIndex === 2 && this.active === 1) {
|
|
|
+ let rules = {
|
|
|
+ '1': this.active === 1,
|
|
|
+ '2': this.active === 1,
|
|
|
+ '3': this.active === 0,
|
|
|
+ '7': this.active !== 3
|
|
|
+ }
|
|
|
+ item.startTime = item.date[0]
|
|
|
+ item.endTime = item.date[1]
|
|
|
+ delete item.date
|
|
|
+ if (rules[this.tabIndex]) {
|
|
|
expandSave(item).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
this.$message.success('提交成功!')
|
|
@@ -531,9 +540,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- item.startTime = item.date[0]
|
|
|
- item.endTime = item.date[1]
|
|
|
- delete item.date
|
|
|
submit(item).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
this.$message.success('提交成功!')
|
|
@@ -558,7 +564,7 @@ export default {
|
|
|
this.form.audioType = this.audioOptions[0].value
|
|
|
} else {
|
|
|
this.form.audioType = this.list[index].forwardType ? this.typeOptions.find(i => i.value === this.list[index].forwardType).type : 2
|
|
|
- this.disabled = this.tabIndex == 2 && this.active === 1 || this.list[index].forwardType !== null ? true : false
|
|
|
+ this.disabled = this.tabIndex === 2 && this.active === 1 || this.list[index].forwardType !== null ? true : false
|
|
|
}
|
|
|
this.getContentList()
|
|
|
},
|
|
@@ -921,7 +927,6 @@ export default {
|
|
|
|
|
|
// 列表
|
|
|
isList() {
|
|
|
- console.log(this.tabIndex, this.active);
|
|
|
return this.tabIndex === 2 && this.active === 1
|
|
|
},
|
|
|
|