|
@@ -10,6 +10,9 @@ let rptArchiveObj = {
|
|
iniPage: function() {
|
|
iniPage: function() {
|
|
//初始化页面的归档信息
|
|
//初始化页面的归档信息
|
|
let me = rptArchiveObj;
|
|
let me = rptArchiveObj;
|
|
|
|
+ me.currentNode = null;
|
|
|
|
+ me.currentArchiveUuid = null;
|
|
|
|
+ me.currentArchiveDateStr = null;
|
|
const archivedRptIds = [];
|
|
const archivedRptIds = [];
|
|
for (let aItem of ARCHIVE_LIST) {
|
|
for (let aItem of ARCHIVE_LIST) {
|
|
archivedRptIds.push(parseInt(aItem.rpt_id));
|
|
archivedRptIds.push(parseInt(aItem.rpt_id));
|
|
@@ -57,6 +60,8 @@ let rptArchiveObj = {
|
|
zTreeHelper.createTreeDirectly(TOP_TREE_NODES, rpt_prj_folder_setting, "rptTplTree", me);
|
|
zTreeHelper.createTreeDirectly(TOP_TREE_NODES, rpt_prj_folder_setting, "rptTplTree", me);
|
|
me.treeObj.expandAll(true);
|
|
me.treeObj.expandAll(true);
|
|
me.refreshNodes();
|
|
me.refreshNodes();
|
|
|
|
+ rptArchiveObj._countChkedRptTpl();
|
|
|
|
+ rptArchiveObj._buildeArchiveDateSelect();
|
|
},
|
|
},
|
|
toggleBtn: function (enabled) {
|
|
toggleBtn: function (enabled) {
|
|
if (current_stage_status === 3 && enabled) {
|
|
if (current_stage_status === 3 && enabled) {
|
|
@@ -131,11 +136,11 @@ let rptArchiveObj = {
|
|
|
|
|
|
_buildeArchiveDateSelect: function () {
|
|
_buildeArchiveDateSelect: function () {
|
|
let me = rptArchiveObj;
|
|
let me = rptArchiveObj;
|
|
|
|
+ let targetDom = document.getElementById("currentDrpArchiveSelect");
|
|
|
|
+ targetDom.innerHTML = me.currentArchiveDateStr;
|
|
|
|
+ let drpDom = $("#drpArchiveSelect");
|
|
|
|
+ drpDom.empty();
|
|
if (me.currentNode && me.currentArchiveUuid && me.currentArchiveDateStr) {
|
|
if (me.currentNode && me.currentArchiveUuid && me.currentArchiveDateStr) {
|
|
- let targetDom = document.getElementById("currentDrpArchiveSelect");
|
|
|
|
- targetDom.innerHTML = me.currentArchiveDateStr;
|
|
|
|
- let drpDom = $("#drpArchiveSelect");
|
|
|
|
- drpDom.empty();
|
|
|
|
for (let aItem of ARCHIVE_LIST) {
|
|
for (let aItem of ARCHIVE_LIST) {
|
|
if (me.currentNode.refId === parseInt(aItem.rpt_id)) {
|
|
if (me.currentNode.refId === parseInt(aItem.rpt_id)) {
|
|
for (let item of aItem.items) {
|
|
for (let item of aItem.items) {
|