* [misc]: add more params to doc-app control.

This commit is contained in:
sunhao
2024-10-16 08:36:48 +08:00
parent 7c6a848564
commit 3c802f1053
2 changed files with 18 additions and 5 deletions
+14 -5
View File
@@ -1361,15 +1361,24 @@ class doc extends control
* 文档应用视图。
*
* @param string $type
* @param int $space
* @param int $spaceID
* @param int $libID
* @param int $moduleID
* @param int $docID
* @param string $docMode
* @access public
* @return void
*/
public function app(string $type = 'mine', int $spaceID = 0)
public function app(string $type = 'mine', int $spaceID = 0, int $libID = 0, int $moduleID = 0, int $docID = 0, string $docMode = 'view')
{
$this->view->type = $type;
$this->view->spaceID = $spaceID;
$this->view->title = $this->lang->doc->spaceList[$type];
$this->view->type = $type;
$this->view->spaceID = $spaceID;
$this->view->libID = $libID;
$this->view->moduleID = $moduleID;
$this->view->docID = $docID;
$this->view->docMode = $docMode;
$this->view->users = $this->loadModel('user')->getPairs('noclosed,noletter');
$this->view->title = $this->lang->doc->spaceList[$type];
$this->display();
}
+4
View File
@@ -16,6 +16,10 @@ zui::docApp
set::_style(array('height' => 'calc(100vh - 72px)')),
set::spaceType($type),
set::spaceID($spaceID),
set::libID($libID),
set::moduleID($moduleID),
set::docID($docID),
set::docMode($docMode),
set::fetcher(createLink('doc', 'ajaxGetSpaceData', 'type={spaceType}&spaceID={spaceID}')),
set::docFetcher(createLink('doc', 'ajaxGetDoc', 'docID={docID}')),
set::width('100%'),