Tony Kang 10 月之前
父节点
当前提交
1636b60cdb
共有 2 个文件被更改,包括 51 次插入0 次删除
  1. 22 0
      web/building_saas/pm/html/project-management.html
  2. 29 0
      web/building_saas/pm/js/pm_newMain.js

+ 22 - 0
web/building_saas/pm/html/project-management.html

@@ -500,6 +500,28 @@
         </div>
     </div>
 </div>
+<!-- 停止新建(公路云) -->
+<div class="modal fade" id="stop-create-dialog-glyun" data-backdrop="static">
+    <div class="modal-dialog" role="document">
+        <div class="modal-content">
+            <div class="modal-header">
+                <h5 class="modal-title">提示</h5>
+                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
+                    <span aria-hidden="true">&times;</span>
+                </button>
+            </div>
+            <div class="modal-body">
+                <p style="margin-bottom: 0;">尊敬的用户:</p>
+                <p style="margin-bottom: 0; text-indent: 28px;">感谢您一直以来对纵横的信任和支持,纵横公路云造价免费版将于2025年5月1日停止服务,为了更好地坚守初心,持续为您提供高质量的产品与服务,纵横公路云造价已升级为<a href="https://dsk.smartcost.com.cn/">大司空云计价</a>。</p>
+                <div style="text-indent: 28px;" style="margin-bottom: 0;">
+                    <p style="margin-bottom: 0;">使用通行账号,继续免费使用正版计价软件。</p>
+                    <p style="margin-bottom: 0; color: red !important;">请点链接进入大司空云计价:<a style="color: red !important" href="https://dsk.smartcost.com.cn">https://dsk.smartcost.com.cn</a></p>
+                    <p style="margin-bottom: 0;">全国服务热线:0756-3850888,企业QQ:800003850</p>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
 <!--弹出重命名-->
 <div class="modal fade" id="rename-dialog" data-backdrop="static">
     <div class="modal-dialog" role="document">

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

@@ -58,6 +58,15 @@ function isStopCreate() {
   return !!(compilationData && names.includes(compilationData.name));
 }
 
+function isGlYunStopCreate() {
+  let rst = false;
+  const isGlYun = $('title').text().indexOf("纵横公路云造价") !== -1;
+  if (isFree && isGlYun) {
+    rst = true;
+  }
+  return rst;
+}
+
 //操作状态
 const STATE = {
   addingTender: false,
@@ -331,6 +340,8 @@ const projTreeObj = {
       callback: function (key, opt) {
         if (isStopCreate()) {
           $('#stop-create-dialog').modal('show');
+        } if (isGlYunStopCreate()) {
+          $('#stop-create-dialog-glyun').modal('show');
         } else {
           $('#add-project-dialog').modal('show');
         }
@@ -346,6 +357,9 @@ const projTreeObj = {
         if (isStopCreate()) {
           $('#stop-create-dialog').modal('show');
           return;
+        } if (isGlYunStopCreate()) {
+          $('#stop-create-dialog-glyun').modal('show');
+          return;
         }
         //弹出新建单位工程之前,判断当前使用版本,且当前使用单位工程数是否已到最大值
         let selectedItem = projTreeObj.tree.selected;
@@ -398,6 +412,9 @@ const projTreeObj = {
         if (isStopCreate()) {
           $('#stop-create-dialog').modal('show');
           return;
+        } if (isGlYunStopCreate()) {
+          $('#stop-create-dialog-glyun').modal('show');
+          return;
         }
         let selectedItem = projTreeObj.tree.selected;
         try {
@@ -427,6 +444,9 @@ const projTreeObj = {
         if (isStopCreate()) {
           $('#stop-create-dialog').modal('show');
           return;
+        } if (isGlYunStopCreate()) {
+          $('#stop-create-dialog-glyun').modal('show');
+          return;
         }
         $("#save-as-dialog").modal("show");
       },
@@ -566,6 +586,9 @@ const projTreeObj = {
         if (isStopCreate()) {
           $('#stop-create-dialog').modal('show');
           return;
+        } if (isGlYunStopCreate()) {
+          $('#stop-create-dialog-glyun').modal('show');
+          return;
         }
         $("#confirm-import").hide();
         $("#import").modal("show");
@@ -2607,6 +2630,9 @@ $(document).ready(function () {
     if (isStopCreate()) {
       $('#stop-create-dialog').modal('show');
       return false;
+    } if (isGlYunStopCreate()) {
+      $('#stop-create-dialog-glyun').modal('show');
+      return false;
     }
     const menuDisplay = !$("#addMenu").is(":visible");
     if (!menuDisplay) {
@@ -4271,6 +4297,9 @@ function AddTender() {
       if (isStopCreate()) {
         $('#stop-create-dialog').modal('show');
         return;
+      } if (isGlYunStopCreate()) {
+        $('#stop-create-dialog-glyun').modal('show');
+        return;
       }
     }
     $.bootstrapLoading.start();