* Add export pivot data.
This commit is contained in:
@@ -125,6 +125,12 @@ function loadCustomPivot()
|
||||
postAndLoadPage(link, form, '#table-pivot-preview');
|
||||
}
|
||||
|
||||
exportData = function()
|
||||
{
|
||||
const $domObj = $(".table-condensed")[0];
|
||||
exportFile($domObj);
|
||||
}
|
||||
|
||||
/**
|
||||
* 把日期字符串转换成日期对象。
|
||||
* Convert date string to date object.
|
||||
@@ -227,9 +233,3 @@ getHeight = function(height)
|
||||
|
||||
return Math.min(windowHeight - headerHeight - menuHeight - conditionHeight - parentGapHeight - panelHeadingHeight - panelBodyPaddingY, height);
|
||||
}
|
||||
|
||||
exportData = function()
|
||||
{
|
||||
const $domObj = $(".table-condensed")[0];
|
||||
exportFile($domObj);
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ if(file_exists($viewFile)) include_once $viewFile;
|
||||
|
||||
if($this->config->edition != 'open')
|
||||
{
|
||||
$pivotPath = $this->app->getModuleExtPath('pivot', 'view');
|
||||
$pivotPath = $this->app->getModuleExtPath('pivot', 'ui');
|
||||
include $pivotPath['common'] . 'exportdata.html.php';
|
||||
}
|
||||
|
||||
@@ -43,7 +43,8 @@ if($config->edition != 'open')
|
||||
'icon' => 'export',
|
||||
'class' => 'ghost',
|
||||
'data-target' => '#export',
|
||||
'data-toggle' => 'modal'
|
||||
'data-toggle' => 'modal',
|
||||
'data-size' => 'sm'
|
||||
))) : null,
|
||||
hasPriv('pivot', 'browse') ? item(set(array
|
||||
(
|
||||
|
||||
@@ -115,7 +115,9 @@ $generateData = function() use ($lang, $pivotName, $pivot, $filters, $data, $con
|
||||
div
|
||||
(
|
||||
setID('exportData'),
|
||||
setClass('hidden')
|
||||
setClass('hidden'),
|
||||
rawContent(),
|
||||
$this->pivot->buildPivotTable($data, $configs),
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user