Explorar el Código

广西接口调整

Tony Kang hace 2 años
padre
commit
97a9c6554b

+ 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 || compilationName === '广西养护(2020)') { %>
+                            <% if((compilationName === '公路造价(2018)' || compilationName === '安徽养护(2018)' || compilationName === '广东公路造价(2018)' || compilationName === '浙江养护(2005)' || compilationName === '山东养护(2016)' || compilationName === '广西养护(2020)') && boqType) { %>
                                 <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> -->
                             <% }%>

+ 1 - 1
web/building_saas/pm/js/pm_newMain.js

@@ -338,7 +338,7 @@ const projTreeObj = {
             name: '导入接口文件',
             icon: 'fa-cloud-upload',
             visible: function () {
-                const names = ['公路造价(2018)', '安徽养护(2018)', '广东公路造价(2018)', '浙江养护(2005)', '山东养护(2016)'];
+                const names = ['公路造价(2018)', '安徽养护(2018)', '广东公路造价(2018)', '浙江养护(2005)', '山东养护(2016)', '广西养护(2020)'];
                 return compilationData && names.includes(compilationData.name);
             },
             callback: function () {