Event.js 8.48 KB
Newer Older
孟冬雪 committed
1 2 3 4
import Api from "~/service/Api"
import Utils from "~/utils"

export default {
Wuyuqiu committed
5
    async onLttpButgetref() {
6
        let rtnmsg = await this.executeRule("lttp.butgetref")
Wuyuqiu committed
7 8 9 10 11 12 13 14
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
            this.updateModel(rtnmsg.data)
            this.$message({
                type: 'success',
                message: '获取成功!'
            })

15

16
        }
Wuyuqiu committed
17 18
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
19 20
        }
    },
Wuyuqiu committed
21
    async onBe1pDet() {
22
        let rtnmsg = await this.executeRule("be1p.det")
Wuyuqiu committed
23 24
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
25

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

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

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

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

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

76
        }
Wuyuqiu committed
77 78
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
79 80
        }
    },
Wuyuqiu committed
81
    async onAvtpDet() {
82
        let rtnmsg = await this.executeRule("avtp.det")
Wuyuqiu committed
83 84
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
85

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

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

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

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

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

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

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

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

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

176
        }
Wuyuqiu committed
177 178
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
179 180
        }
    },
Wuyuqiu committed
181
    async onSpcbenButtxmsel() {
182
        let rtnmsg = await this.executeRule("spcben.buttxmsel")
Wuyuqiu committed
183 184
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
185

186
        }
Wuyuqiu committed
187 188
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
189 190
        }
    },
Wuyuqiu committed
191
    async onSpcrcbButtxmsel() {
192
        let rtnmsg = await this.executeRule("spcrcb.buttxmsel")
Wuyuqiu committed
193 194
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
195

196
        }
Wuyuqiu committed
197 198
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
199 200
        }
    },
Wuyuqiu committed
201
    async onLiaallButmisamt() {
202
        let rtnmsg = await this.executeRule("liaall.butmisamt")
Wuyuqiu committed
203 204
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
205

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

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

226
        }
Wuyuqiu committed
227 228
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
229 230
        }
    },
Wuyuqiu committed
231
    async onInsbnkButtxmsel() {
232
        let rtnmsg = await this.executeRule("insbnk.buttxmsel")
Wuyuqiu committed
233 234
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
235

236
        }
Wuyuqiu committed
237 238
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
239 240
        }
    },
Wuyuqiu committed
241
    async onPreperButtxmsel() {
242
        let rtnmsg = await this.executeRule("preper.buttxmsel")
Wuyuqiu committed
243 244
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
245

246
        }
Wuyuqiu committed
247 248
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
249 250
        }
    },
Wuyuqiu committed
251
    async onChariaButtxmsel() {
252
        let rtnmsg = await this.executeRule("charia.buttxmsel")
Wuyuqiu committed
253 254
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
255

256
        }
Wuyuqiu committed
257 258
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
259 260
        }
    },
Wuyuqiu committed
261
    async onDrwpDet() {
262
        let rtnmsg = await this.executeRule("drwp.det")
Wuyuqiu committed
263 264 265 266 267 268 269 270 271 272
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onLibctySelbut1(){
        let rtnmsg = await this.executeRule("libcty.selbut1")
273 274
        if(rtnmsg.respCode == SUCCESS)
        {
Wuyuqiu committed
275

276
        //TODO 处理数据逻辑
Wuyuqiu committed
277 278 279 280 281
        this.updateModel(rtnmsg.data)
            this.$message({
                type: 'success',
                message: '获取成功!'
            })
282 283

        }
284 285 286
        else
        {
        this.$notify.error({title: '错误',message: '服务请求失败!'});
287 288
        }
    },
Wuyuqiu committed
289 290


291 292


293 294 295 296 297 298 299 300 301
    onSeainf() { },
    onBenpDet() { },
    onIsspDet() { },
    onAplpDet() { },
    onAvbpDet() { },
    onAdvpDet() { },
    onA2bpDet() { },
    onApbpDet() { },
    onRmbpDet() { },
302

Wuyuqiu committed
303 304


孟冬雪 committed
305 306

}