Commit af947ea2 by 潘际乾

Event.js的请求方式修改

parent 4b48e871
import Api from "~/service/Api" import Api from "~/service/Api"
export default { export default {
onInfbutSearow(){ async onInfbutSearow() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("infbut_searow")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("infpta/infbut_searow",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onInfbutDsp(){ async onInfbutDsp() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("infbut_dsp")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("infpta/infbut_dsp",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onInfbutUserow(){ async onInfbutUserow() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("infbut_userow")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("infpta/infbut_userow",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onInfbutClr(){ async onInfbutClr() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("infbut_clr")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("infpta/infbut_clr",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onInfbutButprt(){ async onInfbutButprt() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("infbut_butprt")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("infpta/infbut_butprt",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onInfbutExi(){ async onInfbutExi() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("infbut_exi")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("infpta/infbut_exi",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
onRecpanLnkinfptm(){ async onRecpanLnkinfptm() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("recpan_lnkinfptm")
if(!valid) if (rtnmsg.retcod == SUCCESS) {
return;
let rtnmsg = await Api.post("infpta/recpan_lnkinfptm",{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
else else {
{ this.$notify.error({ title: '错误', message: '服务请求失败!' });
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
})
}, },
} }
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
onUsfmodShwflt() { async onUsfmodShwflt() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("usfmod_shwflt")
if (!valid)
return;
let rtnmsg = await Api.post("sptsel/usfmod_shwflt", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -13,13 +10,9 @@ export default { ...@@ -13,13 +10,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onButypt() { async onButypt() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("butypt")
if (!valid)
return;
let rtnmsg = await Api.post("sptsel/butypt", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -27,13 +20,9 @@ export default { ...@@ -27,13 +20,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onDlmft() { async onDlmft() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("dlmft")
if (!valid)
return;
let rtnmsg = await Api.post("sptsel/dlmft", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -41,13 +30,9 @@ export default { ...@@ -41,13 +30,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onDlaxq() { async onDlaxq() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("dlaxq")
if (!valid)
return;
let rtnmsg = await Api.post("sptsel/dlaxq", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -55,13 +40,9 @@ export default { ...@@ -55,13 +40,9 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
onButimg() { async onButimg() {
this.root.$refs.modelForm.validate(async valid => { let rtnmsg = await this.executeRule("butimg")
if (!valid)
return;
let rtnmsg = await Api.post("sptsel/butimg", this.wrapper())
if (rtnmsg.respCode == "AAAAAA") { if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
...@@ -69,17 +50,16 @@ export default { ...@@ -69,17 +50,16 @@ export default {
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
})
}, },
tabClick() { tabClick() {
}, },
async continueEdit(row){ async continueEdit(row) {
//let rtnmsg = await Api.post("sptsel/getPendingData",{params:{'selsptinr':row[0]}}) //let rtnmsg = await Api.post("getPendingData",{params:{'selsptinr':row[0]}})
//if (rtnmsg.respCode == "AAAAAA") { //if (rtnmsg.respCode == "AAAAAA") {
//var cacheFileName = rtnmsg.data.cacheFileName; //var cacheFileName = rtnmsg.data.cacheFileName;
let viewurl ="/business/ditopn?selsptinr="+row[0]; let viewurl = "/business/ditopn?selsptinr=" + row[0];
this.$router.push(viewurl); 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