Commit a06bc031 authored by 黄奎's avatar 黄奎

推送消息调整

parent bd39a1bd
...@@ -1052,13 +1052,16 @@ ...@@ -1052,13 +1052,16 @@
style="background:#67c23a; border-color:#67c23a"> style="background:#67c23a; border-color:#67c23a">
{{$t('Operation.Op_advertising')}} {{item.AdvertCount}} {{$t('Operation.Op_advertising')}} {{item.AdvertCount}}
</el-button> </el-button>
<template v-if="item.LineID==14||item.LineID==118"> <template v-if="item.LineID==14||item.LineID==118">
<el-button v-if="item.IsPush==0" @click.native='PushMessage(item)' type="primary" <el-button v-if="item.IsPush==0" @click.native='PushMessage(item)' type="primary"
style="background:#00C6FF; border-color:#00C6FF;">推送消息 style="background:#00C6FF; border-color:#00C6FF;">推送消息
</el-button> </el-button>
<el-button v-else @click.native='PushMessage(item)' type="primary" <el-tooltip v-else-if="item.IsPush==1" class="item" effect="dark" content="点击取消推送" placement="top">
style="background:red !important; ">已推送 <el-button @click.native='PushMessage(item)' type="primary" style="background:red !important;">已推送
</el-button>
</el-tooltip>
<el-button v-if="item.IsPush==2" @click.native='PushMessage(item)' type="primary"
style="background:#00C6FF; border-color:#00C6FF;">重新推送
</el-button> </el-button>
</template> </template>
<el-button @click="ckOPremark(item)" type="primary" style="background:#F16C3C; border-color:#F16C3C"> <el-button @click="ckOPremark(item)" type="primary" style="background:#F16C3C; border-color:#F16C3C">
...@@ -1660,10 +1663,15 @@ ...@@ -1660,10 +1663,15 @@
}, },
//推送消息 //推送消息
PushMessage(item) { PushMessage(item) {
console.log("item.IsPush", item.IsPush);
var pMsg = { var pMsg = {
TCID: item.TCID TCID: item.TCID
}; };
this.apipost("travel_post_PushTravelPriceToQYWork", pMsg, res => { var cmdStr = "travel_post_PushTravelPriceToQYWork"; //推送消息
if (item.IsPush == 1) {
cmdStr = "travel_post_CancelPushTravelPriceToQYWork"; //取消推送
}
this.apipost(cmdStr, pMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.getControlList(); this.getControlList();
......
...@@ -800,9 +800,19 @@ ...@@ -800,9 +800,19 @@
</el-dropdown> </el-dropdown>
<el-button @click='goUrlMake("GroupAdvertising",item.LineID,item.TCID,"团期广告")' type="primary" <el-button @click='goUrlMake("GroupAdvertising",item.LineID,item.TCID,"团期广告")' type="primary"
style="background:#67c23a; border-color:#67c23a">广告&nbsp;{{item.AdvertCount}}</el-button> style="background:#67c23a; border-color:#67c23a">广告&nbsp;{{item.AdvertCount}}</el-button>
<el-button v-if="item.LineID==14||item.LineID==118" @click.native='PushMessage(item)' type="primary"
style="background:#00C6FF; border-color:#00C6FF;">推送消息 <template v-if="item.LineID==14||item.LineID==118">
</el-button> <el-button v-if="item.IsPush==0" @click.native='PushMessage(item)' type="primary"
style="background:#00C6FF; border-color:#00C6FF;">推送消息
</el-button>
<el-tooltip v-else-if="item.IsPush==1" class="item" effect="dark" content="点击取消推送" placement="top">
<el-button @click.native='PushMessage(item)' type="primary" style="background:red !important;">已推送
</el-button>
</el-tooltip>
<el-button v-if="item.IsPush==2" @click.native='PushMessage(item)' type="primary"
style="background:#00C6FF; border-color:#00C6FF;">重新推送
</el-button>
</template>
<el-button @click="ckOPremark(item)" type="primary" style="background:#F16C3C; border-color:#F16C3C"> <el-button @click="ckOPremark(item)" type="primary" style="background:#F16C3C; border-color:#F16C3C">
{{$t('Operation.Op_remark')}}</el-button> {{$t('Operation.Op_remark')}}</el-button>
<el-dropdown trigger="click"> <el-dropdown trigger="click">
...@@ -1260,7 +1270,11 @@ ...@@ -1260,7 +1270,11 @@
var pMsg = { var pMsg = {
TCID: item.TCID TCID: item.TCID
}; };
this.apipost("travel_post_PushTravelPriceToQYWork", pMsg, res => { var cmdStr = "travel_post_PushTravelPriceToQYWork"; //推送消息
if (item.IsPush == 1) {
cmdStr = "travel_post_CancelPushTravelPriceToQYWork"; //取消推送
}
this.apipost(cmdStr, pMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
} else { } else {
......
...@@ -680,9 +680,18 @@ ...@@ -680,9 +680,18 @@
<el-button @click='goUrlMake("GroupAdvertising",item.LineID,item.TCID,"团期广告")' type="primary" <el-button @click='goUrlMake("GroupAdvertising",item.LineID,item.TCID,"团期广告")' type="primary"
style="background:#67c23a; border-color:#67c23a;">广告&nbsp;{{item.AdvertCount}} style="background:#67c23a; border-color:#67c23a;">广告&nbsp;{{item.AdvertCount}}
</el-button> </el-button>
<el-button v-if="item.LineID==14||item.LineID==118" @click.native='PushMessage(item)' type="primary" <template v-if="item.LineID==14||item.LineID==118">
style="background:#00C6FF; border-color:#00C6FF;">推送消息 <el-button v-if="item.IsPush==0" @click.native='PushMessage(item)' type="primary"
</el-button> style="background:#00C6FF; border-color:#00C6FF;">推送消息
</el-button>
<el-tooltip v-else-if="item.IsPush==1" class="item" effect="dark" content="点击取消推送" placement="top">
<el-button @click.native='PushMessage(item)' type="primary" style="background:red !important;">已推送
</el-button>
</el-tooltip>
<el-button v-if="item.IsPush==2" @click.native='PushMessage(item)' type="primary"
style="background:#00C6FF; border-color:#00C6FF;">重新推送
</el-button>
</template>
<el-button @click="ckOPremark(item)" type="primary" style="background:#F16C3C; border-color:#F16C3C"> <el-button @click="ckOPremark(item)" type="primary" style="background:#F16C3C; border-color:#F16C3C">
{{$t('Operation.Op_remark')}} {{$t('Operation.Op_remark')}}
</el-button> </el-button>
...@@ -1152,7 +1161,11 @@ ...@@ -1152,7 +1161,11 @@
var pMsg = { var pMsg = {
TCID: item.TCID TCID: item.TCID
}; };
this.apipost("travel_post_PushTravelPriceToQYWork", pMsg, res => { var cmdStr = "travel_post_PushTravelPriceToQYWork"; //推送消息
if (item.IsPush == 1) {
cmdStr = "travel_post_CancelPushTravelPriceToQYWork"; //取消推送
}
this.apipost(cmdStr, pMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
} else { } else {
......
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