* Refactor the UI of data export with ZIN for product list page.

This commit is contained in:
chentao
2023-05-24 10:22:39 +08:00
parent 6cc16da5eb
commit dc8b7eb8d4
3 changed files with 27 additions and 9 deletions
+11 -8
View File
@@ -107,13 +107,17 @@ featureBar
toolbar
(
item(set(array
modalTrigger
(
'text' => $lang->export,
'icon' => 'export',
'class' => 'ghost text-darker',
'url' => createLink('product', 'export', $browseType, "status=$browseType&orderBy=$orderBy"),
))),
to::trigger(btn
(
setClass('ghost text-darker'),
set::icon('export'),
$lang->export
)),
set::url(createLink('product', 'export', "status=$browseType&orderBy=$orderBy")),
set::type('ajax')
),
div(setClass('nav-divider')),
$config->systemMode == 'ALM' ? modalTrigger
(
@@ -124,8 +128,7 @@ toolbar
$lang->product->editLine
)),
set::url(createLink('product', 'manageLine', $browseType)),
set::type('ajax'),
set::title('maintaince')
set::type('ajax')
) : NULL,
item(set(array
(
+14
View File
@@ -0,0 +1,14 @@
<?php
declare(strict_types=1);
/**
* The UI file of product module of ZenTaoPMS.
*
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(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 chen.tao <chentao@easycorp.ltd>
* @package product
* @link https://www.zentao.net
*/
?>
<?php include '../../file/ui/export.html.php';?>
+2 -1
View File
@@ -401,7 +401,8 @@ class productZen extends product
{
$lines = $this->product->getLinePairs();
$users = $this->user->getPairs('noletter');
$productStats = $this->product->getStats($orderBy, null, $status);
$products = $this->product->getList(0, $status);
$productStats = $this->product->getStats(array_keys($products), $orderBy, null, $status);
foreach($productStats as $product)
{