diff --git a/src/views/modules/workSys/promotionTab/AddpromotionTab.vue b/src/views/modules/workSys/promotionTab/AddpromotionTab.vue index 9ec56bdba..f0c838b96 100644 --- a/src/views/modules/workSys/promotionTab/AddpromotionTab.vue +++ b/src/views/modules/workSys/promotionTab/AddpromotionTab.vue @@ -50,7 +50,7 @@ tagName: '', marde:'', id:'', - status:null, + status:'', online:false @@ -64,14 +64,15 @@ methods: { handleOnlineRegistration(value) { - // console.log(value) + console.log(value) if (value) { this.online = true; - this.status = 0; + this.status = 1; } else { this.online = false; - this.status = 1; + this.status = 0; } + console.log( this.status); }, async initForm(activityId){ console.log('activityIddetailShow',activityId) @@ -80,9 +81,11 @@ this.id = activityId.id this.tagName = activityId.tagName if(activityId.status === 0){ - this.online = true - }else { this.online = false + this.status = activityId.status + }else { + this.online = true + this.status = activityId.status } @@ -101,11 +104,15 @@ }, async addActivity () { + if (this.marde === 'edi') { + console.log(this.marde) let url = '/actual/base/advertisingTag/update' + console.log(this.status) let parmer = { tagName:this.tagName, status: this.status, + id: this.id } const { data, code, msg, internalMsg } = await requestPost(url, parmer) diff --git a/src/views/modules/workSys/promotionTab/index.vue b/src/views/modules/workSys/promotionTab/index.vue index c3a557a0f..5f9e38e9b 100644 --- a/src/views/modules/workSys/promotionTab/index.vue +++ b/src/views/modules/workSys/promotionTab/index.vue @@ -42,7 +42,7 @@ @@ -111,8 +111,8 @@ tagName:'', status:null, statuslist: [ - { value: 0, label: '显示' }, - { value: 1, label: '不显示' } + { value: 0, label: '关闭' }, + { value: 1, label: '显示' } ], } }, diff --git a/src/views/modules/workSys/promotionTab/viewPromotionalTags.vue b/src/views/modules/workSys/promotionTab/viewPromotionalTags.vue index 5506f40b9..88e2fe4d1 100644 --- a/src/views/modules/workSys/promotionTab/viewPromotionalTags.vue +++ b/src/views/modules/workSys/promotionTab/viewPromotionalTags.vue @@ -71,9 +71,9 @@ this.tagName = activityId.tagName console.log("asdasd ",activityId) if(activityId.status === 0){ - this.online = true - }else{ this.online = false + }else{ + this.online = true } }, handleComfirm() {