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语言文法
    201506110097-试验一实验报告
    作业9.30
    组合数据类型练习,综合练习
    Python综合基础练习
    linux基本命令
    试述大数据对思维方式的重要影响
    语法分析
    有限自动机的构造与识别
  • 原文地址:https://www.cnblogs.com/CESC4/p/7777028.html
Copyright © 2011-2022 走看看