Просмотр исходного кода

养护-广西电子接口开放

Tony Kang 2 лет назад
Родитель
Сommit
c3379daed7

+ 1 - 1
web/building_saas/main/html/main.html

@@ -108,7 +108,7 @@
                       <div class="btn-group ml-2">
                           <a class="dropdown-toggle btn btn-light btn-sm" data-toggle="dropdown" href="#" id="moreMenuA" role="button" aria-haspopup="true" aria-expanded="false">更多</a>
                           <div class="dropdown-menu dropright" id="moreMenu">
-                            <% if((compilationName === '公路造价(2018)' || compilationName === '安徽养护(2018)' || compilationName === '广东公路造价(2018)' || compilationName === '浙江养护(2005)' || compilationName === '山东养护(2016)') && boqType) { %>
+                            <% if((compilationName === '公路造价(2018)' || compilationName === '安徽养护(2018)' || compilationName === '广东公路造价(2018)' || compilationName === '浙江养护(2005)' || compilationName === '山东养护(2016)') && boqType || compilationName === '广西养护(2020)') { %>
                                 <a class="dropdown-item" id="open-export-modal" href="javascript:void(0);"><i class="fa fa-code-fork"></i> 数据接口</a>
                                 <!-- <a class="dropdown-item" id="open-export-modal" href="javascript:void(0);" data-toggle="modal" data-target="#interface-export-modal"><i class="fa fa-code-fork"></i> 数据接口</a> -->
                             <% }%>

+ 5 - 1
web/building_saas/main/js/views/project_view.js

@@ -2506,7 +2506,11 @@ let displayLevel = function (nodes, depth, type) {
 
 // 数据接口
 $("#open-export-modal").click(() => {
-  $('#certifyDivForGX')[0].style.display = "none";
+  if (COMPILATION_NAME !== '广西养护(2020)') {
+    $('#certifyDivForGX')[0].style.display = "none";
+  } else {
+    $('#certifyDivForGX')[0].style.display = "";
+  }
   CommonHeader.doAfterValidateVersion(
     () => $("#interface-export-modal").modal("show"),
     () => alert(`${commonUtil.getVersionText()}不提供此功能。`)

+ 3 - 1
web/building_saas/standard_interface/index.js

@@ -43,7 +43,9 @@ const STD_INTERFACE = (() => {
       const areas = connectedArea.split('@');
       if ((COMPILATION_NAME === '安徽养护(2018)' && areas[0] !== '安徽') ||
         (COMPILATION_NAME === '广东公路造价(2018)' && areas[0] !== '广东') ||
-        (COMPILATION_NAME === '浙江养护(2005)' && areas[0] !== '浙江')) {
+        (COMPILATION_NAME === '浙江养护(2005)' && areas[0] !== '浙江') ||
+        (COMPILATION_NAME === '广西养护(2020)' && areas[0] !== '广西')
+        ) {
         return;
       }
       if (COMPILATION_NAME.includes('山东养护(2016)')) {