261 lines
13 KiB
HTML
261 lines
13 KiB
HTML
|
|
<script id="kanban-model-modify-table-dot" type="text/html">
|
|
|
|
{{# if(d.modelsize === "small"){ }}
|
|
|
|
<div class="condition-box">
|
|
<div class="time-cond">
|
|
<span id="times{{d.id}}">{{d.date}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="small-data-box">{{d.num}}</div>
|
|
|
|
<div class="small-proportion">
|
|
{{# if(d.chain_ratiotype != ''){ }}
|
|
{{# if(d.chain_ratiotype == '+'){ }}
|
|
<div class="proportion-data" title="对比前一天">较环比 <div class="sanjiao"></div><span>{{d.chain_ratio}}%</span></div>
|
|
{{# } else { }}
|
|
<div class="proportion-data" title="对比前一天">较环比 <div class="sanjiao fu"></div><span class="funum">{{d.chain_ratio}}%</span></div>
|
|
{{# } }}
|
|
{{# } }}
|
|
{{# if(d.wowtype != ''){ }}
|
|
{{# if(d.wowtype == "+"){ }}
|
|
<div class="proportion-data" title="对比前七天">较同比 <div class="sanjiao"></div><span>{{d.wow}}%</span></div>
|
|
{{# } else { }}
|
|
<div class="proportion-data" title="对比前七天">较同比 <div class="sanjiao fu"></div><span class="funum">{{d.wow}}%</span></div>
|
|
{{# } }}
|
|
{{# } }}
|
|
</div>
|
|
|
|
{{# } else { }}
|
|
|
|
{{# if(d.modeltype === "table"){ }}
|
|
|
|
<div class="table-box">
|
|
<div class="table-tbody-box" id="table-tbody-box-{{d.id}}">
|
|
|
|
<div class="table_box_big">
|
|
<div class="table_box">
|
|
<!-- <table>
|
|
<thead>
|
|
<tr class="table-fenxi-th">
|
|
{{# layui.each(d.titledata, function(indexs, items) { }}
|
|
<th>{{items}}</th>
|
|
{{# }); }}
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
|
|
<div class="table_tbody_box">
|
|
<table class="table-fenxi-box">
|
|
|
|
{{# if(d.cat === "event"){ }}
|
|
<tbody class="table-fenxi-td">
|
|
|
|
{{# layui.each(d.condata, function(indexs, items) { }}
|
|
<tr >
|
|
{{# layui.each(items, function(indexss, itemss) { }}
|
|
<td>{{itemss}}</td>
|
|
{{# }); }}
|
|
</tr>
|
|
{{# }); }}
|
|
</tbody>
|
|
{{# } else if( d.cat == "scatter"){ }}
|
|
<tbody class="table-fenxi-td">
|
|
|
|
{{# layui.each(d.condata, function(indexs, items) { }}
|
|
<tr >
|
|
<td>{{items.date}}</td>
|
|
<td>{{items.d0}}</td>
|
|
{{# layui.each(items.data, function(indexss, itemss){ }}
|
|
<td>
|
|
<p>{{itemss.n}}</p>
|
|
<p>{{itemss.p}}</p>
|
|
</td>
|
|
{{# }); }}
|
|
</tr>
|
|
{{# }); }}
|
|
</tbody>
|
|
{{# } else if(d.cat === "retention"){ }}
|
|
<tbody class="table-fenxi-td">
|
|
|
|
{{# layui.each(d.condata, function(indexs, items) { }}
|
|
<tr >
|
|
<td>{{items.date}}</td>
|
|
<td>{{items.d0}}</td>
|
|
{{# layui.each(items.data, function(indexss, itemss){ }}
|
|
<td>
|
|
{{# if(itemss.p == '-'){ }}
|
|
<p>{{itemss.p}}</p>
|
|
{{# } else { }}
|
|
<p>{{itemss.p}}%</p>
|
|
{{# } }}
|
|
|
|
</td>
|
|
{{# }); }}
|
|
</tr>
|
|
{{# }); }}
|
|
</tbody>
|
|
|
|
{{# } else if(d.cat === "ltv"){ }}
|
|
<tbody class="table-fenxi-td">
|
|
|
|
{{# layui.each(d.condata, function(indexs, items) { }}
|
|
<tr >
|
|
{{# layui.each(items, function(indexss, itemss){ }}
|
|
<td>{{itemss}}</td>
|
|
{{# }); }}
|
|
</tr>
|
|
{{# }); }}
|
|
</tbody>
|
|
{{# } else if(d.cat === "user_property"){ }}
|
|
{{# layui.each(d.condata, function(indexs, items) { }}
|
|
<tr>
|
|
<td>{{indexs}}</td>
|
|
<td>{{items}}</td>
|
|
</tr>
|
|
{{# }); }}
|
|
{{# } }}
|
|
</table>
|
|
</div> -->
|
|
<div class="table_tbody_box">
|
|
|
|
<table id="dataTableMul{{d.id}}" class="table table-bordered table-fenxi-box">
|
|
<thead>
|
|
<tr>
|
|
{{# layui.each(d.titledata, function(indexs, items) { }}
|
|
<th>{{items}}</th>
|
|
{{# }); }}
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody class="table-fenxi-td">
|
|
{{# if(d.cat === "event"){ }}
|
|
{{# layui.each(d.condata, function(indexs, items) { }}
|
|
<tr>
|
|
{{# layui.each(items, function(indexss, itemss) { }}
|
|
<td title="{{itemss}}">{{itemss}}</td>
|
|
{{# }); }}
|
|
</tr>
|
|
{{# }); }}
|
|
{{# } else if( d.cat == "scatter"){ }}
|
|
|
|
{{# layui.each(d.condata, function(indexs, items) { }}
|
|
<tr >
|
|
<td>{{items.date}}</td>
|
|
<td>{{items.d0}}</td>
|
|
{{# layui.each(items.data, function(indexss, itemss){ }}
|
|
<td>
|
|
<p>{{itemss.n}}</p>
|
|
<p>{{itemss.p}}</p>
|
|
</td>
|
|
{{# }); }}
|
|
</tr>
|
|
{{# }); }}
|
|
{{# } else if(d.cat === "retention"){ }}
|
|
|
|
{{# layui.each(d.condata, function(indexs, items) { }}
|
|
<tr >
|
|
<td>{{items.date}}</td>
|
|
<td>{{items.d0}}</td>
|
|
{{# layui.each(items.data, function(indexss, itemss){ }}
|
|
<td>
|
|
{{# if(itemss.p == '-'){ }}
|
|
<p>{{itemss.p}}</p>
|
|
{{# } else { }}
|
|
<p>{{itemss.p}}%</p>
|
|
{{# } }}
|
|
|
|
</td>
|
|
{{# }); }}
|
|
</tr>
|
|
{{# }); }}
|
|
{{# } else if(d.cat === "ltv"){ }}
|
|
{{# layui.each(d.condata, function(indexs, items) { }}
|
|
<tr >
|
|
{{# layui.each(items, function(indexss, itemss){ }}
|
|
<td title="{{itemss}}">{{itemss}}</td>
|
|
{{# }); }}
|
|
</tr>
|
|
{{# }); }}
|
|
{{# } else if(d.cat === "user_property"){ }}
|
|
{{# layui.each(d.condata, function(indexs, items) { }}
|
|
<tr>
|
|
<td>{{indexs}}</td>
|
|
<td>{{items}}</td>
|
|
</tr>
|
|
{{# }); }}
|
|
|
|
{{# } }}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
{{# } else { }}
|
|
|
|
{{# if(d.cat != "user_property" && d.cat != "scatter" ){ }}
|
|
|
|
<div class="data-box">
|
|
<div style="display: flex; align-items: center;">
|
|
{{# if(d.daydata != false ){ }}
|
|
<div class="data-num">{{d.sameday}}<span></span></div>
|
|
{{# } }}
|
|
<div class="proportion">
|
|
{{# if(d.chain_ratiotype != ''){ }}
|
|
{{# if(d.chain_ratiotype == '+'){ }}
|
|
<div class="proportion-data">较环比 <div class="sanjiao"></div><span>{{d.chain_ratio}}%</span></div>
|
|
{{# } else { }}
|
|
<div class="proportion-data">较环比 <div class="sanjiao fu"></div><span class="funum">{{d.chain_ratio}}%</span></div>
|
|
{{# } }}
|
|
{{# } }}
|
|
{{# if(d.wowtype != ''){ }}
|
|
{{# if(d.wowtype == "+"){ }}
|
|
<div class="proportion-data">较同比 <div class="sanjiao"></div><span>{{d.wow}}%</span></div>
|
|
{{# } else { }}
|
|
<div class="proportion-data">较同比 <div class="sanjiao fu"></div><span class="funum">{{d.wow}}%</span></div>
|
|
{{# } }}
|
|
{{# } }}
|
|
</div>
|
|
</div>
|
|
{{# if(d.avesumdata != false ){ }}
|
|
<div class="thesum">
|
|
<div class="thesum-box">
|
|
{{# if(d.sum != -1){ }}
|
|
<div class="thesum-data">总和 <span>{{d.sum}}</span></div>
|
|
{{# } }}
|
|
{{# if(d.mean != -1){ }}
|
|
<div class="thesum-data">均值 <span>{{d.mean}}</span></div>
|
|
{{# } }}
|
|
</div>
|
|
</div>
|
|
{{# } }}
|
|
</div>
|
|
|
|
{{# } }}
|
|
|
|
<div class="echarts-box">
|
|
{{# if(d.daydata != false && d.avesumdata != false){ }}
|
|
<div id="{{d.id}}" class="echarts"></div>
|
|
{{# } else { }}
|
|
<div id="{{d.id}}" class="echarts2"></div>
|
|
{{# } }}
|
|
</div>
|
|
|
|
|
|
|
|
{{# } }}
|
|
|
|
|
|
{{# } }}
|
|
|
|
</script> |