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

This commit is contained in:
刘刚
2025-07-21 11:26:14 +08:00
committed by Gitfox
2 changed files with 21 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
/**
* 处理保存文档的操作请求,向服务器发送请求并返回保存的文档对象。
* Handle the save doc operation request, send a request to the server and return the saved doc object.
*/
function handleSaveDoc(doc)
{
/* See lib/zin/wg/docapp/js/v1.js */
}
window._setDocViwerOptions = window.setDocAppOptions;
window.setDocAppOptions = function(_, options)
{
options = window._setDocViwerOptions(_, options);
return $.extend(options,
{
handleSaveDoc: handleSaveDoc
});
};
+3 -1
View File
@@ -20,7 +20,9 @@ class docViewer extends wg
public static function getPageJS(): ?string
{
return file_get_contents(dirname(__DIR__) . DS . 'docapp' . DS . 'js' . DS . 'v1.js');
$docAppJS = file_get_contents(dirname(__DIR__) . DS . 'docapp' . DS . 'js' . DS . 'v1.js');
$appendJS = file_get_contents(__DIR__ . DS . 'js' . DS . 'v1.js');
return $docAppJS . js::scope($appendJS);
}
public static function getPageCSS(): ?string