Commit 2c4d8c8c by liuxin

js文件调整

parent d811d516
import Api from "~/service/Api"
import Utils from "~/utils/index"
export default {
onUsfmodShwflt(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("sptsel/usfmod_shwflt",Utils.flatObject(this.model))
if(rtnmsg.respCode == "AAAAAA")
{
//TODO 处理数据逻辑
onUsfmodShwflt() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if (!valid)
return;
let rtnmsg = await Api.post("sptsel/usfmod_shwflt", Utils.flatObject(this.model))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onButypt(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("sptsel/butypt",Utils.flatObject(this.model))
if(rtnmsg.respCode == "AAAAAA")
{
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
})
},
onButypt() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if (!valid)
return;
let rtnmsg = await Api.post("sptsel/butypt", Utils.flatObject(this.model))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onDlmft(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("sptsel/dlmft",Utils.flatObject(this.model))
if(rtnmsg.respCode == "AAAAAA")
{
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
})
},
onDlmft() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if (!valid)
return;
let rtnmsg = await Api.post("sptsel/dlmft", Utils.flatObject(this.model))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onDlaxq(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("sptsel/dlaxq",Utils.flatObject(this.model))
if(rtnmsg.respCode == "AAAAAA")
{
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
})
},
onDlaxq() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if (!valid)
return;
let rtnmsg = await Api.post("sptsel/dlaxq", Utils.flatObject(this.model))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
onButimg(){
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if(!valid)
return;
let rtnmsg = await Api.post("sptsel/butimg",Utils.flatObject(this.model))
if(rtnmsg.respCode == "AAAAAA")
{
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
})
},
onButimg() {
this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
if (!valid)
return;
let rtnmsg = await Api.post("sptsel/butimg", Utils.flatObject(this.model))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
})
},
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
})
},
tabClick() {
},
}
\ No newline at end of file
......@@ -15,6 +15,7 @@ import CodeTable from "~/config/CodeTable"
import Sptsel from "~/Model/Sptsel"
import CommonProcess from "~/mixin/CommonProcess.js"
import Pattern from "~/Model/Sptsel/Pattern"
import Utils from "~/utils/index"
import Default from "~/model/Sptsel/Default";
import Check from "~/model/Sptsel/Check";
import Menu from "./Menu"
......@@ -37,17 +38,17 @@ export default {
rules:null,
codes:{
},
declareParams:{"fileName":"sptsel.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/sptsel/init"},
}
},
methods:{...Event},
mounted:async function(){
console.log("进入sptsel交易");
let rtnmsg = await Api.post("sptsel/init",{params:{}})
if(rtnmsg.respCode == SUCCESS)
let rtnmsg = await Api.post("sptsel/init",Utils.flatObject(this.model))
if(rtnmsg.respCode == "AAAAAA")
{
//TODO 处理数据逻辑
//this.model = Utils.copyValueFromVO(this.model, rtnmsg.data)
//console.log(this.model)
}
else
{
......
......@@ -53,9 +53,7 @@ export default {
pattern: Pattern,
rules: null,
codes: {
},
declareParams:{"fileName":"trnrel.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/trnrel/init"},
},
}
},
methods:{
......
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