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>
  • 相关阅读:
    CSUOJ 1525 Algebraic Teamwork
    CSUOJ 1531 Jewelry Exhibition
    CSUOJ 1532 JuQueen
    POJ 2195 Going Home
    hiho week 37 P1 : 二分·二分查找之k小数
    POJ 2186 Popular Cows
    ZOJ 2532 Internship
    RQNOJ PID496/[IOI1999]花店橱窗布置
    POJ 3026 Borg Maze
    laravel框架总结(五) -- 服务提供者(提及契约Contracts)
  • 原文地址:https://www.cnblogs.com/CESC4/p/7777028.html
Copyright © 2011-2022 走看看