tianwu.sun 2 miesięcy temu
rodzic
commit
29469ad6b2

Plik diff jest za duży
+ 1300 - 2255
log/cic-data-reportin.out


+ 3 - 3
src/main/java/com/bootdo/datas/controller/DataController.java

@@ -54,13 +54,13 @@ public class DataController {
 
     @GetMapping("dataInfo")
     @RequiresPermissions("datas:data:data")
-    String dataInfo(String type, String status, String provinceName, Model model) {
+    String dataInfo(String type, String status, String cityName, Model model) {
         log.info("dataLevel:" + type);
         log.info("dataStatus:" + status);
-        log.info("provinceName:" + provinceName);
+        log.info("cityName:" + cityName);
         model.addAttribute("dataLevel", type);
         model.addAttribute("dataStatus", status);
-        model.addAttribute("provinceName", provinceName);
+        model.addAttribute("cityName", cityName);
         return "datas/data/dataInfo";
     }
 

+ 2 - 2
src/main/resources/static/js/appjs/datas/data/dataInfo.js

@@ -73,7 +73,7 @@ function loadProvince2() {
                 }
                 // $('#exampleTable').bootstrapTable('refresh', opt);
             });
-            // 当为全国地图跳转时 禁用省份下拉框
+            // 当为省级地图跳转时 禁用省份下拉框
             if ($('#provinceName').val() != '') {
                 $('#unitProvince').prop('disabled', true).trigger("chosen:updated");
             }
@@ -209,7 +209,7 @@ function load() {
                         dataIndustry: $('#dataIndustry').val(),
                         industryTypeOne: $('#industryTypeOne').val(),
                         unitProvince: $('#unitProvince').val() == '' ? $('#provinceName').val() : $('#unitProvince').val(),
-                        unitCity: $('#unitCity').val(), //市区
+                        unitCity: $('#unitCity').val()=='' ? $('#cityName').val() : $('#unitCity').val(), //市区
                         reporterUnit: $('#reporterUnit').val(),
                         dataLevel: $('#dataLevel').val(),
                         dataStatus: $('#dataStatus').val(),

+ 2 - 2
src/main/resources/static/js/demo/echarts-demo.js

@@ -644,8 +644,8 @@ function mapChart(province) {
                     }
                     // 打开新table
                     console.log(currentCityName);
-                    if (currentCityName != '' && currentCityName != 'undefined') {
-                        page('/datas/data/dataInfo?cityName=' + currentCityName
+                    if (oldCityName !== '' && oldCityName !== 'undefined') {
+                        page('/datas/data/dataInfo?cityName=' + oldCityName
                             , oldCityName + '数据', '1', '省份数据');
                     }
                 }

+ 1 - 1
src/main/resources/templates/datas/data/dataInfo.html

@@ -10,7 +10,7 @@
                 <div class="fixed-table-toolbar">
                     <input id="dataLevels" name="dataLevels" th:value="${dataLevel}" type="hidden"/>
                     <input id="dataStatus" name="dataStatus" th:value="${dataStatus}" type="hidden"/>
-                    <input id="provinceName" name="provinceName" th:value="${provinceName}" type="hidden"/>
+                    <input id="cityName" name="cityName" th:value="${cityName}" type="hidden"/>
                     <div class="columns pull-left">
                         <button shiro:hasPermission="datas:data:batchRemove" type="button" class="btn  btn-danger"
                                 onclick="batchRemove()">