Преглед изворни кода

Merge branch 'develop/3.1.4' into test

DESKTOP-SVI9JE1\muzen пре 1 година
родитељ
комит
cffec1ad91
1 измењених фајлова са 5 додато и 2 уклоњено
  1. 5 2
      src/views/content/article/detail.vue

+ 5 - 2
src/views/content/article/detail.vue

@@ -333,7 +333,9 @@ export default {
 
     // 添加
     getAdd() {
-      this.form.contentShareLayoutList.push({})
+      this.form.contentShareLayoutList.push({
+        layoutType: 0
+      })
     },
 
     // 上传图片
@@ -409,6 +411,7 @@ export default {
         this.$set(e, 'contentPic', row.audioPic)
         this.$set(e, 'contentType', row.audioType)
         this.$set(e, 'platformId', row.platformId)
+        this.$set(e, 'status', row.status)
       } else {
         let e = this.index == -1 ? 'leftButton' : 'rightButton'
         this.$set(this.form, `${e}ContentId`, row.audioId)
@@ -460,7 +463,7 @@ export default {
     },
 
     statusFormatter(row) {
-      return this.selectDictLabel(this.disabledOptions, row.status)
+      return row.layoutType !== 0 ? this.selectDictLabel(this.disabledOptions, row.status) : ''
     }
   }
 }