Commit bc9cb67b authored by 黄奎's avatar 黄奎

推送消息修改

parent e39faafe
...@@ -1663,24 +1663,24 @@ ...@@ -1663,24 +1663,24 @@
}, },
//推送消息 //推送消息
PushMessage(item) { PushMessage(item) {
console.log("item.IsPush", item.IsPush); this.queryCommonData.loading = true;
var pMsg = { var pMsg = {
TCID: item.TCID TCID: item.TCID
}; };
var tipMessage = "推送消息";
var cmdStr = "travel_post_PushTravelPriceToQYWork"; //推送消息 var cmdStr = "travel_post_PushTravelPriceToQYWork"; //推送消息
if (item.IsPush == 1) { if (item.IsPush == 1) {
cmdStr = "travel_post_CancelPushTravelPriceToQYWork"; //取消推送 cmdStr = "travel_post_CancelPushTravelPriceToQYWork"; //取消推送
tipMessage = "【取消】推送";
} }
this.apipost(cmdStr, pMsg, res => { this.apipost(cmdStr, pMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(tipMessage + '成功!');
this.getControlList(); this.getControlList();
} else { } else {
this.Error(res.data.message); this.Error(tipMessage + '失败!');
} }
}, });
err => {}
);
}, },
showDialog(ConfigId, OfferId) { showDialog(ConfigId, OfferId) {
this.dialog = { this.dialog = {
......
...@@ -1267,22 +1267,24 @@ ...@@ -1267,22 +1267,24 @@
}, },
//消息推送 //消息推送
PushMessage(item) { PushMessage(item) {
this.queryCommonData.loading = true;
var pMsg = { var pMsg = {
TCID: item.TCID TCID: item.TCID
}; };
var tipMessage = "推送消息";
var cmdStr = "travel_post_PushTravelPriceToQYWork"; //推送消息 var cmdStr = "travel_post_PushTravelPriceToQYWork"; //推送消息
if (item.IsPush == 1) { if (item.IsPush == 1) {
cmdStr = "travel_post_CancelPushTravelPriceToQYWork"; //取消推送 cmdStr = "travel_post_CancelPushTravelPriceToQYWork"; //取消推送
tipMessage = "【取消】推送";
} }
this.apipost(cmdStr, pMsg, res => { this.apipost(cmdStr, pMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(tipMessage + '成功!');
this.getControlList();
} else { } else {
this.Error(res.data.message); this.Error(tipMessage + '失败!');
} }
}, });
err => {}
);
}, },
showDialog(ConfigId, OfferId) { showDialog(ConfigId, OfferId) {
this.dialog = { this.dialog = {
......
...@@ -1158,22 +1158,24 @@ ...@@ -1158,22 +1158,24 @@
}, },
//消息推送 //消息推送
PushMessage(item) { PushMessage(item) {
this.queryCommonData.loading = true;
var pMsg = { var pMsg = {
TCID: item.TCID TCID: item.TCID
}; };
var tipMessage = "推送消息";
var cmdStr = "travel_post_PushTravelPriceToQYWork"; //推送消息 var cmdStr = "travel_post_PushTravelPriceToQYWork"; //推送消息
if (item.IsPush == 1) { if (item.IsPush == 1) {
cmdStr = "travel_post_CancelPushTravelPriceToQYWork"; //取消推送 cmdStr = "travel_post_CancelPushTravelPriceToQYWork"; //取消推送
tipMessage = "【取消】推送";
} }
this.apipost(cmdStr, pMsg, res => { this.apipost(cmdStr, pMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(tipMessage + '成功!');
this.getControlList();
} else { } else {
this.Error(res.data.message); this.Error(tipMessage + '失败!');
} }
}, });
err => {}
);
}, },
//显示报价单弹窗 //显示报价单弹窗
showDialog(ConfigId, OfferId) { showDialog(ConfigId, OfferId) {
...@@ -1303,7 +1305,6 @@ ...@@ -1303,7 +1305,6 @@
err => {} err => {}
) )
}, },
//新获取列表数据 //新获取列表数据
getControlList() { getControlList() {
var msg = JSON.parse(JSON.stringify(this.queryMsg)) var msg = JSON.parse(JSON.stringify(this.queryMsg))
......
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