Commit b36a34ef authored by 谢子梦's avatar 谢子梦

stage:支付通道配置-使用状态问题修改

parent 31e8c6de
......@@ -232,7 +232,11 @@ export default {
handleStatusChange(row) {
const _this = this;
let text = row.status === 1 ? "启用" : "停用";
_this.$modal.confirm('确认要"' + text + '""' + row.channelName + '"支付通道吗?').then(function () {
this.$confirm('确认要"' + text + '""' + row.channelName + '"支付通道吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const updateForm = {
id: row.id,
status: row.status
......@@ -244,9 +248,28 @@ export default {
}).catch(() => {
row.status = row.status === 2 ? 1 : 2;
});
}).catch(function () {
}).catch(() => {
this.$message({
type: 'info',
message: '已取消修改'
});
row.status = row.status === 2 ? 1 : 2;
});
// _this.$modal.confirm('确认要"' + text + '""' + row.channelName + '"支付通道吗?').then(function () {
// const updateForm = {
// id: row.id,
// status: row.status
// }
// updateCompanyPayChannel(updateForm).then(response => {
// this.$modal.msgSuccess("修改成功");
// this.open = false;
// this.getList();
// }).catch(() => {
// row.status = row.status === 2 ? 1 : 2;
// });
// }).catch(function () {
// row.status = row.status === 2 ? 1 : 2;
// });
},
signChannel(row) {
this.$confirm('确认开通支付通道[' + row.channelName + ']?', '提示', {
......
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