Commit 2c4d8c8c by liuxin

js文件调整

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