Commit 95f81d53 authored by youjie's avatar youjie

no message

parent f2477849
...@@ -252,6 +252,7 @@ ...@@ -252,6 +252,7 @@
} }
}, },
created(){ created(){
if(this.infoData) this.getInfo()
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.getCompanyMsg.RB_Group_Id = userInfo.RB_Group_id this.getCompanyMsg.RB_Group_Id = userInfo.RB_Group_id
this.getrigger() this.getrigger()
...@@ -265,7 +266,7 @@ ...@@ -265,7 +266,7 @@
},10) },10)
}, },
mounted(){ mounted(){
if(this.infoData) this.getInfo()
}, },
methods:{ methods:{
getInfo(){ getInfo(){
...@@ -277,7 +278,7 @@ ...@@ -277,7 +278,7 @@
this.msg = { this.msg = {
ID: data.ID, ID: data.ID,
TriggerType:data.TriggerType, TriggerType:data.TriggerType,
DiscountCouponId:data.DiscountCouponId, DiscountCouponId:Number(data.DiscountCouponId),
GrantNum:data.GrantNum, GrantNum:data.GrantNum,
IsAll:data.IsAll, IsAll:data.IsAll,
UserList:[], UserList:[],
...@@ -388,7 +389,7 @@ ...@@ -388,7 +389,7 @@
this.apipost("coupon_post_GetDropDowmList",{"CouponsName":"","BranchId":-1}, res => { this.apipost("coupon_post_GetDropDowmList",{"CouponsName":"","BranchId":-1}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.options2 = res.data.data; this.options2 = res.data.data;
this.msg.DiscountCouponId = res.data.data[0].id if(!this.msg.DiscountCouponId) this.msg.DiscountCouponId = res.data.data[0].id
} else { } else {
this.Info(res.data.message); this.Info(res.data.message);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment