Commit ebd3743b by liuxin

处理页面编译报错

parent 3fa2b201
import Api from "~/service/Api"
export default { export default {
onDitpButgetref(){ onDitpButgetref(){
this.$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("ditopn/ditp_butgetref",{data:this.model}) let rtnmsg = await Api.post("ditopn/ditp_butgetref",{data:this.model})
...@@ -16,7 +17,7 @@ export default { ...@@ -16,7 +17,7 @@ export default {
}) })
}, },
onAplpDet(){ onAplpDet(){
this.$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("ditopn/aplp_det",{data:this.model}) let rtnmsg = await Api.post("ditopn/aplp_det",{data:this.model})
...@@ -32,7 +33,7 @@ export default { ...@@ -32,7 +33,7 @@ export default {
}) })
}, },
onBenpDet(){ onBenpDet(){
this.$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("ditopn/benp_det",{data:this.model}) let rtnmsg = await Api.post("ditopn/benp_det",{data:this.model})
...@@ -48,7 +49,7 @@ export default { ...@@ -48,7 +49,7 @@ export default {
}) })
}, },
onRevclauseButtxmsel(){ onRevclauseButtxmsel(){
this.$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("ditopn/revclause_buttxmsel",{data:this.model}) let rtnmsg = await Api.post("ditopn/revclause_buttxmsel",{data:this.model})
...@@ -64,7 +65,7 @@ export default { ...@@ -64,7 +65,7 @@ export default {
}) })
}, },
onLcrgodButtxmsel(){ onLcrgodButtxmsel(){
this.$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("ditopn/lcrgod_buttxmsel",{data:this.model}) let rtnmsg = await Api.post("ditopn/lcrgod_buttxmsel",{data:this.model})
...@@ -80,7 +81,7 @@ export default { ...@@ -80,7 +81,7 @@ export default {
}) })
}, },
onLcrdocButtxmsel(){ onLcrdocButtxmsel(){
this.$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("ditopn/lcrdoc_buttxmsel",{data:this.model}) let rtnmsg = await Api.post("ditopn/lcrdoc_buttxmsel",{data:this.model})
...@@ -96,7 +97,7 @@ export default { ...@@ -96,7 +97,7 @@ export default {
}) })
}, },
onAdlcndButtxmsel(){ onAdlcndButtxmsel(){
this.$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("ditopn/adlcnd_buttxmsel",{data:this.model}) let rtnmsg = await Api.post("ditopn/adlcnd_buttxmsel",{data:this.model})
...@@ -112,7 +113,7 @@ export default { ...@@ -112,7 +113,7 @@ export default {
}) })
}, },
onInsbnkButtxmsel(){ onInsbnkButtxmsel(){
this.$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("ditopn/insbnk_buttxmsel",{data:this.model}) let rtnmsg = await Api.post("ditopn/insbnk_buttxmsel",{data:this.model})
...@@ -128,7 +129,7 @@ export default { ...@@ -128,7 +129,7 @@ export default {
}) })
}, },
onRmbpDet(){ onRmbpDet(){
this.$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("ditopn/rmbp_det",{data:this.model}) let rtnmsg = await Api.post("ditopn/rmbp_det",{data:this.model})
...@@ -144,7 +145,7 @@ export default { ...@@ -144,7 +145,7 @@ export default {
}) })
}, },
onDefdetButtxmsel(){ onDefdetButtxmsel(){
this.$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("ditopn/defdet_buttxmsel",{data:this.model}) let rtnmsg = await Api.post("ditopn/defdet_buttxmsel",{data:this.model})
...@@ -160,7 +161,7 @@ export default { ...@@ -160,7 +161,7 @@ export default {
}) })
}, },
onPreperButtxmsel(){ onPreperButtxmsel(){
this.$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("ditopn/preper_buttxmsel",{data:this.model}) let rtnmsg = await Api.post("ditopn/preper_buttxmsel",{data:this.model})
...@@ -176,7 +177,7 @@ export default { ...@@ -176,7 +177,7 @@ export default {
}) })
}, },
onSetmodDet(){ onSetmodDet(){
this.$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("ditopn/setmod_det",{data:this.model}) let rtnmsg = await Api.post("ditopn/setmod_det",{data:this.model})
...@@ -192,7 +193,7 @@ export default { ...@@ -192,7 +193,7 @@ export default {
}) })
}, },
onLiaallButmisamt(){ onLiaallButmisamt(){
this.$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("ditopn/liaall_butmisamt",{data:this.model}) let rtnmsg = await Api.post("ditopn/liaall_butmisamt",{data:this.model})
...@@ -208,7 +209,7 @@ export default { ...@@ -208,7 +209,7 @@ export default {
}) })
}, },
onLiaallButmissig(){ onLiaallButmissig(){
this.$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("ditopn/liaall_butmissig",{data:this.model}) let rtnmsg = await Api.post("ditopn/liaall_butmissig",{data:this.model})
...@@ -224,7 +225,7 @@ export default { ...@@ -224,7 +225,7 @@ export default {
}) })
}, },
onWrkpDet(){ onWrkpDet(){
this.$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("ditopn/wrkp_det",{data:this.model}) let rtnmsg = await Api.post("ditopn/wrkp_det",{data:this.model})
...@@ -240,7 +241,7 @@ export default { ...@@ -240,7 +241,7 @@ export default {
}) })
}, },
onOthpDet(){ onOthpDet(){
this.$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("ditopn/othp_det",{data:this.model}) let rtnmsg = await Api.post("ditopn/othp_det",{data:this.model})
...@@ -256,7 +257,7 @@ export default { ...@@ -256,7 +257,7 @@ export default {
}) })
}, },
onLimptsGet1(){ onLimptsGet1(){
this.$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("ditopn/limpts_get1",{data:this.model}) let rtnmsg = await Api.post("ditopn/limpts_get1",{data:this.model})
...@@ -272,7 +273,7 @@ export default { ...@@ -272,7 +273,7 @@ export default {
}) })
}, },
onLimptsGet2(){ onLimptsGet2(){
this.$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("ditopn/limpts_get2",{data:this.model}) let rtnmsg = await Api.post("ditopn/limpts_get2",{data:this.model})
...@@ -288,7 +289,7 @@ export default { ...@@ -288,7 +289,7 @@ export default {
}) })
}, },
onLimmodTrycal(){ onLimmodTrycal(){
this.$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("ditopn/limmod_trycal",{data:this.model}) let rtnmsg = await Api.post("ditopn/limmod_trycal",{data:this.model})
...@@ -304,7 +305,7 @@ export default { ...@@ -304,7 +305,7 @@ export default {
}) })
}, },
onLiaccvAdd(){ onLiaccvAdd(){
this.$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("ditopn/liaccv_add",{data:this.model}) let rtnmsg = await Api.post("ditopn/liaccv_add",{data:this.model})
...@@ -320,7 +321,7 @@ export default { ...@@ -320,7 +321,7 @@ export default {
}) })
}, },
onLiaccvDel(){ onLiaccvDel(){
this.$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("ditopn/liaccv_del",{data:this.model}) let rtnmsg = await Api.post("ditopn/liaccv_del",{data:this.model})
......
import Api from "~/service/Api"
export default { export default {
onUsfmodShwflt(){ onUsfmodShwflt(){
this.$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",{data:this.model}) let rtnmsg = await Api.post("sptsel/usfmod_shwflt",{data:this.model})
...@@ -16,7 +17,7 @@ export default { ...@@ -16,7 +17,7 @@ export default {
}) })
}, },
onButypt(){ onButypt(){
this.$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",{data:this.model}) let rtnmsg = await Api.post("sptsel/butypt",{data:this.model})
...@@ -32,7 +33,7 @@ export default { ...@@ -32,7 +33,7 @@ export default {
}) })
}, },
onDlmft(){ onDlmft(){
this.$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",{data:this.model}) let rtnmsg = await Api.post("sptsel/dlmft",{data:this.model})
...@@ -48,7 +49,7 @@ export default { ...@@ -48,7 +49,7 @@ export default {
}) })
}, },
onDlaxq(){ onDlaxq(){
this.$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",{data:this.model}) let rtnmsg = await Api.post("sptsel/dlaxq",{data:this.model})
...@@ -64,7 +65,7 @@ export default { ...@@ -64,7 +65,7 @@ export default {
}) })
}, },
onButimg(){ onButimg(){
this.$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",{data:this.model}) let rtnmsg = await Api.post("sptsel/butimg",{data:this.model})
......
import Api from "~/service/Api"
export default { export default {
onSeaown(){ onSeaown(){
this.$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("trnrel/seaown",{data:this.model}) let rtnmsg = await Api.post("trnrel/seaown",{data:this.model})
...@@ -16,7 +17,7 @@ export default { ...@@ -16,7 +17,7 @@ export default {
}) })
}, },
onSeajbh(){ onSeajbh(){
this.$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("trnrel/seajbh",{data:this.model}) let rtnmsg = await Api.post("trnrel/seajbh",{data:this.model})
...@@ -32,7 +33,7 @@ export default { ...@@ -32,7 +33,7 @@ export default {
}) })
}, },
onSeactr(){ onSeactr(){
this.$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("trnrel/seactr",{data:this.model}) let rtnmsg = await Api.post("trnrel/seactr",{data:this.model})
...@@ -48,7 +49,7 @@ export default { ...@@ -48,7 +49,7 @@ export default {
}) })
}, },
onSearow(){ onSearow(){
this.$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("trnrel/searow",{data:this.model}) let rtnmsg = await Api.post("trnrel/searow",{data:this.model})
...@@ -64,7 +65,7 @@ export default { ...@@ -64,7 +65,7 @@ export default {
}) })
}, },
onDsp(){ onDsp(){
this.$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("trnrel/dsp",{data:this.model}) let rtnmsg = await Api.post("trnrel/dsp",{data:this.model})
...@@ -80,7 +81,7 @@ export default { ...@@ -80,7 +81,7 @@ export default {
}) })
}, },
onImgmodNewimg(){ onImgmodNewimg(){
this.$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("trnrel/imgmod_newimg",{data:this.model}) let rtnmsg = await Api.post("trnrel/imgmod_newimg",{data:this.model})
...@@ -96,7 +97,7 @@ export default { ...@@ -96,7 +97,7 @@ export default {
}) })
}, },
onImgmodNewhisimg(){ onImgmodNewhisimg(){
this.$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("trnrel/imgmod_newhisimg",{data:this.model}) let rtnmsg = await Api.post("trnrel/imgmod_newhisimg",{data:this.model})
...@@ -112,7 +113,7 @@ export default { ...@@ -112,7 +113,7 @@ export default {
}) })
}, },
onDiaconButdia(){ onDiaconButdia(){
this.$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("trnrel/diacon_butdia",{data:this.model}) let rtnmsg = await Api.post("trnrel/diacon_butdia",{data:this.model})
...@@ -128,7 +129,7 @@ export default { ...@@ -128,7 +129,7 @@ export default {
}) })
}, },
onImgmodHisimg(){ onImgmodHisimg(){
this.$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("trnrel/imgmod_hisimg",{data:this.model}) let rtnmsg = await Api.post("trnrel/imgmod_hisimg",{data:this.model})
...@@ -144,7 +145,7 @@ export default { ...@@ -144,7 +145,7 @@ export default {
}) })
}, },
onRelrow(){ onRelrow(){
this.$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("trnrel/relrow",{data:this.model}) let rtnmsg = await Api.post("trnrel/relrow",{data:this.model})
...@@ -160,7 +161,7 @@ export default { ...@@ -160,7 +161,7 @@ export default {
}) })
}, },
onPrinte(){ onPrinte(){
this.$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("trnrel/printe",{data:this.model}) let rtnmsg = await Api.post("trnrel/printe",{data:this.model})
...@@ -176,7 +177,7 @@ export default { ...@@ -176,7 +177,7 @@ export default {
}) })
}, },
onReprow(){ onReprow(){
this.$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("trnrel/reprow",{data:this.model}) let rtnmsg = await Api.post("trnrel/reprow",{data:this.model})
...@@ -192,7 +193,7 @@ export default { ...@@ -192,7 +193,7 @@ export default {
}) })
}, },
onRejrow(){ onRejrow(){
this.$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("trnrel/rejrow",{data:this.model}) let rtnmsg = await Api.post("trnrel/rejrow",{data:this.model})
...@@ -208,7 +209,7 @@ export default { ...@@ -208,7 +209,7 @@ export default {
}) })
}, },
onRelcor(){ onRelcor(){
this.$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("trnrel/relcor",{data:this.model}) let rtnmsg = await Api.post("trnrel/relcor",{data:this.model})
...@@ -224,7 +225,7 @@ export default { ...@@ -224,7 +225,7 @@ export default {
}) })
}, },
onExi(){ onExi(){
this.$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("trnrel/exi",{data:this.model}) let rtnmsg = await Api.post("trnrel/exi",{data:this.model})
...@@ -240,7 +241,7 @@ export default { ...@@ -240,7 +241,7 @@ export default {
}) })
}, },
onRecpanDet(){ onRecpanDet(){
this.$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("trnrel/recpan_det",{data:this.model}) let rtnmsg = await Api.post("trnrel/recpan_det",{data:this.model})
...@@ -256,7 +257,7 @@ export default { ...@@ -256,7 +257,7 @@ export default {
}) })
}, },
onSyswrnButshw(){ onSyswrnButshw(){
this.$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("trnrel/syswrn_butshw",{data:this.model}) let rtnmsg = await Api.post("trnrel/syswrn_butshw",{data:this.model})
...@@ -272,7 +273,7 @@ export default { ...@@ -272,7 +273,7 @@ export default {
}) })
}, },
onRecpanNotmap(){ onRecpanNotmap(){
this.$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("trnrel/recpan_notmap",{data:this.model}) let rtnmsg = await Api.post("trnrel/recpan_notmap",{data:this.model})
...@@ -288,7 +289,7 @@ export default { ...@@ -288,7 +289,7 @@ export default {
}) })
}, },
onRecpanButspt(){ onRecpanButspt(){
this.$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("trnrel/recpan_butspt",{data:this.model}) let rtnmsg = await Api.post("trnrel/recpan_butspt",{data:this.model})
...@@ -304,7 +305,7 @@ export default { ...@@ -304,7 +305,7 @@ export default {
}) })
}, },
onRecpanInc(){ onRecpanInc(){
this.$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("trnrel/recpan_inc",{data:this.model}) let rtnmsg = await Api.post("trnrel/recpan_inc",{data:this.model})
...@@ -320,7 +321,7 @@ export default { ...@@ -320,7 +321,7 @@ export default {
}) })
}, },
onRecpanButord(){ onRecpanButord(){
this.$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("trnrel/recpan_butord",{data:this.model}) let rtnmsg = await Api.post("trnrel/recpan_butord",{data:this.model})
...@@ -336,7 +337,7 @@ export default { ...@@ -336,7 +337,7 @@ export default {
}) })
}, },
onImgmod1Image(){ onImgmod1Image(){
this.$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("trnrel/imgmod1_image",{data:this.model}) let rtnmsg = await Api.post("trnrel/imgmod1_image",{data:this.model})
...@@ -352,7 +353,7 @@ export default { ...@@ -352,7 +353,7 @@ export default {
}) })
}, },
onRecpanIncben(){ onRecpanIncben(){
this.$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("trnrel/recpan_incben",{data:this.model}) let rtnmsg = await Api.post("trnrel/recpan_incben",{data:this.model})
...@@ -368,7 +369,7 @@ export default { ...@@ -368,7 +369,7 @@ export default {
}) })
}, },
onInftxtButtxmsel(){ onInftxtButtxmsel(){
this.$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("trnrel/inftxt_buttxmsel",{data:this.model}) let rtnmsg = await Api.post("trnrel/inftxt_buttxmsel",{data:this.model})
......
...@@ -214,7 +214,7 @@ export default { ...@@ -214,7 +214,7 @@ export default {
}, },
submitForm (formName) { submitForm (formName) {
console.log(model.cpdgrp.rec.orcacc) console.log(this.model.cpdgrp.rec.orcacc)
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
// alert('submit!'); // alert('submit!');
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
--> -->
<el-col :span="8"> <el-col :span="8">
<el-form-item label="参考号"> <el-form-item label="参考号">
<c-input v-model="model.didgrp.rec.ownref" maxlength="16" placeholder="请输入Reference"></c-input> <c-input v-model="model.didgrp.rec.ownref" maxlength="16" placeholder="请输入Reference"></c-input>
...@@ -352,7 +351,6 @@ ...@@ -352,7 +351,6 @@
</c-select> </c-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</div> </div>
</template> </template>
......
...@@ -156,7 +156,6 @@ ...@@ -156,7 +156,6 @@
width:100 width:100
> >
</el-table-column> </el-table-column>
</el-table-column>
<el-table-column <el-table-column
label="Details" label="Details"
width:50 width:50
......
...@@ -147,7 +147,17 @@ export default { ...@@ -147,7 +147,17 @@ export default {
}, },
methods:{ methods:{
tabClick(){ tabClick(){
console.log("-----------------")
console.log(this.$refs)
console.log(this.$refs.modelForm)
this.$refs.modelForm.validate(valid => {
if (valid){
console.log(1)
}else{
console.log(0)
}
})
console.log("-----------------")
} }
}, },
created:async function(){ created:async function(){
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<el-container style="height:100%"> <el-container style="height:100%">
<el-main style="padding:0"> <el-main style="padding:0">
<el-tabs class="fulltab" v-model="todoActive" type="card" @tab-click="handleClick"> <el-tabs class="fulltab" v-model="todoActive" type="card" @tab-click="handleClick">
<el-tab-pane v-for="item in codes.todo" :key="item.value" :label="item.label" :name="item.value"> <el-tab-pane v-for="item in codes.todo" :key="item.value" :label="item.label" :name="item.value">
<s-todo :todoType="item.value"/> <s-todo :todoType="item.value"/>
</el-tab-pane> </el-tab-pane>
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
sortable sortable
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
findCodeLabel(codes.curtxt,scope.row.cur) findCodeLabel(codes.curtxt,scope.row.cur)
}}</span> }}</span>
</template> </template>
......
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