configuration changes for dependent field
This commit is contained in:
parent
27d6e8894c
commit
f61554c5a6
|
|
@ -422,8 +422,8 @@
|
|||
|
||||
data: function() {
|
||||
return {
|
||||
isVisible: false,
|
||||
isRequire: false,
|
||||
isVisible: false,
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -443,19 +443,27 @@
|
|||
depandValue = 0;
|
||||
}
|
||||
|
||||
$("select.control").change(function() {
|
||||
if (dependentElement.value == depandValue) {
|
||||
this_this.isVisible = true;
|
||||
} else {
|
||||
this_this.isVisible = false;
|
||||
}
|
||||
$(document).ready(function(){
|
||||
$(document).on("change", "select.control", function() {
|
||||
if (this_this.depand == this.name) {
|
||||
if (this_this.value == this.value) {
|
||||
this_this.isVisible = true;
|
||||
} else {
|
||||
this_this.isVisible = false;
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
if (dependentElement.value == depandValue) {
|
||||
if (dependentElement && dependentElement.value == depandValue) {
|
||||
this_this.isVisible = true;
|
||||
} else {
|
||||
this_this.isVisible = false;
|
||||
}
|
||||
|
||||
if (this_this.result) {
|
||||
this_this.isVisible = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue