Event.js 2.23 KB
Newer Older
1 2
import Api from "~/service/Api"
export default {
3
    async onInfbutSearow() {
潘际乾 committed
4
        let rtnmsg = await this.executeRule("infbut.searow")
wangguangchao committed
5
        if (rtnmsg.respCode == SUCCESS) {
6
            //TODO 处理数据逻辑
潘际乾 committed
7
            this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm
8 9 10 11 12 13
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onInfbutDsp() {
潘际乾 committed
14
        let rtnmsg = await this.executeRule("infbut.dsp")
wangguangchao committed
15
        if (rtnmsg.respCode == SUCCESS) {
16
            //TODO 处理数据逻辑
潘际乾 committed
17 18
            this.updateModel(rtnmsg.data);
            this.tabVal = "ptap0"
19 20 21 22 23 24
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onInfbutUserow() {
潘际乾 committed
25
        let rtnmsg = await this.executeRule("infbut.userow")
wangguangchao committed
26
        if (rtnmsg.respCode == SUCCESS) {
27
            //TODO 处理数据逻辑
28

29 30 31 32 33 34
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onInfbutClr() {
潘际乾 committed
35
        let rtnmsg = await this.executeRule("infbut.clr")
wangguangchao committed
36
        if (rtnmsg.respCode == SUCCESS) {
37
            //TODO 处理数据逻辑
38

39 40 41 42 43 44
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onInfbutButprt() {
潘际乾 committed
45
        let rtnmsg = await this.executeRule("infbut.butprt")
wangguangchao committed
46
        if (rtnmsg.respCode == SUCCESS) {
47
            //TODO 处理数据逻辑
48

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

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

69 70 71 72 73
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
74 75

}