本文主要是介绍【二开】jeecgboot 前端js在线增强,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
【二开】jeecgboot 前端js在线增强
onlChange(){return {ai_excess_enable(){//ai_excess_enable字段改变时触发if(event.value == 'Y'){//展示对应的字段that.sh.ai_excess_interval = truethat.sh.ai_excess_hc_num = true//修改字段的标签document.querySelector('[for="ai_excess_interval"]').innerHTML = '每隔X分钟'//修改输入框的提示语document.getElementById('ai_excess_interval').placeholder = '请输入间隔分钟'document.querySelector('[for="ai_excess_hc_num"]').innerHTML = '多回传X个'document.getElementById('ai_excess_hc_num').placeholder = '请输入多回传数量'}else{//隐藏这两个字段that.sh.ai_excess_interval = falsethat.sh.ai_excess_hc_num = false}},loaded (){//表单加载//当页面渲染完成,并且表单数据赋值后,触发loaded事件,此时可以设置表单的默认值或是修改已有的值that.$nextTick(() => {//改变一下该字段, 触发该字段的onlChange事件let ai_excess_enable = that.form.getFieldValue("ai_excess_enable")that.form.setFieldsValue({"ai_excess_enable":ai_excess_enable});}
这篇关于【二开】jeecgboot 前端js在线增强的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!