|
@@ -56,9 +56,9 @@
|
|
|
<div class="panel">
|
|
|
<div class="panel-body" id="export_div">
|
|
|
<div class="btn-group" role="group" aria-label="Button group with nested dropdown">
|
|
|
- <button type="button" class="btn btn-outline-primary btn-sm" onclick="rptControlObj.checkAndGetExcel()"><i class="fa fa-file-excel-o"></i> Excel <span class="badge badge-secondary">0</span></button>
|
|
|
+ <button type="button" class="btn btn-outline-primary btn-sm" onclick="rptControlObj.checkAndGetExcel()" <% if (pageShow !== null && pageShow.rptexportexcel === "1") { %> disabled <% } %> ><i class="fa fa-file-excel-o"></i> Excel <span class="badge badge-secondary">0</span></button>
|
|
|
<button type="button" class="btn btn-outline-primary btn-sm" id="show_excel_output_cfg" data-toggle="modal" data-target="#export_excel" style="display:none"></button>
|
|
|
- <button type="button" class="btn btn-outline-primary btn-sm" onclick="rptControlObj.getPDFPre()"><i class="fa fa-file-pdf-o"></i> PDF <span class="badge badge-primary">0</span></button>
|
|
|
+ <button type="button" class="btn btn-outline-primary btn-sm" onclick="rptControlObj.getPDFPre()" <% if (pageShow !== null && pageShow.rptexportpdf === "1") { %> disabled <% } %> ><i class="fa fa-file-pdf-o"></i> PDF <span class="badge badge-primary">0</span></button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="panel-foot text-muted">
|
|
@@ -264,6 +264,19 @@
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
let TOP_TREE_NODES = <%- rpt_tpl_data %>;
|
|
|
+ const PAGE_SHOW = {rptwatermark: 0, rptexportpdf: 0, rptexportexcel: 0};
|
|
|
+ <% if (pageShow !== null) { %>
|
|
|
+ <% if (parseInt(pageShow.rptwatermark) === 1) { %>
|
|
|
+ PAGE_SHOW['rptwatermark'] = 1;
|
|
|
+ <% } %>
|
|
|
+ <% if (parseInt(pageShow.rptexportpdf) === 1) { %>
|
|
|
+ PAGE_SHOW['rptexportpdf'] = 1;
|
|
|
+ <% } %>
|
|
|
+ <% if (parseInt(pageShow.rptexportexcel) === 1) { %>
|
|
|
+ PAGE_SHOW['rptexportexcel'] = 1;
|
|
|
+ <% } %>
|
|
|
+ <% } %>
|
|
|
+
|
|
|
const CUST_TREE_NODES = <%- cust_tpl_data %>;
|
|
|
if (!(CUST_TREE_NODES.customize instanceof Array)) {
|
|
|
CUST_TREE_NODES.customize = [];
|