|
@@ -66,6 +66,8 @@ let rptArchiveObj = {
|
|
|
me.refreshNodes();
|
|
|
rptArchiveObj._countChkedRptTpl();
|
|
|
rptArchiveObj._buildeArchiveDateSelect();
|
|
|
+ rptArchiveObj._iniArchiveItemForDeleteShow();
|
|
|
+ rptArchiveObj._iniArchiveItemForDeleteShow();
|
|
|
},
|
|
|
toggleBtn: function (enabled) {
|
|
|
if (current_stage_status === 3 && enabled) {
|
|
@@ -131,6 +133,7 @@ let rptArchiveObj = {
|
|
|
me._countChkedRptTpl();
|
|
|
me._buildeArchiveDateSelect();
|
|
|
me._requestArchiveReport();
|
|
|
+ rptArchiveObj._iniArchiveItemForDeleteShow();
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -320,6 +323,17 @@ let rptArchiveObj = {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+ _iniArchiveItemForDeleteShow: function() {
|
|
|
+ let me = rptArchiveObj;
|
|
|
+ const dispArchInfoBody = $('#disp_archive_info_body');
|
|
|
+ dispArchInfoBody.empty();
|
|
|
+ let targetDom = document.getElementById("currentDrpArchiveSelect");
|
|
|
+ let firstStr = `<h6>确认删除本张【${targetDom.innerText}】归档报表?</h6>`;
|
|
|
+ let secondStr = `<h6>删除后,数据无法恢复,请谨慎操作。</h6>`;
|
|
|
+ dispArchInfoBody.append(firstStr);
|
|
|
+ dispArchInfoBody.append(secondStr);
|
|
|
+ },
|
|
|
+
|
|
|
showArchivedItem: function(currentNode) {
|
|
|
//初始化当前报表已经归档的信息
|
|
|
//ARCHIVE_LIST结构:[{rpt_id, items: [{uuid, update_time, is_common}...最多3个]}...] (当前项目、当前期的所有报表归档信息)
|
|
@@ -750,6 +764,7 @@ let rptArchiveObj = {
|
|
|
me.currentNode = validNode;
|
|
|
me.onClick(null, null, me.currentNode);
|
|
|
me.treeObj.selectNode(me.currentNode, false);
|
|
|
+ me._iniArchiveItemForDeleteShow();
|
|
|
}
|
|
|
} else {
|
|
|
me.currentArchiveUuid = null;
|