Commit a06bc031 authored by 黄奎's avatar 黄奎

推送消息调整

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