|
@@ -16,6 +16,7 @@ $(document).ready(function() {
|
|
|
this.expandKey = 'filing-' + window.location.pathname.split('/')[2];
|
|
|
const cache = getLocalCache(this.expandKey);
|
|
|
this.expandCache = cache ? cache.split(',') : [];
|
|
|
+ this.curFilingKey = 'cur-filing-' + window.location.pathname.split('/')[2];
|
|
|
}
|
|
|
analysisFiling(data) {
|
|
|
const self = this;
|
|
@@ -44,6 +45,12 @@ $(document).ready(function() {
|
|
|
return result;
|
|
|
});
|
|
|
this.filingTree = $.fn.zTree.init($('#filing'), this.setting, sortNodes);
|
|
|
+ const curCache = getLocalCache(this.curFilingKey);
|
|
|
+ const curNode = curCache ? this.filingTree.getNodeByParam('id', curCache) : null;
|
|
|
+ if (curNode){
|
|
|
+ this.filingTree.selectNode(curNode);
|
|
|
+ filingObj.setCurFiling(curNode);
|
|
|
+ }
|
|
|
}
|
|
|
_getFileHtml(file) {
|
|
|
const html = [];
|
|
@@ -240,6 +247,7 @@ $(document).ready(function() {
|
|
|
} else {
|
|
|
$('#rela-file-btn').hide();
|
|
|
}
|
|
|
+ setLocalCache(this.curFilingKey, filingObj.curFiling.id);
|
|
|
}
|
|
|
prePage() {
|
|
|
if (this.curPage === 1) return;
|