hdw
2018-11-01 d45d08d36896d96e12f3bd4fb283c523dff52eb5
添加自动下拉选择
2个文件已修改
18 ■■■■■ 已修改文件
gx_tieta/WebRoot/js/createTab.js 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
gx_tieta/WebRoot/powercut.jsp 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
gx_tieta/WebRoot/js/createTab.js
@@ -409,6 +409,7 @@
    for(var i=0; i<optList.length; i++) {
        var _data = optList[i];
        var _option = $('<option value="'+_data.val+'">'+_data.txt+'</option>');
        _option.attr('selected', _data.selected);
        _option.data('attr', _data.data);
        
        Object.keys(_data.attr).forEach(function(key) {
@@ -420,12 +421,13 @@
}
// 获取生成下拉列表的数据
function getOptionsData(txt, val, data, attr) {
function getOptionsData(txt, val, data, attr, isSelected) {
    var _tmp = {};
    _tmp.txt = txt;
    _tmp.val = val;
    _tmp.attr = attr || {};
    _tmp.data = data || {};
    _tmp.selected = isSelected?true:false;
    return _tmp;
}
gx_tieta/WebRoot/powercut.jsp
@@ -8,20 +8,20 @@
<html>
  <head>
    <base href="<%=basePath%>">
    <title><s:text name="Station_powercut_query"/></title>                <!-- 机房停电查询 -->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="css/basic.css" rel="stylesheet">
    <link rel="stylesheet" href="css/BrdwMaint.css">
    <link rel="stylesheet" type="text/css" href="css/loading.css">
    <link rel="stylesheet" href="css/nocontent.css">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <title><s:text name="Station_powercut_query"/></title>                <!-- 机房停电查询 -->
    <link href="css/basic.css" rel="stylesheet">
    <link rel="stylesheet" href="css/BrdwMaint.css">
    <link rel="stylesheet" type="text/css" href="css/loading.css">
    <link rel="stylesheet" href="css/nocontent.css">
    <link href="src/css/layui.css" type="text/css" rel="stylesheet">
    <style type="text/css">
       body {
           overflow-x: hidden !important;