Просмотр исходного кода

1.项目管理界面,“批量替换单价文件”和“批量替换费率文件”的工程列表列显示不全
2.专业版viplogo、去掉底色

vian 5 лет назад
Родитель
Сommit
f56bde5db2
3 измененных файлов с 420 добавлено и 418 удалено
  1. 415 415
      web/building_saas/css/main.css
  2. 3 1
      web/building_saas/pm/js/pm_newMain.js
  3. 2 2
      web/users/html/user-buy.html

Разница между файлами не показана из-за своего большого размера
+ 415 - 415
web/building_saas/css/main.css


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

@@ -862,7 +862,9 @@ const projTreeObj = {
             const nodeIndent = node ? (node.depth() + 1) * indent +  node.depth() * levelIndent + imgWidth + 5 : 0;
             const cellWidth = context.sheet.getCell(-1, context.col).width();
             const textLength = this.getAutoFitWidth(...arguments);
-            const lineNum = Math.ceil(textLength / (cellWidth - nodeIndent));
+            const tempNum = textLength / (cellWidth - nodeIndent);
+            const lineNum = tempNum % 1 > 0.92 ? Math.ceil(tempNum + 1) : Math.ceil(tempNum); // 不这么处理的话有些行高算出来不对
+            //const lineNum = Math.ceil(textLength / (cellWidth - nodeIndent));
             return lineNum * defaultHeight;
         };
         TreeNodeCellType.prototype.paint = function (ctx, value, x, y, w, h, style, options) {

+ 2 - 2
web/users/html/user-buy.html

@@ -51,7 +51,7 @@
                             <div class="col-sm-4 mb-5">
                                 <div class="card free-version">
                                   <div class=" card-body">
-                                    <h3 class="card-title text-white">免费版 </h3>
+                                    <h3 class="card-title">免费版 </h3>
                                       <p class="card-text">
                                     <!--  <ul class="pl-3">
                                           <li>只可创建 50 个单位工程</li>
@@ -76,7 +76,7 @@
                             <div class="col-sm-4 mb-5">
                                 <div class="card pro-version">
                                   <div class=" card-body">
-                                    <h3 class="card-title text-white">
+                                    <h3 class="card-title">
                                       <img src="/web/building_saas/img/vip.png">
                                       专业版
                                     </h3>