ソースを参照

feat: 开放浙江养护接口

vian 4 年 前
コミット
e01b996b06

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

@@ -113,7 +113,7 @@
                               </div>
                               <!--<a href="javascript:void(0);" id="ZLFB_btn" class="dropdown-item" data-placement="bottom"><i class="fa fa-retweet" aria-hidden="true"></i> 整理分部</a>
                                 <a id="switchTznr" href="javascript:void(0);"  class="dropdown-item"><i class="fa fa-eye" aria-hidden="true"></i> 显示特征</a>-->
-                            <% if((compilationName === '公路造价(2018)' || compilationName === '安徽养护(2018)' || compilationName === '广东公路造价(2018)') && boqType) { %>
+                            <% if((compilationName === '公路造价(2018)' || compilationName === '安徽养护(2018)' || compilationName === '广东公路造价(2018)' || compilationName === '浙江养护(2005)') && 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)'];
+                const names = ['公路造价(2018)', '安徽养护(2018)', '广东公路造价(2018)', '浙江养护(2005)'];
                 return compilationData && names.includes(compilationData.name);
             },
             callback: function () {

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

@@ -42,7 +42,8 @@ const STD_INTERFACE = (() => {
     connectedAreas.forEach(connectedArea => {
       const areas = connectedArea.split('@');
       if ((COMPILATION_NAME === '安徽养护(2018)' && areas[0] !== '安徽') ||
-        (COMPILATION_NAME === '广东公路造价(2018)' && areas[0] !== '广东')) {
+        (COMPILATION_NAME === '广东公路造价(2018)' && areas[0] !== '广东') ||
+        (COMPILATION_NAME === '浙江养护(2005)' && areas[0] !== '浙江')) {
         return;
       }
       (parentMap[areas[0]] || (parentMap[areas[0]] = [])).push(areas[1]);