Browse Source

fix:数据导出订单详情地区展示补充处理

zhangsiya 1 year ago
parent
commit
750d36d014
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/web/templates/pc/orderDetail.html

+ 3 - 2
src/web/templates/pc/orderDetail.html

@@ -279,7 +279,6 @@
         if (filter) {
             var publishtime = filter["publishtime"];
             var region = filter["region"];
-            var scope = filter['scope'];
             var area = filter["area"];
             var city = filter["city"];
             var district = filter["district"]
@@ -301,7 +300,9 @@
                 }
             }
             var regionHtml = "";
-            if (!area && !city && !district && !scope) {
+            if (!area && !city && !district && !region) {
+              regionHtml += "<span>全国</span>";
+            } else if(area && city && district && region &&  area.length === 0 && city.length === 0 && district.length === 0 && region.length === 0) {
               regionHtml += "<span>全国</span>";
             } else {
               if (area && area.length > 0) {