import Api from "~/service/Api" export default { onCptpGetref(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/cptp_getref",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onCptpGetinf(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/cptp_getinf",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onCptpGetuetr(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/cptp_getuetr",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onCptpSelbut(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/cptp_selbut",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onCptpSelbut1(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/cptp_selbut1",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onSndpDet(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/sndp_det",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onOripDet(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/orip_det",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onCptpGetmod(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/cptp_getmod",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onOrcpDet(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/orcp_det",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onPyepDet(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/pyep_det",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onCptpSerpty(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/cptp_serpty",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onSetmodDet(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/setmod_det",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onTrndocButshw(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/trndoc_butshw",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onTrndocButadd(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/trndoc_butadd",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onTrndocButnew(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/trndoc_butnew",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onTrndocButattto(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/trndoc_butattto",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onTrndocButdel(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/trndoc_butdel",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, onTrndocButatt(){ this.root.$refs.modelForm.validate(async valid => { if(!valid) return; let rtnmsg = await Api.post("cptadv/trndoc_butatt",{data:this.model}) if(rtnmsg.retcod == SUCCESS) { //TODO 处理数据逻辑 } else { this.$notify.error({title: '错误',message: '服务请求失败!'}); } }) }, }