zoukankan      html  css  js  c++  java
  • 【easyui】combobox datebox

    <input id="msg_type" name="area_msg_type" data-options="100,prompt: '预警类型'"/>
    <input id="warning_date_start" name="warning_date_start" type="text" class="easyui-datebox"
    data-options="100,prompt: '起始时间'">
    ~
    <input id="warning_date_end" name="warning_date_end" type="text" class="easyui-datebox"
    data-options="100,prompt: '结束时间'">
    var warningType = [
    {'id': 1, 'value': '大角度转向预警'},
    {'id': 2, 'value': '速度异常预警'},
    {'id': 3, 'value': '信号丢失预警'},
    {'id': 4, 'value': '抵港多级预警'},
    {'id': 5, 'value': '船舶防撞预警'},
    {'id': 6, 'value': '重点水域预警'}
    ];

    $('#msg_type').combobox({
    data: warningType,
    valueField: 'id',
    textField: 'value',
    onSelect: function (e) {
    searchByInput();
    }
    });

    function reset() {
    $("#area_name").val('');
    $('#msg_type').combobox('setValue', '');
    $("#warning_date_start").datebox('setValue', '');
    $("#warning_date_end").datebox('setValue', '');
    searchByInput();
    }

    <if test="warning_date_start!=null and warning_date_start!=''">
    and msg_date &gt;#{warning_date_start}
    </if>
    <if test="warning_date_end!=null and warning_date_end!=''">
    and msg_date &lt;#{warning_date_end}
    </if>
  • 相关阅读:
    动态规划例题
    c++ 进制转换函数
    约瑟夫问题
    set的基本使用
    stl中的二分查找
    1.生成的接口返回参数不包括系统自带的参数
    查看被锁定的表,并解锁
    添加、修改表中的字段
    NPOI简单示例2—合并表头
    NPOI简单示例
  • 原文地址:https://www.cnblogs.com/CESC4/p/7777028.html
Copyright © 2011-2022 走看看