diff --git a/module/doc/control.php b/module/doc/control.php index febec329ea..99501c2f05 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -1303,7 +1303,7 @@ class doc extends control else { $this->session->set('objectName', $this->lang->doc->common, 'admin'); - $this->view->docs = $browseType == 'bySearch' ? $this->doc->getDocsBySearch($type, $objectID, $libID, $queryID, $pager) : $this->doc->getDocs($libID, $moduleID, 'id_desc', $pager); + $this->view->docs = $browseType == 'bySearch' ? $this->doc->getDocsBySearch($type, $objectID, $libID, $queryID, $pager) : $this->doc->getDocs($libID, $moduleID, $orderBy, $pager); } $this->view->title = $title; @@ -1318,6 +1318,8 @@ class doc extends control $this->view->pager = $pager; $this->view->objectID = $objectID; $this->view->orderBy = $orderBy; + $this->view->exportMethod = $type . '2export'; + $this->view->canExport = common::hasPriv('doc', $type . '2export'); $this->display(); } diff --git a/module/doc/css/browse.css b/module/doc/css/browse.css index 9f08480a4a..80cea2d24b 100644 --- a/module/doc/css/browse.css +++ b/module/doc/css/browse.css @@ -1,2 +1 @@ -#mainContent .c-id {width: 70px;} #mainContent .c-id > a {color: #0c60e1;} diff --git a/module/doc/css/tablecontents.css b/module/doc/css/tablecontents.css index c1b19ca5b3..2907b330cc 100644 --- a/module/doc/css/tablecontents.css +++ b/module/doc/css/tablecontents.css @@ -72,4 +72,3 @@ li.drag-shadow ul {display: none!important;} .table .c-name > a.text-primary {display: inline-block; max-width: 90%; overflow: hidden;} .table .c-name > .ajaxCollect {float: right; position: relative; right: 10px; top: -3px;} -.panel th.c-id {width: 60px;} diff --git a/module/doc/view/doclist.html.php b/module/doc/view/doclist.html.php index 457e3abca1..a9de9f21a4 100644 --- a/module/doc/view/doclist.html.php +++ b/module/doc/view/doclist.html.php @@ -10,6 +10,10 @@ * @link https://www.zentao.net */ ?> +
@@ -50,68 +54,81 @@
| doc->id;?> | -doc->title;?> | -doc->addedByAB;?> | -doc->addedDate;?> | -doc->editedBy;?> | -doc->editedDate;?> | -actions;?> | -|||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| - createLink('doc', 'objectLibs', "type=$type&objectID=$objectID&libID=$doc->lib&docID=$doc->id"), $doc->id, '', "title='{$doc->id}' data-app='{$this->app->tab}'"); - } - else - { - echo " {$doc->id}"; - } - ?> - | -- createLink('doc', 'objectLibs', "type=$type&objectID=$objectID&libID=$doc->lib&docID=$doc->id"), " " . $doc->title, '', "title='{$doc->title}' data-app='{$this->app->tab}' class='text-primary'"); - } - else - { - echo " {$doc->title}"; - } - ?> - - id&objectType=doc");?>" title="" class='btn btn-link ajaxCollect'> - - | -addedBy);?> | -addedDate, 'y-m-d');?> | -editedBy);?> | -editedDate, 'y-m-d');?> | -- - id&comment=false", "", '', "title='{$lang->edit}' class='btn btn-link'", true, false)?> - id&confirm=no", "", 'hiddenwin', "title='{$lang->delete}' class='btn btn-link'")?> + | +addedBy);?> | +addedDate, 'y-m-d');?> | +editedBy);?> | +editedDate, 'y-m-d');?> | ++ + id&comment=false", "", '', "title='{$lang->edit}' class='btn btn-link'", true, false)?> + id&confirm=no", "", 'hiddenwin', "title='{$lang->delete}' class='btn btn-link'")?> + + | +