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: '', tagName: '',
marde:'', marde:'',
id:'', id:'',
status:null, status:'',
online:false online:false
@ -64,14 +64,15 @@
methods: { methods: {
handleOnlineRegistration(value) { handleOnlineRegistration(value) {
// console.log(value) console.log(value)
if (value) { if (value) {
this.online = true; this.online = true;
this.status = 0; this.status = 1;
} else { } else {
this.online = false; this.online = false;
this.status = 1; this.status = 0;
} }
console.log( this.status);
}, },
async initForm(activityId){ async initForm(activityId){
console.log('activityIddetailShow',activityId) console.log('activityIddetailShow',activityId)
@ -80,9 +81,11 @@
this.id = activityId.id this.id = activityId.id
this.tagName = activityId.tagName this.tagName = activityId.tagName
if(activityId.status === 0){ if(activityId.status === 0){
this.online = true
}else {
this.online = false this.online = false
this.status = activityId.status
}else {
this.online = true
this.status = activityId.status
} }
@ -101,11 +104,15 @@
}, },
async addActivity () { async addActivity () {
if (this.marde === 'edi') { if (this.marde === 'edi') {
console.log(this.marde)
let url = '/actual/base/advertisingTag/update' let url = '/actual/base/advertisingTag/update'
console.log(this.status)
let parmer = { let parmer = {
tagName:this.tagName, tagName:this.tagName,
status: this.status, status: this.status,
id: this.id
} }
const { data, code, msg, internalMsg } = await requestPost(url, parmer) 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>
<el-table-column prop="enabled" header-align="center" align="center" label="首页显示" width="380"> <el-table-column prop="enabled" header-align="center" align="center" label="首页显示" width="380">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.status === 1 ? '关闭' : '显示' }}</span> <span>{{ scope.row.status === 1 ? '显示' : '关闭' }}</span>
</template> </template>
</el-table-column> </el-table-column>
@ -111,8 +111,8 @@
tagName:'', tagName:'',
status:null, status:null,
statuslist: [ statuslist: [
{ value: 0, label: '显示' }, { value: 0, label: '关闭' },
{ value: 1, label: '显示' } { value: 1, label: '显示' }
], ],
} }
}, },

4
src/views/modules/workSys/promotionTab/viewPromotionalTags.vue

@ -71,9 +71,9 @@
this.tagName = activityId.tagName this.tagName = activityId.tagName
console.log("asdasd ",activityId) console.log("asdasd ",activityId)
if(activityId.status === 0){ if(activityId.status === 0){
this.online = true
}else{
this.online = false this.online = false
}else{
this.online = true
} }
}, },
handleComfirm() { handleComfirm() {

Loading…
Cancel
Save