Event.js 2.42 KB
Newer Older
wangbinfei committed
1 2 3 4
import Api from "~/service/Api"
import Utils from "~/utils"

export default {
wangna committed
5 6 7 8
    async onTrndocButshw() {
        let rtnmsg = await this.executeRule("trndoc.butshw")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
wangbinfei committed
9

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

wangna committed
20 21 22 23 24 25 26 27 28
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onTrndocButnew() {
        let rtnmsg = await this.executeRule("trndoc.butnew")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
wangbinfei committed
29

wangna committed
30 31 32 33 34 35 36 37 38
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onTrndocButattto() {
        let rtnmsg = await this.executeRule("trndoc.butattto")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
wangbinfei committed
39

wangna committed
40 41 42 43 44 45 46 47 48
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onTrndocButdel() {
        let rtnmsg = await this.executeRule("trndoc.butdel")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
wangbinfei committed
49

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

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

wangna committed
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },

    async onIncctySelbut1() {
        let rtnmsg = await this.executeRule("inccty.selbut1")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
wangbinfei committed
86 87

}