Commit 235cebb2 by 蒋勇

add control

parent 3d1b75da
......@@ -11,6 +11,10 @@ class TradetransferCtl extends CtlBase {
super("transfer", CtlBase.getServiceName(TradetransferCtl));
this.postfile = system.getObject("util.restClient");
}
async track(p,q,req){
console.log(p)
return system.getResultSuccess(p.pushData,"ok");
}
async submit(p, q, req) {
if (req && req.session && req.session.user) {
p.onlyCode = req.session.user.unionId;
......
......@@ -91,8 +91,12 @@
this.trackVisable=false;
},
saveClick(){
this.trackVisable=false;
this.trackRecords.push({"trackDate":new Date().toLocaleString(),"trackContent":this.trackContent});
let pushData={"pushData":{"trackDate":new Date().toLocaleString(),"trackContent":this.trackContent}};
var self=this;
this.$root.postReq("/web/transfer/tradetransferCtl/track", pushData).then(function (d) {
self.trackRecords.push(d.data);
})
}
},
......
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