Merge branch feature/reporttemplate of zentao/zentaopms (#10473)
This commit is contained in:
@@ -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
|
||||
});
|
||||
};
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user