Commit bc9cb67b authored by 黄奎's avatar 黄奎

推送消息修改

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