Browse Source

附件上传权限bug修复

laiguoran 4 năm trước cách đây
mục cha
commit
bf564b88ce
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 2 2
      app/view/ledger/explode.ejs
  2. 1 1
      app/view/tender/detail.ejs

+ 2 - 2
app/view/ledger/explode.ejs

@@ -170,7 +170,7 @@
                                   <a href="javascript:void(0);" id="bach-download" class="btn btn-sm btn-primary" type="curr">批量下载</a>
                                   <!--所有附件 翻页-->
                                   <span id="showPage" style="display: none"><a href="javascript:void(0);" class="page-select ml-3" content="pre"><i class="fa fa-chevron-left"></i></a> <span id="currentPage">1</span>/<span id="totalPage">10</span> <a href="javascript:void(0);" class="page-select mr-3" content="next"><i class="fa fa-chevron-right"></i></a></span>
-                                  <% if (!ctx.tender.isTourist) { %>
+                                  <% if (!ctx.tender.isTourist || (ctx.tender.isTourist && ctx.tender.touristPermission.file)) { %>
                                   <a href="#upload" data-toggle="modal" data-target="#upload"  class="btn btn-sm btn-outline-primary ml-3">上传</a>
                                   <% } %>
                               </li>
@@ -343,6 +343,6 @@
 <script>
     const accountList = JSON.parse('<%- JSON.stringify(accountList) %>');
     const accountGroup = JSON.parse('<%- JSON.stringify(accountGroup) %>');
-    
+
 </script>
 <% } %>

+ 1 - 1
app/view/tender/detail.ejs

@@ -1129,7 +1129,7 @@
     // 初始化地图,设置中心点坐标和地图级别
     map.centerAndZoom(point, 12);
     map.enableScrollWheelZoom(true);
-    // map.setMapStyleV2({styleJson: styleJson2});
+    map.setMapStyleV2({styleId: '20d4aea41cf71387395f2dc835f1c4b6'});
     // 画线
     var polyline = new BMapGL.Polyline([
         new BMapGL.Point(113.352, 22.166),