Parcourir la source

1. 名称列宽调整
2. 记住列宽

MaiXinRong il y a 5 mois
Parent
commit
ccd19dce2c
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      app/public/js/file_detail.js

+ 5 - 1
app/public/js/file_detail.js

@@ -1708,7 +1708,7 @@ $(document).ready(function() {
                         },
                         spreadSetting: {
                             cols: [
-                                {title: '名称', field: 'name', hAlign: 0, width: 300, formatter: '@', cellType: 'tree', wordWrap: true},
+                                {title: '名称', field: 'name', hAlign: 0, width: 420, formatter: '@', cellType: 'tree', wordWrap: true},
                                 {title: '备注', field: 'remark', hAlign: 1, width: 150, formatter: '@'}
                             ],
                             emptyRows: 0,
@@ -1720,6 +1720,10 @@ $(document).ready(function() {
                             headColWidth: [30],
                             selectedBackColor: '#fffacd',
                             readOnly: true,
+                            localCache: {
+                                key: 'file_detail_reference',
+                                colWidth: true,
+                            },
                         },
                         page: 'ledger',
                     });