+ [ui] add doc app view.
This commit is contained in:
@@ -1356,6 +1356,23 @@ class doc extends control
|
||||
if(isset($this->lang->doc->whitelistDeny['doc'])) return printf($this->lang->doc->whitelistDeny['doc'], implode('、', $denyUsers));
|
||||
}
|
||||
|
||||
/**
|
||||
* Doc app view.
|
||||
* 文档应用视图。
|
||||
*
|
||||
* @param string $type
|
||||
* @param int $space
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function app(string $type = 'mine', int $spaceID = 0)
|
||||
{
|
||||
$this->view->type = $type;
|
||||
$this->view->spaceID = $spaceID;
|
||||
$this->view->title = $this->lang->doc->spaceList[$type];
|
||||
$this->display();
|
||||
}
|
||||
|
||||
/**
|
||||
* Ajax: Get doc space data.
|
||||
* Ajax: 获取文档空间数据。
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
* The app view file of doc module of ZenTaoPMS.
|
||||
* @copyright Copyright 2024 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
|
||||
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
|
||||
* @author Sun Hao<sunhao@easycorp.ltd>
|
||||
* @package doc
|
||||
* @link https://www.zentao.net
|
||||
*/
|
||||
namespace zin;
|
||||
|
||||
zui::docApp
|
||||
(
|
||||
set::_class('shadow rounded ring canvas'),
|
||||
set::_style(array('height' => 'calc(100vh - 72px)')),
|
||||
set::spaceType($type),
|
||||
set::spaceID($spaceID),
|
||||
set::fetcher(createLink('doc', 'ajaxGetSpaceData', 'type={spaceType}&spaceID={spaceID}')),
|
||||
set::docFetcher(createLink('doc', 'ajaxGetDoc', 'docID={docID}')),
|
||||
set::width('100%'),
|
||||
set::height('100%')
|
||||
);
|
||||
Reference in New Issue
Block a user