Commit 9be905c3 by 王栋源

wdy

parent adc907c3
...@@ -148,7 +148,9 @@ class ServiceBase { ...@@ -148,7 +148,9 @@ class ServiceBase {
} }
var tokenInfo = await this.getToken(); var tokenInfo = await this.getToken();
var reqUrl = this.channelApiUrl + "/action/tradetransfer/aliclienttransfer"; var reqUrl = this.channelApiUrl + "/action/tradetransfer/aliclienttransfer";
console.log("------------rtn---------------------------")
var rtn = await this.execS.execPostTK(sobj, reqUrl, tokenInfo.data.token); var rtn = await this.execS.execPostTK(sobj, reqUrl, tokenInfo.data.token);
console.log(rtn);
//var rtn = await this.execS.execPostTK(sobj, reqUrl,"token"); //var rtn = await this.execS.execPostTK(sobj, reqUrl,"token");
return rtn; return rtn;
} }
......
...@@ -25,20 +25,21 @@ ...@@ -25,20 +25,21 @@
validateformmethod(rule, value, cbk){ validateformmethod(rule, value, cbk){
return cbk(); return cbk();
}, },
onDlgFormClick(k, model){ onDlgFormClick(k, model){\
var that=this;
if (k = "submit") { if (k = "submit") {
this.$root.postReq("/web/transfer/tradetransferCtl/submit", model).then(function (d) { this.$root.postReq("/web/transfer/tradetransferCtl/submit", model).then(function (d) {
if (d.status > -1) { if (d.status > -1) {
$("[name='grdid']").show(); $("[name='grdid']").show();
$("[name='frmid']").hide(); $("[name='frmid']").hide();
this.$message({ that.$message({
type: 'success', type: 'success',
message: '提交成功!' message: '提交成功!'
}); });
}else{ }else{
$("[name='grdid']").show(); $("[name='grdid']").show();
$("[name='frmid']").hide(); $("[name='frmid']").hide();
this.$message({ that.$message({
type: 'warning', type: 'warning',
message: '提交失败!' message: '提交失败!'
}); });
......
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