Commit 34ca8356 by WH

brtdck

parent e55e57f2
...@@ -568,64 +568,60 @@ export default { ...@@ -568,64 +568,60 @@ export default {
mixins: [event], mixins: [event],
data() { data() {
return { return {
flag: true, flag:true,
flag2: true, flag2:true,
flag3: true, flag3:true,
flag4: true, flag4:true,
}; };
}, },
watch: { watch:{
"model.brdgrp.rec.docprbrol": function () { "model.brdgrp.rec.docprbrol":function(){
if (this.model.brdgrp.rec.docprbrol == 'ADV') { if(this.model.brdgrp.rec.docprbrol=='ADV'){
this.flag = true; this.flag=true;
} else if (this.model.brdgrp.rec.docprbrol == 'BEN') { }
this.flag = true; else if(this.model.brdgrp.rec.docprbrol=='BEN'){
} else if (this.model.brdgrp.rec.docprbrol == 'PRB') { this.flag=true;
this.flag = false; }
else if(this.model.brdgrp.rec.docprbrol=='PRB'){
this.flag=false;
} }
}, },
"model.brdgrp.prb.pts.extkey": { "model.brdgrp.prb.pts.extkey" :{
immediate: true, immediate:true,
handler(val, oldVal) { handler(val ,oldVal){
if (this.model.brdgrp.prb.pts.extkey != '') { if(this.model.brdgrp.prb.pts.extkey!=''){
this.flag2 = true; this.flag2=true;
} else { }else{
this.flag2 = false; this.flag2=false;
} }
} }
}, },
"model.brdgrp.rec.payrol": function () { "model.brdgrp.rec.payrol":function(){
if (this.model.brdgrp.rec.payrol == 'APL') { if(this.model.brdgrp.rec.payrol=='APL'){
this.flag4 = true; this.flag4=true;
} else if (this.model.brdgrp.rec.payrol == 'OTH') { }
this.flag4 = false; else if(this.model.brdgrp.rec.payrol=='OTH'){
this.flag4=false;
} }
}, },
"model.brtp.oth.pts.extkey": { "model.brtp.oth.pts.extkey" :{
immediate: true, immediate:true,
handler(val, oldVal) { handler(val ,oldVal){
if (this.model.brtp.oth.pts.extkey != '') { if(this.model.brtp.oth.pts.extkey!=''){
this.flag3 = true; this.flag3=true;
} else { }else{
this.flag3 = false; this.flag3=false;
} }
} }
}, },
}, },
methods: {}, methods: { },
created: function () { created: function () {},
},
computed: {
opn2cur() {
this.model.brdgrp.cbs.opn2.cur = this.model.brdgrp.cbs.max.cur
return this.model.brdgrp.cbs.opn2.cur
}
}
}; };
</script> </script>
......
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