Merge branch feature/reporttemplate of zentao/zentaopms (#10485)

This commit is contained in:
刘刚
2025-07-22 10:49:23 +08:00
committed by Gitfox
+22 -1
View File
@@ -4,7 +4,28 @@
*/
function handleSaveDoc(doc)
{
/* See lib/zin/wg/docapp/js/v1.js */
const docApp = getDocApp();
if(docApp.isSavingDoc) return;
docApp.isSavingDoc = true;
const url = $.createLink('weekly', 'edit', `reportID=${doc.id}`);
const docData = {
rawContent : doc.content,
status : doc.status || 'normal',
contentType: doc.contentType,
type : 'text',
title : doc.title,
keywords : doc.keywords,
content : doc.html,
uid : (doc.uid || `doc${doc.id}`),
};
if(doc.fromVersion) docData.fromVersion = doc.fromVersion;
$.ajaxSubmit({'url': url, 'data': docData, 'onComplete': function()
{
docApp.isSavingDoc = false;
}});
}
window._setDocViwerOptions = window.setDocAppOptions;