Преглед изворни кода

feat:全国公路增加“导入接口”右键

vian пре 5 година
родитељ
комит
54f1e27278
1 измењених фајлова са 12 додато и 0 уклоњено
  1. 12 0
      web/building_saas/pm/js/pm_newMain.js

+ 12 - 0
web/building_saas/pm/js/pm_newMain.js

@@ -333,6 +333,17 @@ const projTreeObj = {
                 }
             }
         },
+        importInterface: {
+            name: '导入接口文件',
+            icon: 'fa-cloud-upload',
+            visible: function () {
+                const names = ['全国公路(2018)'];
+                return compilationData && names.includes(compilationData.name);
+            },
+            callback: function () {
+                $('#interface-import-modal').modal('show');
+            }
+        },
         manageFiles: {
             name: "管理相关文件",
             icon: 'fa-list',
@@ -441,6 +452,7 @@ const projTreeObj = {
                 "saveAs": me.contextMenuItems.saveAs,
                 "spr2": '--------',
                 "share": me.contextMenuItems.share,
+                "importInterface": me.contextMenuItems.importInterface,
                 "spr3": '--------',
                 "manageFiles": me.contextMenuItems.manageFiles,
                 "refreshSummary": me.contextMenuItems.refreshSummary,