Event.js 2.35 KB
Newer Older
1 2
import Api from "~/service/Api"
export default {
3
    async onInfbutSearow() {
潘际乾 committed
4
        let rtnmsg = await this.executeRule("infbut.searow")
wangguangchao committed
5
        if (rtnmsg.respCode == SUCCESS) {
闫泽浩 committed
6 7 8
            //TODO 处理数据逻辑 
            console.log(rtnmsg.data);
            this.updateModel(rtnmsg.data);
潘际乾 committed
9
            this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm
10 11 12 13 14 15
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onInfbutDsp() {
潘际乾 committed
16
        let rtnmsg = await this.executeRule("infbut.dsp")
wangguangchao committed
17
        if (rtnmsg.respCode == SUCCESS) {
18
            //TODO 处理数据逻辑
潘际乾 committed
19
            this.updateModel(rtnmsg.data);
闫泽浩 committed
20
            this.root.tabVal="ptap0";
21 22 23 24 25 26
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onInfbutUserow() {
潘际乾 committed
27
        let rtnmsg = await this.executeRule("infbut.userow")
wangguangchao committed
28
        if (rtnmsg.respCode == SUCCESS) {
29
            //TODO 处理数据逻辑
30

31 32 33 34 35
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
闫泽浩 committed
36 37 38
    async handleReset() {
   
     },
39
    async onInfbutClr() {
潘际乾 committed
40
        let rtnmsg = await this.executeRule("infbut.clr")
wangguangchao committed
41
        if (rtnmsg.respCode == SUCCESS) {
42
            //TODO 处理数据逻辑
43

44 45 46 47 48 49
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onInfbutButprt() {
潘际乾 committed
50
        let rtnmsg = await this.executeRule("infbut.butprt")
wangguangchao committed
51
        if (rtnmsg.respCode == SUCCESS) {
52
            //TODO 处理数据逻辑
53

54 55 56 57 58 59
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onInfbutExi() {
潘际乾 committed
60
        let rtnmsg = await this.executeRule("infbut.exi")
wangguangchao committed
61
        if (rtnmsg.respCode == SUCCESS) {
62
            //TODO 处理数据逻辑
63

64 65 66 67 68 69
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onRecpanLnkinfptm() {
潘际乾 committed
70
        let rtnmsg = await this.executeRule("recpan.lnkinfptm")
wangguangchao committed
71
        if (rtnmsg.respCode == SUCCESS) {
72
            //TODO 处理数据逻辑
73

74 75 76 77 78
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
79 80

}