浏览代码

1. 单价调整,选中行颜色标识
2. 资料归集,授权用户,添加滚动条
3. 单价调整,选择应用部位,3层以下项目节显示问题

MaiXinRong 2 年之前
父节点
当前提交
c55bd5fdac
共有 3 个文件被更改,包括 6 次插入2 次删除
  1. 1 1
      app/public/js/path_tree.js
  2. 4 0
      app/public/js/revise_price.js
  3. 1 1
      app/view/file/file_modal.ejs

+ 1 - 1
app/public/js/path_tree.js

@@ -417,7 +417,7 @@ const createNewPathTree = function (type, setting) {
                 }
                 parents.push(...this.getAllParents(node));
             }
-            this.sortByLevel(parents)
+            this.sortByLevelConverse(parents);
             for (const parent of parents) {
                 if (!parent.children || parent.children.length === 0) continue;
                 parent.filter = !parent.children.find(x => { return !x.filter });

+ 4 - 0
app/public/js/revise_price.js

@@ -78,6 +78,7 @@ $(document).ready(() => {
         defaultRowHeight: 21,
         headerFont: '12px 微软雅黑',
         font: '12px 微软雅黑',
+        selectedBackColor: '#fffacd',
         readOnly,
         getColor: function (sheet, data, row, col, defaultColor) {
             if (!data) return defaultColor;
@@ -198,6 +199,9 @@ $(document).ready(() => {
                 }
                 this.tree.loadFilter(invalid.join(','), 'filter');
             }
+            console.log(this.tree.nodes.find(x => { return x.code === '1'}));
+            console.log(this.tree.nodes.find(x => { return x.code === '1-2'}));
+            console.log(this.tree.nodes.find(x => { return x.code === '1-2-2'}));
         }
         refreshChangeRela(price, samePrice) {
             if (!samePrice) samePrice = this.getSamePrice(price);

+ 1 - 1
app/view/file/file_modal.ejs

@@ -41,7 +41,7 @@
                             <div class="p-2"><a href="javascript: void(0);" id="batch-del-filing" class="text-danger">批量删除</a></div>
                             <div class="p-2"><a href="javascript: void(0);" id="sync-filing">同步授权至其他类别</a></div>
                         </div>
-                        <div class="modal-height-400">
+                        <div class="modal-height-400 scroll-y">
                             <table class="table table-bordered">
                                 <thead>
                                 <tr><th>选择</th><th>用户名</th><th>授权时间</th><th>权限</th><th>操作</th></tr>