Browse Source

管理标签

V4.3.3
是小王呀\24601 2 years ago
parent
commit
d3f68c0b47
  1. 19
      src/views/modules/workSys/promotionTab/AddpromotionTab.vue
  2. 6
      src/views/modules/workSys/promotionTab/index.vue
  3. 4
      src/views/modules/workSys/promotionTab/viewPromotionalTags.vue

19
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)

6
src/views/modules/workSys/promotionTab/index.vue

@ -42,7 +42,7 @@
</el-table-column>
<el-table-column prop="enabled" header-align="center" align="center" label="首页显示" width="380">
<template slot-scope="scope">
<span>{{ scope.row.status === 1 ? '关闭' : '显示' }}</span>
<span>{{ scope.row.status === 1 ? '显示' : '关闭' }}</span>
</template>
</el-table-column>
@ -111,8 +111,8 @@
tagName:'',
status:null,
statuslist: [
{ value: 0, label: '显示' },
{ value: 1, label: '显示' }
{ value: 0, label: '关闭' },
{ value: 1, label: '显示' }
],
}
},

4
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() {

Loading…
Cancel
Save