wr1207
2023-10-17 e4b02462b2718be6ae677385ca90328e45a61a4d
增加查询等待的提示,查询时禁用其它相关操作
2个文件已修改
26 ■■■■■ 已修改文件
mobile/js/widget_search_view.js 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
mobile/road_search.html 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
mobile/js/widget_search_view.js
@@ -1,4 +1,4 @@
'use script'; //开发环境建议开启严格模式
use script'; //开发环境建议开启严格模式
var current_selected_monitor_type = "1002";
var current_selected_monitor_name = "微站";
@@ -107,6 +107,18 @@
        $("#newname_a").html('名称');
    }
    options.forEach(element => $("#qindex_selection").append("<option value='" + element + "'>" + element + "</option>"));
    $("#qindex_selection").find("option[value=pm25]").text("PM₂.₅");
        $("#qindex_selection").find("option[value=pm10]").text("PM₁₀");
        $("#qindex_selection").find("option[value=no]").text("NO");
        $("#qindex_selection").find("option[value=nox]").text("NOₓ");
        $("#qindex_selection").find("option[value=no2]").text("NO₂");
        $("#qindex_selection").find("option[value=co]").text("CO");
        $("#qindex_selection").find("option[value=so2]").text("SO₂");
        $("#qindex_selection").find("option[value=o3]").text("O₃");
        $("#qindex_selection").find("option[value=o31]").text("O₃₁");
        $("#qindex_selection").find("option[value=o38]").text("O₃₈");
        $("#qindex_selection").find("option[value=aqi]").text("AQI");
        $("#qindex_selection").find("option[value=tsp]").text("TSP");
}
function reloadData(page) {
@@ -145,6 +157,11 @@
        },
        success: function (data) {
            tableData = data.data.result;
            // if (current_selected_monitor_keyword == null) {
            //     // haoutil.msg("请输入关键字!!!")
            //     alert('请输入关键字!!!')
            //     return;
            // }
            if (tableData == null) {
                // haoutil.msg("请选择查询类别!!!")
                alert('请选择查询类别!!!')
mobile/road_search.html
@@ -151,7 +151,7 @@
                <thead>
                    <tr style="background:#304b80; color: #fff;">
                        <th width="50">序号</th>
                        <th width="80">
                        <th width="90">
                            <select id="regionSelect" style="width: 100%; background: #304b80; border: none;">
                                <option value="">上海市</option>
                                <option value="黄浦区">黄浦区</option>
@@ -172,8 +172,8 @@
                                <option value="普陀区">普陀区</option>
                            </select>
                        </th>
                        <th style="width: calc(100% - 212px); overflow: hidden; text-overflow: ellipsis;" id="newname_a">名称</th>
                        <th width="80"><select style="width: 100%; background: #304b80; border: none;" id="qindex_selection"></select></th>
                        <th style="width: calc(100% - 232px); overflow: hidden; text-overflow: ellipsis;" id="newname_a">名称</th>
                        <th width="90"><select style="width: 100%; background: #304b80; border: none;" id="qindex_selection"></select></th>
                    </tr>
                </thead>
                <tbody class="am-u-sm-12" id="searchInfo" style="cursor: pointer;">
@@ -189,6 +189,7 @@
        </div>
    </div>
    <script type="text/javascript" src="js/widget_search_view.js"></script>
    <!--道路查询 结束-->
</body>