Event.js 5.34 KB
Newer Older
1 2
import Api from "~/service/Api"
export default {
3 4
    async onCptpGetref() {
        let rtnmsg = await this.executeRule("cptp_getref")
wangguangchao committed
5
        if (rtnmsg.respCode == SUCCESS) {
6 7 8 9 10 11 12 13 14
            //TODO 处理数据逻辑

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
chenzhaole committed
183 184 185
    onSeainf(data) {
        console.log('测试。。。。。。。', data)
    },
186 187

}