|
|
@@ -26,6 +26,8 @@
|
|
|
<% } %>
|
|
|
<a class="nav-item nav-link<% if (ctx.subProject.data_collect === 7) { %> active<% } %>" data-datacollect="7" data-toggle="tab" href="#shujudaping-7" role="tab">
|
|
|
决策大屏<%- ctx.helper.transFormToChinese(7) %><% if (ctx.helper._.indexOf(ctx.subProject.data_collect_pages, '7') !== -1) { %>(已开启<% if (ctx.subProject.data_collect === 7) { %>、默认<% } %>)<% } %></a>
|
|
|
+ <a class="nav-item nav-link<% if (ctx.subProject.data_collect === is_dz3) { %> active<% } %>" data-datacollect="<%- is_dz3 %>" data-toggle="tab" href="#shujudaping-<%- is_dz3 %>" role="tab">
|
|
|
+ 决策大屏<%- ctx.helper.transFormToChinese(is_dz3) %><% if (ctx.helper._.indexOf(ctx.subProject.data_collect_pages, is_dz3.toString()) !== -1) { %>(已开启<% if (ctx.subProject.data_collect === is_dz3) { %>、默认<% } %>)<% } %></a>
|
|
|
<div class="ml-auto">
|
|
|
<!--<div class="form-check form-check-inline">-->
|
|
|
<!--<input class="form-check-input" type="checkbox" id="show-datacollect" value="option1" <% if (ctx.subProject.data_collect) { %>checked<% } %>>-->
|
|
|
@@ -62,6 +64,11 @@
|
|
|
<div id="shujudaping-7" class="tab-pane<% if (ctx.subProject.data_collect === 7) { %> active<% } %>">
|
|
|
成本管理决策大屏数据汇总<img src="/public/images/juecedaping07.png" width="100%">
|
|
|
</div>
|
|
|
+ <% if (is_dz3) { %>
|
|
|
+ <div id="shujudaping-<%- is_dz3 %>" class="tab-pane<% if (ctx.subProject.data_collect === is_dz3) { %> active<% } %>">
|
|
|
+ 山海鲸数据大屏平台定制(会打开新标签页跳转)<img src="/public/images/juecedaping0<%- is_dz3 %>.png" width="100%">
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -84,6 +91,7 @@
|
|
|
let addDataCollect = JSON.parse(unescape('<%- escape(JSON.stringify(ctx.subProject.page_show.addDataCollect)) %>'));
|
|
|
let is_dz1 = <% if (is_dz1) { %>parseInt('<%- is_dz1 %>');<% } else { %>false;<% } %>
|
|
|
let is_dz2 = <% if (is_dz2) { %>parseInt('<%- is_dz2 %>');<% } else { %>false;<% } %>
|
|
|
+ let is_dz3 = <% if (is_dz3) { %>parseInt('<%- is_dz3 %>');<% } else { %>false;<% } %>
|
|
|
$(function () {
|
|
|
autoFlashHeight();
|
|
|
// 开启及关闭展示
|
|
|
@@ -165,6 +173,13 @@
|
|
|
msg = '(已开启' + (7 === dataCollect ? '、默认' : '') + ')' ;
|
|
|
}
|
|
|
$('#tablist a').eq(7-3).text('决策大屏' + transFormToChinese(7) + msg);
|
|
|
+ if (is_dz3) {
|
|
|
+ let msg = '';
|
|
|
+ if (_.indexOf(dataCollectPages, is_dz3.toString()) !== -1) {
|
|
|
+ msg = '(已开启' + (is_dz3=== dataCollect ? '、默认' : '') + ')' ;
|
|
|
+ }
|
|
|
+ $('#tablist a').eq(is_dz3-3).text('决策大屏' + transFormToChinese(is_dz3) + msg);
|
|
|
+ }
|
|
|
}
|
|
|
$('#tablist a').click(function () {
|
|
|
const page = parseInt($(this).data('datacollect'));
|