Commit 34ca8356 by WH

brtdck

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