Event.js 3.22 KB
Newer Older
wuziqiang committed
1
import Api from "~/service/Api"
liuxin committed
2
import Utils from "~/utils/index"
wuziqiang committed
3 4

export default {
liuxin committed
5 6 7 8
    async onDetpButgetref() {
        let rtnmsg = await this.executeRule("detp.butgetref")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
liuxin committed
9
            this.updateModel(rtnmsg.data)
liuxin committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
            this.$message({
                type: 'success',
                message: '获取成功!'
            });
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    onSeainf() {},
    onExtkey() {},
    mytypeChange() {},
    avbbykeyEvent() {},
    recTratypChange() {},
    async onBenpDet() {
        let rtnmsg = await this.executeRule("benp.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
wuziqiang committed
27

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

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

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

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

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

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

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

liuxin committed
91 92 93 94 95 96 97 98
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onSetmodDet() {
        let rtnmsg = await this.executeRule("setmod.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
wuziqiang committed
99

liuxin committed
100 101 102 103
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
wuziqiang committed
104 105

}