Commit af947ea2 by 潘际乾

Event.js的请求方式修改

parent 4b48e871
import Api from "~/service/Api"
export default {
onInfbutSearow(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("infpta/infbut_searow",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
async onInfbutSearow() {
let rtnmsg = await this.executeRule("infbut_searow")
if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onInfbutDsp(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("infpta/infbut_dsp",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onInfbutDsp() {
let rtnmsg = await this.executeRule("infbut_dsp")
if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onInfbutUserow(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("infpta/infbut_userow",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onInfbutUserow() {
let rtnmsg = await this.executeRule("infbut_userow")
if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onInfbutClr(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("infpta/infbut_clr",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onInfbutClr() {
let rtnmsg = await this.executeRule("infbut_clr")
if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onInfbutButprt(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("infpta/infbut_butprt",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onInfbutButprt() {
let rtnmsg = await this.executeRule("infbut_butprt")
if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onInfbutExi(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("infpta/infbut_exi",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onInfbutExi() {
let rtnmsg = await this.executeRule("infbut_exi")
if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onRecpanLnkinfptm(){
this.root.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("infpta/recpan_lnkinfptm",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async onRecpanLnkinfptm() {
let rtnmsg = await this.executeRule("recpan_lnkinfptm")
if (rtnmsg.retcod == SUCCESS) {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
}
\ No newline at end of file
import Api from "~/service/Api"
import Utils from "~/utils/index"
export default {
onUsfmodShwflt() {
this.root.$refs.modelForm.validate(async valid => {
if (!valid)
return;
let rtnmsg = await Api.post("sptsel/usfmod_shwflt", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
async onUsfmodShwflt() {
let rtnmsg = await this.executeRule("usfmod_shwflt")
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
})
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
onButypt() {
this.root.$refs.modelForm.validate(async valid => {
if (!valid)
return;
let rtnmsg = await Api.post("sptsel/butypt", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
async onButypt() {
let rtnmsg = await this.executeRule("butypt")
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
})
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
onDlmft() {
this.root.$refs.modelForm.validate(async valid => {
if (!valid)
return;
let rtnmsg = await Api.post("sptsel/dlmft", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
async onDlmft() {
let rtnmsg = await this.executeRule("dlmft")
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
})
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
onDlaxq() {
this.root.$refs.modelForm.validate(async valid => {
if (!valid)
return;
let rtnmsg = await Api.post("sptsel/dlaxq", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
async onDlaxq() {
let rtnmsg = await this.executeRule("dlaxq")
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
})
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
onButimg() {
this.root.$refs.modelForm.validate(async valid => {
if (!valid)
return;
let rtnmsg = await Api.post("sptsel/butimg", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
async onButimg() {
let rtnmsg = await this.executeRule("butimg")
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
})
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
tabClick() {
},
async continueEdit(row){
//let rtnmsg = await Api.post("sptsel/getPendingData",{params:{'selsptinr':row[0]}})
async continueEdit(row) {
//let rtnmsg = await Api.post("getPendingData",{params:{'selsptinr':row[0]}})
//if (rtnmsg.respCode == "AAAAAA") {
//var cacheFileName = rtnmsg.data.cacheFileName;
let viewurl ="/business/ditopn?selsptinr="+row[0];
this.$router.push(viewurl);
//var cacheFileName = rtnmsg.data.cacheFileName;
let viewurl = "/business/ditopn?selsptinr=" + row[0];
this.$router.push(viewurl);
//}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment