Event.js 3.28 KB
Newer Older
liumin committed
1 2 3 4
import Api from "~/service/Api"
import Utils from "~/utils"

export default {
Eivi committed
5 6 7 8
    async onPrbpDet() {
        let rtnmsg = await this.executeRule("prbp.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
liumin committed
9

Eivi committed
10 11 12 13 14 15 16 17
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onIntdisButtxmsel() {
        let rtnmsg = await this.executeRule("intdis.buttxmsel")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
liumin committed
18

Eivi committed
19 20 21 22 23 24 25 26
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onDocdisButtxmsel() {
        let rtnmsg = await this.executeRule("docdis.buttxmsel")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
liumin committed
27

Eivi committed
28 29 30 31 32 33 34 35
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onLiaallButmisamt() {
        let rtnmsg = await this.executeRule("liaall.butmisamt")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
liumin committed
36

Eivi committed
37 38 39 40 41 42 43 44
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onLiaallButmissig() {
        let rtnmsg = await this.executeRule("liaall.butmissig")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
liumin committed
45

Eivi committed
46 47 48 49 50 51 52 53
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onSetmodDet() {
        let rtnmsg = await this.executeRule("setmod.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
54

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

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

Eivi committed
73 74 75 76 77 78 79 80
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onLimptsGet1() {
        let rtnmsg = await this.executeRule("limpts.get1")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
81

Eivi committed
82 83 84 85 86 87 88 89
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onLimptsGet2() {
        let rtnmsg = await this.executeRule("limpts.get2")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
90

Eivi committed
91 92 93 94 95 96 97 98
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onLimmodTrycal() {
        let rtnmsg = await this.executeRule("limmod.trycal")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
liumin committed
99

Eivi committed
100 101 102 103 104 105 106 107
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    onSeainf() {},
    onDetpButgetref() {},
    onBenpDet() {},
    onAplpDet() {},
liumin committed
108 109

}