$(document).ready(function() { let fileSearch, fileReference; autoFlashHeight(); $('#filing').height($(".sjs-height-0").height() - $('#add-slibing').parent().parent().height() - 10); class FilingObj { constructor(setting) { // 原始数据整理后的树结构,用来整理zTree显示 this.dragTree = createDragTree({ id: 'id', pid: 'tree_pid', level: 'tree_level', order: 'tree_order', rootId: '-1' }); // 界面显示的zTree this.setting = setting; this.filingTree = null; this.pageCount = 15; this.expandKey = 'filing-' + window.location.pathname.split('/')[2]; const cache = getLocalCache(this.expandKey); this.expandCache = cache ? _.uniq(cache.split(',')) : []; this.curFilingKey = 'cur-filing-' + window.location.pathname.split('/')[2]; $('#filing').height($(".sjs-height-0").height()-$('.d-flex',".sjs-height-0").height() - 10); this.fileOrderKey = 'fileOrder'; this.fileOrder = getLocalCache(this.fileOrderKey) || 'create_time|desc'; } refreshFileOrderButton() { const orderBy = this.fileOrder.split('|'); const field = orderBy[0], sort = orderBy[1]; const buttons = $('[name=file-sort]'); for (const b of buttons) { const curField = b.getAttribute('field'); if (curField === field) { $(b).html(``).attr('tag', `${curField}|${sort === 'asc' ? 'desc' : 'asc'}`); } else { $(b).html('