Commit d8be4d99 by jianglong

修改BR交易快照功能

parent 7cc02180
...@@ -113,17 +113,15 @@ export default { ...@@ -113,17 +113,15 @@ export default {
created:async function(){ created:async function(){
console.log("进入brtacp交易"); console.log("进入brtacp交易");
let rtnmsg = await this.init({}) let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{ Utils.copyValueFromVO(this.model, rtnmsg.data);
this.updateModel(rtnmsg.data) if (this.isInDisplay) {
//TODO 处理数据逻辑 this.restoreDisplay();
}
} } else {
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
} },
} }
</script> </script>
<style> <style>
......
...@@ -135,14 +135,16 @@ export default { ...@@ -135,14 +135,16 @@ export default {
**/ **/
// }, // },
}, },
created: async function () { created:async function(){
console.log("进入brtame交易"); console.log("进入brtame交易");
let rtnmsg = await this.init({}); let rtnmsg = await this.init({})
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data); Utils.copyValueFromVO(this.model, rtnmsg.data);
//TODO 处理数据逻辑 if (this.isInDisplay) {
this.restoreDisplay();
}
} else { } else {
this.$notify.error({ title: "错误", message: "服务请求失败!" }); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
}; };
......
...@@ -151,18 +151,15 @@ export default { ...@@ -151,18 +151,15 @@ export default {
created:async function(){ created:async function(){
console.log("进入brtcan交易"); console.log("进入brtcan交易");
let rtnmsg = await this.init({}) let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{ Utils.copyValueFromVO(this.model, rtnmsg.data);
//TODO 处理数据逻辑 if (this.isInDisplay) {
this.updateModel(rtnmsg.data) this.restoreDisplay();
} }
else } else {
{
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
},
}
} }
</script> </script>
......
...@@ -155,17 +155,15 @@ export default { ...@@ -155,17 +155,15 @@ export default {
created:async function(){ created:async function(){
console.log("进入brtcsg交易"); console.log("进入brtcsg交易");
let rtnmsg = await this.init({}) let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{ Utils.copyValueFromVO(this.model, rtnmsg.data);
this.updateModel(rtnmsg.data) if (this.isInDisplay) {
//TODO 处理数据逻辑 this.restoreDisplay();
}
} } else {
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
} },
} }
</script> </script>
<style> <style>
......
...@@ -168,17 +168,15 @@ export default { ...@@ -168,17 +168,15 @@ export default {
created:async function(){ created:async function(){
console.log("进入brtdcr交易"); console.log("进入brtdcr交易");
let rtnmsg = await this.init({}) let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{ Utils.copyValueFromVO(this.model, rtnmsg.data);
this.updateModel(rtnmsg.data) if (this.isInDisplay) {
//TODO 处理数据逻辑 this.restoreDisplay();
}
} } else {
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
} },
} }
</script> </script>
<style> <style>
......
...@@ -214,17 +214,15 @@ export default { ...@@ -214,17 +214,15 @@ export default {
created:async function(){ created:async function(){
console.log("进入brtlat交易"); console.log("进入brtlat交易");
let rtnmsg = await this.init({}) let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{ Utils.copyValueFromVO(this.model, rtnmsg.data);
this.updateModel(rtnmsg.data) if (this.isInDisplay) {
//TODO 处理数据逻辑 this.restoreDisplay();
}
} } else {
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
} },
} }
</script> </script>
<style> <style>
......
...@@ -206,20 +206,20 @@ export default { ...@@ -206,20 +206,20 @@ export default {
watch:{ watch:{
}, },
created:async function(){ created:async function(){
console.log("进入brtset交易"); console.log("进入brtset交易");
let rtnmsg = await this.init({}) let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{ Utils.copyValueFromVO(this.model, rtnmsg.data);
this.updateModel(rtnmsg.data) this.model.mtabut.clsflg="X";
//TODO 处理数据逻辑 if (this.isInDisplay) {
this.model.mtabut.clsflg="X"; this.restoreDisplay();
} }
else } else {
{
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
} },
} }
</script> </script>
......
...@@ -182,17 +182,15 @@ export default { ...@@ -182,17 +182,15 @@ export default {
created:async function(){ created:async function(){
console.log("进入brtsnd交易"); console.log("进入brtsnd交易");
let rtnmsg = await this.init({}) let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{ Utils.copyValueFromVO(this.model, rtnmsg.data);
this.updateModel(rtnmsg.data) if (this.isInDisplay) {
//TODO 处理数据逻辑 this.restoreDisplay();
}
} } else {
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
} },
} }
</script> </script>
<style> <style>
......
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