소스 검색

1. 修复不显示问题

MONSTER-ygh 4 달 전
부모
커밋
ae393f788e
2개의 변경된 파일11개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 2
      src/myComponents/selecteNew.vue
  2. 5 4
      src/views/tourism/membershipManagement/electronicMembership/formBox/membershipLevelForm.vue

+ 6 - 2
src/myComponents/selecteNew.vue

@@ -62,7 +62,10 @@ export default {
         value: {
             type: [Object],
             default: ()=>{
-                return {}
+                return {
+                    classifyId: null,
+                    classifyName: null
+                }
             }
         },
         // list: {
@@ -179,7 +182,8 @@ export default {
                     this.$set(this,'valuesCopy',JSON.parse(JSON.stringify(this.value))) 
                 }
             },
-            deep: true
+            deep: true,
+            immediate: true, // 正确设置 
         }
     },
     destroyed() {

+ 5 - 4
src/views/tourism/membershipManagement/electronicMembership/formBox/membershipLevelForm.vue

@@ -381,10 +381,10 @@ export default {
             ...res.data,
             logo: res.data.logo?res.data.logo.split(','):[],
           }
-          this.setDiscountParams(obj,'classifyList')
-          this.setDiscountParams(obj,'hotelList')
-          this.setDiscountParams(obj,'foodList')
-          this.setDiscountParams(obj,'productList')
+          obj = this.setDiscountParams(obj,'classifyList')
+          obj = this.setDiscountParams(obj,'hotelList')
+          obj = this.setDiscountParams(obj,'foodList')
+          obj = this.setDiscountParams(obj,'productList')
           if(obj.couponList && obj.couponList.length>0) {
             let list = []
             obj.couponList.forEach((item,index)=>{
@@ -436,6 +436,7 @@ export default {
           }
         })
       }
+      return obj
     },
     /** 查询用户列表 */
     async getList() {