|
@@ -1,5 +1,5 @@
|
|
|
$(document).ready(function() {
|
|
|
- let fileSearch;
|
|
|
+ let fileSearch, fileReference;
|
|
|
autoFlashHeight();
|
|
|
$('#filing').height($(".sjs-height-0").height() - $('#add-slibing').parent().parent().height() - 10);
|
|
|
class FilingObj {
|
|
@@ -1477,7 +1477,9 @@ $(document).ready(function() {
|
|
|
const self = this;
|
|
|
$.divResizer({
|
|
|
select: '#right-spr',
|
|
|
- callback: function() {},
|
|
|
+ callback: function() {
|
|
|
+ if (fileReference) fileReference.spread.refresh();
|
|
|
+ },
|
|
|
});
|
|
|
$('input', '#search').bind('keydown', function (e) {
|
|
|
if (e.keyCode == 13) self.search();
|
|
@@ -1557,6 +1559,41 @@ $(document).ready(function() {
|
|
|
tabPanel.addClass('active');
|
|
|
// $('.tab-content .tab-pane').removeClass('active');
|
|
|
showSideTools(tab.hasClass('active'));
|
|
|
+ if (tab.attr('content') === '#reference') {
|
|
|
+ if (!fileReference) {
|
|
|
+ fileReference = $.stdLib({
|
|
|
+ selector: '#reference',
|
|
|
+ stdType: 'reference',
|
|
|
+ libs: fileReferenceList,
|
|
|
+ treeSetting: {
|
|
|
+ id: 'template_id',
|
|
|
+ pid: 'pid',
|
|
|
+ order: 'order',
|
|
|
+ level: 'level',
|
|
|
+ rootId: -1,
|
|
|
+ keys: ['id', 'list_id', 'template_id'],
|
|
|
+ },
|
|
|
+ spreadSetting: {
|
|
|
+ cols: [
|
|
|
+ {title: '名称', field: 'name', hAlign: 0, width: 300, formatter: '@', cellType: 'tree', wordWrap: true},
|
|
|
+ {title: '备注', field: 'remark', hAlign: 1, width: 150, formatter: '@', wordWrap: true}
|
|
|
+ ],
|
|
|
+ treeCol: 0,
|
|
|
+ emptyRows: 0,
|
|
|
+ headRows: 1,
|
|
|
+ headRowHeight: [32],
|
|
|
+ defaultRowHeight: 21,
|
|
|
+ headerFont: '12px 微软雅黑',
|
|
|
+ font: '12px 微软雅黑',
|
|
|
+ headColWidth: [30],
|
|
|
+ selectedBackColor: '#fffacd',
|
|
|
+ readOnly: true,
|
|
|
+ },
|
|
|
+ page: 'ledger',
|
|
|
+ });
|
|
|
+ }
|
|
|
+ fileReference.spread.refresh();
|
|
|
+ }
|
|
|
} else { // 收起工具栏
|
|
|
tab.removeClass('active');
|
|
|
tabPanel.removeClass('active');
|