Procházet zdrojové kódy

feat: 学习版,提供右键“拷贝”,但提示“此功能仅在专业版中提供,免费公用版可选择单个分段进行拷贝。 联系客服 关闭”

vian před 5 roky
rodič
revize
09ddca6eca

+ 5 - 1
public/scHintBox.html

@@ -178,7 +178,11 @@
             const btnType = hintBox.btnType.yesNo;
             const doYes = () => {
                 $("#hintBox_form").modal('hide');
-                CommonHeader.getCategoryList();
+                if (COMPILATION_NAME === '公路造价(2018)') {
+                    window.open('https://smartcost.com.cn/contact2');                    
+                } else {
+                    CommonHeader.getCategoryList();
+                }
             };
             const doNo = () => $("#hintBox_form").modal('hide');
             const btnTextArr = ['联系客服', '关闭'];

+ 13 - 13
web/building_saas/pm/js/pm_share.js

@@ -791,19 +791,19 @@ const pmShare = (function () {
                     }
                 },
                 "copyProject": {
-                  name: "拷贝建设项目",
-                  icon: 'fa-copy',
-                  disabled: function () {
-                      let selected = tree.selected;
-                      return !(selected && selected.data.allowCopy && selected.data.projType === projectType.project);
-                  },
-                  callback: function (key, opt) {
-                      /* if($(".p-title").text().includes('学习')){
-                        hintBox.versionBox('此功能仅在专业版中提供,学习版可选择单个分段进行拷贝。');
-                        return;
-                      } */
-                      copyContructionProject(tree.selected);
-                  }
+                    name: "拷贝建设项目",
+                    icon: 'fa-copy',
+                    disabled: function () {
+                        let selected = tree.selected;
+                        return !(selected && selected.data.allowCopy && selected.data.projType === projectType.project);
+                    },
+                    callback: function (key, opt) {
+                        if ($(".p-title").text().includes('学习')) {
+                            hintBox.versionBox('此功能仅在专业版中提供,学习版可选择单个分段进行拷贝。');
+                            return;
+                        }
+                        copyContructionProject(tree.selected);
+                    }
                 },
                 "cancel": {
                     name: "清除",

+ 3 - 0
web/common/html/header.html

@@ -1,3 +1,6 @@
+<script>
+    const COMPILATION_NAME = '<%= compilationName %>';
+</script>
 <img id="f_btn" src="/web/dest/css/img/feeRate_btn.jpg" alt="" style="display: none" />
 <% if(typeof socketPort != 'undefined'){ %>
 <input id="socketPort" value="<%= socketPort %>" type="hidden">