Event.js 5.63 KB
import Api from "~/service/Api"
import Utils from "~/utils"

export default {
                async onButpSav(){
                let rtnmsg = await this.executeRule("butp.sav")
                if(rtnmsg.respCode == SUCCESS)
                {
                //TODO 处理数据逻辑

                }
                else
                {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
                }
            },
        async onBasppGetreftmp(){
                let rtnmsg = await this.executeRule("baspp.getreftmp")
                if(rtnmsg.respCode == SUCCESS)
                {
                //TODO 处理数据逻辑

                }
                else
                {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
                }
            },
        async onBasppGetref(){
                let rtnmsg = await this.executeRule("baspp.getref")
                if(rtnmsg.respCode == SUCCESS)
                {
                //TODO 处理数据逻辑

                }
                else
                {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
                }
            },
        async onButpMod(){
                let rtnmsg = await this.executeRule("butp.mod")
                if(rtnmsg.respCode == SUCCESS)
                {
                //TODO 处理数据逻辑

                }
                else
                {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
                }
            },
        async onButpChk(){
                let rtnmsg = await this.executeRule("butp.chk")
                if(rtnmsg.respCode == SUCCESS)
                {
                //TODO 处理数据逻辑

                }
                else
                {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
                }
            },
        async onButpDel(){
                let rtnmsg = await this.executeRule("butp.del")
                if(rtnmsg.respCode == SUCCESS)
                {
                //TODO 处理数据逻辑

                }
                else
                {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
                }
            },
        async onButpErr(){
                let rtnmsg = await this.executeRule("butp.err")
                if(rtnmsg.respCode == SUCCESS)
                {
                //TODO 处理数据逻辑

                }
                else
                {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
                }
            },
        async onButpExi(){
                let rtnmsg = await this.executeRule("butp.exi")
                if(rtnmsg.respCode == SUCCESS)
                {
                //TODO 处理数据逻辑

                }
                else
                {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
                }
            },
        async onButpSav(){
                let rtnmsg = await this.executeRule("butp.sav")
                if(rtnmsg.respCode == SUCCESS)
                {
                //TODO 处理数据逻辑

                }
                else
                {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
                }
            },
        async onButpMod(){
                let rtnmsg = await this.executeRule("butp.mod")
                if(rtnmsg.respCode == SUCCESS)
                {
                //TODO 处理数据逻辑

                }
                else
                {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
                }
            },
        async onButpChk(){
                let rtnmsg = await this.executeRule("butp.chk")
                if(rtnmsg.respCode == SUCCESS)
                {
                //TODO 处理数据逻辑

                }
                else
                {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
                }
            },
        async onButpDel(){
                let rtnmsg = await this.executeRule("butp.del")
                if(rtnmsg.respCode == SUCCESS)
                {
                //TODO 处理数据逻辑

                }
                else
                {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
                }
            },
        async onBopbutAdd(){
                let rtnmsg = await this.executeRule("bopbut.add")
                if(rtnmsg.respCode == SUCCESS)
                {
                //TODO 处理数据逻辑

                }
                else
                {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
                }
            },
        async onButpErr(){
                let rtnmsg = await this.executeRule("butp.err")
                if(rtnmsg.respCode == SUCCESS)
                {
                //TODO 处理数据逻辑

                }
                else
                {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
                }
            },
        async onButpExi(){
                let rtnmsg = await this.executeRule("butp.exi")
                if(rtnmsg.respCode == SUCCESS)
                {
                //TODO 处理数据逻辑

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

}