Commit ed7865a9 by 1377875331@qq.com

动态pattern

parent 3ec18176
...@@ -231,6 +231,20 @@ export default { ...@@ -231,6 +231,20 @@ export default {
{ {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
},
computed:{
flg(){
return this.model.didgrp.rec.elcflg
}
},
watch:{
flg(){
this.pattern["didgrp.avb.pts.bankno"][0].required = this.model.didgrp.rec.elcflg == "Y";
console.log(this.pattern["didgrp.avb.pts.bankno"][0].required);
},
} }
} }
</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