首页 > 其他分享 >jeesite #form中获取控件的值,以绑定的treeselect为例

jeesite #form中获取控件的值,以绑定的treeselect为例

时间:2023-04-05 23:37:12浏览次数:34  
标签:控件 form 为例 jeesite 绑定 treeselect

绑定部分代码:

<div class="form-group">
                    <#form:form id="searchForm" model="${iotDevice}" action="${ctx}/iot/iotItem/listGroupData" method="post" class="form-inline "
                    data-page-no="${parameter.pageNo}" data-page-size="${parameter.pageSize}" data-order-by="${parameter.orderBy}">
                    <div class="form-group">
                        <label class="control-label" title="">${text('设备分组')}:</label>
                        <div class="control-inline">
                            <#form:treeselect id="parent" title="${text('设备分组')}"
                            path="groupCode" labelPath="groupName"
                            url="${ctx}/iot/iotGroup/treeData"
                            allowClear="true" canSelectRoot="false" canSelectParent="false" />
                        </div>
                    </div>
                    <div class="form-group">
                        <button type="button" onclick="$('#dataGridItem').dataGrid('reloadGrid');initConfigGroup();" class="btn btn-primary btn-sm">查询</button>
                    </div>
                    </div>

选择了设备分组后,js需要获取选中的值,方法如下:

 console.log($("#parentName")[0].value);

 

标签:控件,form,为例,jeesite,绑定,treeselect
From: https://www.cnblogs.com/lingmin/p/17291284.html

相关文章

  • jeesite 给绑定的控件赋值
    如果事件已绑定模型,即设置了path=’XXX‘,则给控件赋值是无效的,<divclass="col-sm-10"><#form:textareapath="remarks"rows="4"maxlength="500"class="form-control"/>......
  • QHBoxLayout清空子控件
    QHBoxLayout清空子控件layout=QHBoxLayout()widget1=QLabel("Widget1")widget2=QLabel("Widget2")widget3=QLabel("Widget3")layout.addWidget(widget1)layout.addWidget(widget2)layout.addWidget(widget3)#removewidget2f......
  • esp32c3 使用 platformio 开发墨水屏简介
    这个教程是提供给购买了我esp32c3墨水屏开发板的朋友看的,也适用于esp32c3驱动墨水屏的项目。安装platformio开发环境这里就不赘述了,安装过程中如果下载很慢,看我的博客中有解决的方案。新建项目这里注意要选择EspressifESP32-C3-DevKitM-1这个Board,这个适用于合宙......
  • SMARTFORMS文本编辑器打不开_解决方法
    SAPGUI740750解决Smartforms文本打不开的问题SCRIPTFORM补丁直接安装后即可正常打开formdesigner界面主要解决:禁用WORD编辑器之后,SMARTFORMS文本编辑器打不开显示空白的情况!http://www.coder100.com/index/index/content/id/1345452......
  • pytorch中的transforms.ToTensor和transforms.Normalize理解
     ......
  • B. Nastya Studies Informatics
    B.NastyaStudiesInformaticstimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTodayonInformaticsclassNastyalearnedaboutGCDandLCM(seelinksbelow).Nastyaisveryintelligent,soshesolvedall......
  • Python platform模块获取操作系统信息
    一、概述1、python中,platform模块给我们提供了很多方法去获取操作系统的信息importplatformprint(platform.platform())#获取操作系统名称和版本号:macOS-10.14.6-x86_64-i386-64bitprint(platform.system())#获取操作系统:Darwinprint(platform.version())#获取计算机操作......
  • INFS3202 Web Information Systems
    SchoolofInformationTechnology&ElectricalEngineeringINFS3202/7202WebInformationSystems1of4INFS3202/7202WebInformationSystemsINFS3202/INFS7202WebInformationSystemsIn-classQuiz1:Thefollowingconditionsapplytothequiz:•Thequizco......
  • Winform/Caharp中使用HttpClient时添加请求头以及响应文件流实现文件下载
    场景Winform中怎样使用HttpClient调用http的get和post接口并将接口返回json数据解析为实体类:https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/124157296在上面使用HttpClient调用get以及post接口的基础上,如何在请求接口时添加请求头,比如接口需要鉴权,获取token之后......
  • Linux服务器部署前后端项目-SQL Father为例
    Linux服务器部署前后端项目-SQLFather为例项目介绍项目的Github地址:https://github.com/liyupi/sql-father-frontend-public1.下载前后端项目到本地我这里使用Gitclone,也可以直接下载压缩包。gitclonehttps://github.com/liyupi/sql-father-frontend-public.git2......