lilei il y a 8 mois
Parent
commit
71f04c159d
1 fichiers modifiés avec 12 ajouts et 13 suppressions
  1. 12 13
      src/views/easyPassManagement/homepageCarouselImg/edit.vue

+ 12 - 13
src/views/easyPassManagement/homepageCarouselImg/edit.vue

@@ -287,21 +287,20 @@ export default {
           if (res.data.bizType && res.data.bizType === 'SHOP_PROMO') {
             _this.isDisabled = true
           }
-
-          if (res.data.contentType == 'IMAGE_CONTENT') {
-            _this.$refs.editor.setHtml(res.data.content)
-          } else if (res.data.contentType == 'VIDEO') {
-            _this.$refs.videoSet.setFileList(res.data.content)
-          } else if (res.data.contentType == 'LINK') {
-            res.data.contentLink = res.data.content
-          }
-          if (res.data.allDealerFlag == '0') {
-            this.chooseDealerList = res.data.dealerList
-          }
-          _this.$refs.imageSet.setFileList(res.data.imageUrl)
           _this.form = { ..._this.form, ...res.data }
-          _this.form.contentEditor = res.data.content
           _this.$nextTick(() => {
+            if (res.data.contentType == 'IMAGE_CONTENT') {
+              _this.$refs.editor.setHtml(res.data.content)
+            } else if (res.data.contentType == 'VIDEO') {
+              _this.$refs.videoSet.setFileList(res.data.content)
+            } else if (res.data.contentType == 'LINK') {
+              res.data.contentLink = res.data.content
+            }
+            if (res.data.allDealerFlag == '0') {
+              this.chooseDealerList = res.data.dealerList
+            }
+            _this.$refs.imageSet.setFileList(res.data.imageUrl)
+            _this.form.contentEditor = res.data.content
             _this.form.time = [res.data.bannerStartDate, res.data.bannerEndDate]
           })
           console.log('22222222222222:', _this.form)