Commit 648d82f1 by 闫泽浩

cptato点击事件更改

parent 091f4eb2
...@@ -2,18 +2,22 @@ import Api from "~/service/Api" ...@@ -2,18 +2,22 @@ import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
export default { export default {
async onAttpGetref(){ async onAttpGetref(){
let rtnmsg = await this.executeRule("attp.getref") let rtnmsg = await this.executeRule("attp.getref")
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
Utils.copyValueFromVO(this.model, rtnmsg.data);
} this.$message({
else type: 'success',
{ message: '获取成功!'
this.$notify.error({title: '错误',message: '服务请求失败!'}); });
} }
}, else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onAttpSelbut1(){ async onAttpSelbut1(){
let rtnmsg = await this.executeRule("attp.selbut1") let rtnmsg = await this.executeRule("attp.selbut1")
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
size="small" size="small"
type="primary" type="primary"
:disabled="this.flag" :disabled="this.flag"
@click="OnAttpGetref" @click="onAttpGetref"
> >
获取 获取
</c-button> </c-button>
......
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