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

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

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

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

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

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

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

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

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

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

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

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

100
        } else {
zhoubaojian committed
101 102 103 104 105 106 107 108
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onWrkpDet() {
        let rtnmsg = await this.executeRule("wrkp.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

109
        } else {
zhoubaojian committed
110 111 112 113 114 115 116 117
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onOthpDet() {
        let rtnmsg = await this.executeRule("othp.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

118
        } else {
zhoubaojian committed
119 120 121 122 123 124 125 126
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onLimptsGet1() {
        let rtnmsg = await this.executeRule("limpts.get1")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

127
        } else {
zhoubaojian committed
128 129 130 131 132 133 134 135
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onLimptsGet2() {
        let rtnmsg = await this.executeRule("limpts.get2")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

136
        } else {
zhoubaojian committed
137 138 139 140 141 142 143 144
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onLimmodTrycal() {
        let rtnmsg = await this.executeRule("limmod.trycal")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

145
        } else {
zhoubaojian committed
146 147 148
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
149 150 151 152
    onSeainf() {},
    onDetpButgetref() {},
    onBenpDet() {},
    onAplpDet() {},
153 154

}