Event.js 7.03 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
import Api from "~/service/Api"
import Utils from "~/utils"

export default {
    async onBetmodButgetref() {
        let rtnmsg = await this.executeRule("betmod.butgetref")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
11 12 13 14
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
15 16 17 18 19 20 21 22
        }
    },
    async onPrbpDet() {
        let rtnmsg = await this.executeRule("prbp.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
23 24 25 26
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
27 28 29 30 31 32 33 34
        }
    },
    async onDocdisButtxmsel() {
        let rtnmsg = await this.executeRule("docdis.buttxmsel")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

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

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

        } else {
59 60 61 62
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
63 64 65 66 67 68 69 70
        }
    },
    async onComconButtxmsel() {
        let rtnmsg = await this.executeRule("comcon.buttxmsel")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

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

        } else {
83 84 85 86
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
87 88 89 90 91 92 93 94
        }
    },
    async onWrkpDet() {
        let rtnmsg = await this.executeRule("wrkp.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
95 96 97 98
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
99 100 101 102 103 104 105 106
        }
    },
    async onOthp1Det() {
        let rtnmsg = await this.executeRule("othp1.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

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

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

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

        } else {
143 144 145 146
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
147 148 149 150 151 152 153 154
        }
    },
    async onTrndocButshw() {
        let rtnmsg = await this.executeRule("trndoc.butshw")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
155 156 157 158
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
159 160 161 162 163 164 165 166
        }
    },
    async onTrndocButadd() {
        let rtnmsg = await this.executeRule("trndoc.butadd")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
167 168 169 170
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
171 172 173 174 175 176 177 178
        }
    },
    async onTrndocButnew() {
        let rtnmsg = await this.executeRule("trndoc.butnew")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
179 180 181 182
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
183 184 185 186 187 188 189 190
        }
    },
    async onTrndocButattto() {
        let rtnmsg = await this.executeRule("trndoc.butattto")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
191 192 193 194
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
195 196 197 198 199 200 201 202
        }
    },
    async onTrndocButdel() {
        let rtnmsg = await this.executeRule("trndoc.butdel")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
203 204 205 206
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
207 208 209 210 211 212 213 214
        }
    },
    async onTrndocButatt() {
        let rtnmsg = await this.executeRule("trndoc.butatt")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
215 216 217 218
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
219 220 221 222 223 224 225 226
        }
    },
    async onSetmodDet() {
        let rtnmsg = await this.executeRule("setmod.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onLiaallButmisamt() {
        let rtnmsg = await this.executeRule("liaall.butmisamt")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

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

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
255 256 257 258
        }
    },
    onSeainf() {},
    onDetpButgetref() {},
259
    onBenpDet() {},
260 261

}