Event.js 7.07 KB
Newer Older
liuxin committed
1
import Api from "~/service/Api"
liuxin committed
2
import Utils from "~/utils/index"
liuxin committed
3
export default {
4
    async onDitpButgetref() {
5
        let rtnmsg = await this.executeRule("ditp.butgetref")
潘际乾 committed
6
        if (rtnmsg.respCode == SUCCESS) {
7
            //TODO 处理数据逻辑
liuxin committed
8
            this.updateModel(rtnmsg.data)
SunJie committed
9 10 11
            this.$message({
                type: 'success',
                message: '获取成功!'
12 13 14 15 16
            });
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
liuxin committed
17
    },
潘际乾 committed
18
    async onAplpDet() {
19
        let rtnmsg = await this.executeRule("ditp.aplp.det")
潘际乾 committed
20
        if (rtnmsg.respCode == SUCCESS) {
潘际乾 committed
21
            //TODO 处理数据逻辑
22
            // console.log(rtnmsg.data);
潘际乾 committed
23 24 25 26
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
liuxin committed
27
    },
28 29
    async onBenpDet() {
        let rtnmsg = await this.executeRule("benp_det")
潘际乾 committed
30
        if (rtnmsg.respCode == SUCCESS) {
31
            //TODO 处理数据逻辑
liuxin committed
32

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

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

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

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

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

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

93 94 95 96
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
liuxin committed
97
    },
98 99
    async onDefdetButtxmsel() {
        let rtnmsg = await this.executeRule("defdet_buttxmsel")
潘际乾 committed
100
        if (rtnmsg.respCode == SUCCESS) {
101
            //TODO 处理数据逻辑
liuxin committed
102

103 104 105 106
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
liuxin committed
107
    },
108 109
    async onPreperButtxmsel() {
        let rtnmsg = await this.executeRule("preper_buttxmsel")
潘际乾 committed
110
        if (rtnmsg.respCode == SUCCESS) {
111
            //TODO 处理数据逻辑
liuxin committed
112

113 114 115 116
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
liuxin committed
117
    },
118
    async onSetmodDet() {
hulei committed
119
        let rtnmsg = await this.executeRule("setmod.det")
潘际乾 committed
120
        if (rtnmsg.respCode == SUCCESS) {
121
            //TODO 处理数据逻辑
liuxin committed
122

123 124 125 126
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
liuxin committed
127
    },
128 129
    async onLiaallButmisamt() {
        let rtnmsg = await this.executeRule("liaall_butmisamt")
潘际乾 committed
130
        if (rtnmsg.respCode == SUCCESS) {
131
            //TODO 处理数据逻辑
liuxin committed
132

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

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

153 154 155 156
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
liuxin committed
157
    },
158 159
    async onOthpDet() {
        let rtnmsg = await this.executeRule("othp_det")
潘际乾 committed
160
        if (rtnmsg.respCode == SUCCESS) {
161
            //TODO 处理数据逻辑
liuxin committed
162

163 164 165 166
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
liuxin committed
167
    },
168 169
    async onLimptsGet1() {
        let rtnmsg = await this.executeRule("limpts_get1")
潘际乾 committed
170
        if (rtnmsg.respCode == SUCCESS) {
171
            //TODO 处理数据逻辑
liuxin committed
172

173 174 175 176
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
liuxin committed
177
    },
178 179
    async onLimptsGet2() {
        let rtnmsg = await this.executeRule("limpts_get2")
潘际乾 committed
180
        if (rtnmsg.respCode == SUCCESS) {
181
            //TODO 处理数据逻辑
liuxin committed
182

183 184 185 186
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
liuxin committed
187
    },
188 189
    async onLimmodTrycal() {
        let rtnmsg = await this.executeRule("limmod_trycal")
潘际乾 committed
190
        if (rtnmsg.respCode == SUCCESS) {
191
            //TODO 处理数据逻辑
liuxin committed
192

193 194 195 196
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
liuxin committed
197
    },
198 199 200
    async onSeaParty(path) {
        let rtnmsg =  await this.executeRule(path) 
        if (rtnmsg.respCode == SUCCESS) {
201 202 203 204 205
            Utils.copyValueFromVO(this.model,rtnmsg.data);
        }

    },

liuxin committed
206
    onSeainf() {
207
      
liuxin committed
208

1377875331@qq.com committed
209
    },
210 211
    async BlurBennam(e) {
        let rtnmsg = await this.executeDefault("ditp.remark")
潘际乾 committed
212
        if (rtnmsg.respCode == SUCCESS) {
213 214 215 216
            //TODO 处理数据逻辑
            this.model.ditp.remark = rtnmsg.data.ditp_remark
        }
    },
217 218
    async BlurAplname(e) {
        let rtnmsg = await this.executeDefault("ditp.remark")
潘际乾 committed
219
        if (rtnmsg.respCode == SUCCESS) {
220 221 222 223
            //TODO 处理数据逻辑
            this.model.ditp.remark = rtnmsg.data.ditp_remark
        }
    },
224 225
    async BlurSignam(e) {
        let rtnmsg = await this.executeDefault("ditp.remark")
潘际乾 committed
226
        if (rtnmsg.respCode == SUCCESS) {
227 228 229
            //TODO 处理数据逻辑
            this.model.ditp.remark = rtnmsg.data.ditp_remark
        }
1377875331@qq.com committed
230
    },
231
    async onExtkey(e) {
1377875331@qq.com committed
232

SunJie committed
233 234
    },
    // didgrp.iss.pts.extkey
235 236
    async changeExtkey() {
        let rtnmsg = await this.executeRule("didgrp.iss.pts.extkey")
潘际乾 committed
237
        if (rtnmsg.respCode == SUCCESS) {
238
            Utils.copyValueFromVO(this.model, rtnmsg.data);
SunJie committed
239
        }
240
    }
241

liuxin committed
242
}