111
This commit is contained in:
parent
53d833b9e6
commit
28b0e677b8
@ -30,6 +30,12 @@
|
|||||||
<div class="analysis-navigation-bar-right-img analysis-navigation-bar-right-img-baobiao" title="报表">
|
<div class="analysis-navigation-bar-right-img analysis-navigation-bar-right-img-baobiao" title="报表">
|
||||||
<img src="./static/img/baobiao2.png">
|
<img src="./static/img/baobiao2.png">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="analysis-navigation-bar-right-img analysis-fanhui" title="返回">
|
||||||
|
<img src="./static/img/fanhui.png">
|
||||||
|
<span>返回</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -18,6 +18,10 @@
|
|||||||
<div class="analysis-navigation-bar-right-img analysis-navigation-bar-right-img-baobiao" title="报表">
|
<div class="analysis-navigation-bar-right-img analysis-navigation-bar-right-img-baobiao" title="报表">
|
||||||
<img src="./static/img/baobiao2.png">
|
<img src="./static/img/baobiao2.png">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="analysis-navigation-bar-right-img analysis-fanhui" title="返回">
|
||||||
|
<img src="./static/img/fanhui.png">
|
||||||
|
<span>返回</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@
|
|||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
</li>
|
</li>
|
||||||
<li class="layui-nav-item modify-layui-nav-item">
|
<li class="layui-nav-item modify-layui-nav-item layui-nav-itemed">
|
||||||
<a href="javascript:;" class="fontcolor">项目空间</a>
|
<a href="javascript:;" class="fontcolor">项目空间</a>
|
||||||
<dl class="layui-nav-child modeify-layui-nav-" id="kongjian">
|
<dl class="layui-nav-child modeify-layui-nav-" id="kongjian">
|
||||||
|
|
||||||
@ -560,17 +560,26 @@
|
|||||||
|
|
||||||
<!-- 空间 -->
|
<!-- 空间 -->
|
||||||
<script id="kongjian-dot" type="text/html">
|
<script id="kongjian-dot" type="text/html">
|
||||||
|
|
||||||
{{# layui.each(d, function(index, item) { }}
|
{{# layui.each(d, function(index, item) { }}
|
||||||
{{# if(item.name != undefined ){ }}
|
{{# if(item.name != undefined ){ }}
|
||||||
<li class="layui-nav-item">
|
<li class="layui-nav-item layui-nav-itemed">
|
||||||
<a href="javascript:;" class="fontcolor mykanban category xiangmukongjian" data-id="{{item._id}}">
|
<a href="javascript:;" class="fontcolor mykanban category xiangmukongjian" data-id="{{item._id}}">
|
||||||
<i class="layui-icon layui-icon-template-1"></i> {{item.name}}
|
<i class="layui-icon layui-icon-template-1"></i> {{item.name}}
|
||||||
<img src="./static/img/renyuan.png" class="nav-space-bar" data-id="{{item._id}}"/></a>
|
<img src="./static/img/renyuan.png" class="nav-space-bar" data-id="{{item._id}}"/></a>
|
||||||
<dl class="layui-nav-child modeify-layui-nav-child sidebar-box">
|
<dl class="layui-nav-child modeify-layui-nav-child" id="sidebar-box">
|
||||||
|
|
||||||
{{# layui.each(item.children, function(indexs, items){ }}
|
{{# layui.each(item.children, function(indexs, items){ }}
|
||||||
{{# if(items.isFolder === true){ }}
|
<!-- {{# if(indexs == 0){ }}
|
||||||
|
<dd class="layui-left-dd layui-this" data-id="{{items._id}}"><a href="javascript:;" class="fontcolor second category"> <span>{{items.name}} </span>
|
||||||
|
<img src="./static/img/gengduo.png" alt="" class="nav-action-bar" data-id="{{items._id}}"></a>
|
||||||
|
</dd>
|
||||||
|
{{# } else { }} -->
|
||||||
|
<dd class="layui-left-dd" data-id="{{items._id}}"><a href="javascript:;" class="fontcolor second category"> <span>{{items.name}} </span>
|
||||||
|
<img src="./static/img/gengduo.png" alt="" class="nav-action-bar" data-id="{{items._id}}"></a>
|
||||||
|
</dd>
|
||||||
|
<!-- {{# } }} -->
|
||||||
|
<!-- {{# if(items.isFolder === true){ }}
|
||||||
<li class="layui-nav-item">
|
<li class="layui-nav-item">
|
||||||
<a href="javascript:;" class="fontcolor mykanban second category xiangmukongjian" data-id="{{items._id}}"> <i class="layui-icon layui-icon-file-b"></i> {{items.name}}
|
<a href="javascript:;" class="fontcolor mykanban second category xiangmukongjian" data-id="{{items._id}}"> <i class="layui-icon layui-icon-file-b"></i> {{items.name}}
|
||||||
<img src="./static/img/gengduo.png" class="nav-file-bar" data-id="{{items._id}}"/></a>
|
<img src="./static/img/gengduo.png" class="nav-file-bar" data-id="{{items._id}}"/></a>
|
||||||
@ -580,14 +589,20 @@
|
|||||||
<img src="./static/img/gengduo.png" alt="" class="nav-action-bar" data-id="{{datas._id}}"></a></dd>
|
<img src="./static/img/gengduo.png" alt="" class="nav-action-bar" data-id="{{datas._id}}"></a></dd>
|
||||||
</dl>
|
</dl>
|
||||||
{{# }); }}
|
{{# }); }}
|
||||||
</li>
|
</li> -->
|
||||||
{{# } else { }}
|
<!-- {{# } else { }} -->
|
||||||
<dd class="layui-left-dd" data-id="{{items._id}}"><a href="javascript:;" class="fontcolor second category"> <span>{{items.name}} </span>
|
<!-- {{# if(indexs == 0){ }}
|
||||||
<img src="./static/img/gengduo.png" alt="" class="nav-action-bar" data-id="{{items._id}}"></a>
|
<dd class="layui-left-dd layui-this" data-id="{{items._id}}"><a href="javascript:;" class="fontcolor second category"> <span>{{items.name}} </span>
|
||||||
</dd>
|
<img src="./static/img/gengduo.png" alt="" class="nav-action-bar" data-id="{{items._id}}"></a>
|
||||||
{{# } }}
|
</dd>
|
||||||
|
{{# } else { }} -->
|
||||||
|
<!-- <dd class="layui-left-dd" data-id="{{items._id}}"><a href="javascript:;" class="fontcolor second category"> <span>{{items.name}} </span>
|
||||||
|
<img src="./static/img/gengduo.png" alt="" class="nav-action-bar" data-id="{{items._id}}"></a>
|
||||||
|
</dd> -->
|
||||||
|
<!-- {{# } }} -->
|
||||||
|
<!-- {{# } }} -->
|
||||||
{{# }); }}
|
{{# }); }}
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
</li>
|
</li>
|
||||||
{{# } }}
|
{{# } }}
|
||||||
@ -819,6 +834,32 @@
|
|||||||
{{# if(d.graph_size === "small"){ }}
|
{{# if(d.graph_size === "small"){ }}
|
||||||
|
|
||||||
<div class="layui-col-md3 layui-col" id="model{{d.report_id}}">
|
<div class="layui-col-md3 layui-col" id="model{{d.report_id}}">
|
||||||
|
|
||||||
|
<div class="layui-card modify-layui-card-small">
|
||||||
|
<div class="row-top controlhover">
|
||||||
|
<div class="row-tit">
|
||||||
|
<p><a href="javascript:;" class="gobaobiaoinfo" data-id="{{d.report_id}}" data-cat="{{d.cat}}">{{d.name}}</a></p>
|
||||||
|
</div>
|
||||||
|
<div class="control">
|
||||||
|
<div class="action-box" >
|
||||||
|
<div class="tishi model-gengx" data-id="{{d.report_id}}" title="更新">
|
||||||
|
<img src="./static/img/gengxin.png" />
|
||||||
|
</div>
|
||||||
|
<div class="tishi model-fuzhi" title="复制" data-id="{{d.report_id}}" >
|
||||||
|
<img src="./static/img/fuzhi2.png" />
|
||||||
|
</div>
|
||||||
|
<div class="tishi model-gengduo" title="更多">
|
||||||
|
<img src="./static/img/gengduo.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="model-two-{{d.report_id}}">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -831,7 +872,32 @@
|
|||||||
{{# } else { }}
|
{{# } else { }}
|
||||||
<div class="layui-col-md6 layui-col" id="model{{d.report_id}}">
|
<div class="layui-col-md6 layui-col" id="model{{d.report_id}}">
|
||||||
{{# } }}
|
{{# } }}
|
||||||
|
|
||||||
|
<div class="layui-card modify-layui-card">
|
||||||
|
<div class="row-top controlhover">
|
||||||
|
<div class="row-tit">
|
||||||
|
<p><a href="javascript:;" class="gobaobiaoinfo" data-id="{{d.report_id}}" data-cat="{{d.cat}}">{{d.name}}</a></p>
|
||||||
|
</div>
|
||||||
|
<div class="control">
|
||||||
|
<div class="action-box" >
|
||||||
|
<div class="tishi model-gengx" data-id="{{d.report_id}}" title="更新">
|
||||||
|
<img src="./static/img/gengxin.png" />
|
||||||
|
</div>
|
||||||
|
<div class="tishi model-fuzhi" title="复制" data-id="{{d.report_id}}">
|
||||||
|
<img src="./static/img/fuzhi2.png" />
|
||||||
|
</div>
|
||||||
|
<div class="tishi model-gengduo" title="更多">
|
||||||
|
<img src="./static/img/gengduo.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="model-two-{{d.report_id}}">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{# } else { }}
|
{{# } else { }}
|
||||||
@ -840,7 +906,33 @@
|
|||||||
{{# } else { }}
|
{{# } else { }}
|
||||||
<div class="layui-col-md6 layui-col" id="model{{d.report_id}}">
|
<div class="layui-col-md6 layui-col" id="model{{d.report_id}}">
|
||||||
{{# } }}
|
{{# } }}
|
||||||
|
|
||||||
|
<div class="layui-card modify-layui-card">
|
||||||
|
<div class="row-top controlhover">
|
||||||
|
<div class="row-tit">
|
||||||
|
<p><a href="javascript:;" class="gobaobiaoinfo" data-id="{{d.report_id}}" data-cat="{{d.cat}}">{{d.name}}</a></p>
|
||||||
|
</div>
|
||||||
|
<div class="control">
|
||||||
|
<div class="action-box" >
|
||||||
|
<div class="tishi model-gengx" data-id="{{d.report_id}}" title="更新">
|
||||||
|
<img src="./static/img/gengxin.png" />
|
||||||
|
</div>
|
||||||
|
<div class="tishi model-fuzhi" title="复制" data-id="{{d.report_id}}">
|
||||||
|
<img src="./static/img/fuzhi2.png" />
|
||||||
|
</div>
|
||||||
|
<div class="tishi model-gengduo" title="更多">
|
||||||
|
<img src="./static/img/gengduo.png" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="model-two-{{d.report_id}}">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,6 +24,10 @@
|
|||||||
<div class="analysis-navigation-bar-right-img analysis-navigation-bar-right-img-baobiao" title="报表">
|
<div class="analysis-navigation-bar-right-img analysis-navigation-bar-right-img-baobiao" title="报表">
|
||||||
<img src="./static/img/baobiao2.png">
|
<img src="./static/img/baobiao2.png">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="analysis-navigation-bar-right-img analysis-fanhui" title="返回">
|
||||||
|
<img src="./static/img/fanhui.png">
|
||||||
|
<span>返回</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -24,6 +24,10 @@
|
|||||||
<div class="analysis-navigation-bar-right-img analysis-navigation-bar-right-img-baobiao" title="报表">
|
<div class="analysis-navigation-bar-right-img analysis-navigation-bar-right-img-baobiao" title="报表">
|
||||||
<img src="./static/img/baobiao2.png">
|
<img src="./static/img/baobiao2.png">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="analysis-navigation-bar-right-img analysis-fanhui" title="返回">
|
||||||
|
<img src="./static/img/fanhui.png">
|
||||||
|
<span>返回</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -24,6 +24,12 @@
|
|||||||
<div class="analysis-navigation-bar-right-img analysis-navigation-bar-right-img-baobiao" title="报表">
|
<div class="analysis-navigation-bar-right-img analysis-navigation-bar-right-img-baobiao" title="报表">
|
||||||
<img src="./static/img/baobiao2.png">
|
<img src="./static/img/baobiao2.png">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="analysis-navigation-bar-right-img analysis-fanhui" title="返回">
|
||||||
|
<img src="./static/img/fanhui.png">
|
||||||
|
<span>返回</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -102,6 +102,9 @@
|
|||||||
|
|
||||||
|
|
||||||
{{# } else { }}
|
{{# } else { }}
|
||||||
|
|
||||||
|
{{# if(d.cat != "user_property"){ }}
|
||||||
|
|
||||||
<div class="data-box">
|
<div class="data-box">
|
||||||
<div style="display: flex; align-items: center;">
|
<div style="display: flex; align-items: center;">
|
||||||
<div class="data-num">{{d.sameday}}<span></span></div>
|
<div class="data-num">{{d.sameday}}<span></span></div>
|
||||||
@ -135,6 +138,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{# } }}
|
||||||
|
|
||||||
|
|
||||||
<div class="echarts-box">
|
<div class="echarts-box">
|
||||||
<div id="{{d.id}}" class="echarts"></div>
|
<div id="{{d.id}}" class="echarts"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,141 +2,67 @@
|
|||||||
<script id="kanban-model-modify-type-dot" type="text/html">
|
<script id="kanban-model-modify-type-dot" type="text/html">
|
||||||
|
|
||||||
{{# if(d.modelsize === "small"){ }}
|
{{# if(d.modelsize === "small"){ }}
|
||||||
<div class="layui-card modify-layui-card-small">
|
<div class="conent-box" id="conent-box{{d.id}}">
|
||||||
<div class="row-top controlhover">
|
|
||||||
<div class="row-tit">
|
|
||||||
<p><a href="javascript:;" class="gobaobiaoinfo" data-id="{{d.id}}" data-cat="{{d.cat}}">{{d.name}}</a></p>
|
|
||||||
</div>
|
|
||||||
<div class="control">
|
|
||||||
<div class="action-box" >
|
|
||||||
<div class="tishi model-gengx" data-id="{{d.id}}" title="更新">
|
|
||||||
<img src="./static/img/gengxin.png" />
|
|
||||||
</div>
|
|
||||||
<div class="tishi model-fuzhi" title="复制" data-id="{{d.id}}" >
|
|
||||||
<img src="./static/img/fuzhi2.png" />
|
|
||||||
</div>
|
|
||||||
<div class="tishi model-gengduo" title="更多">
|
|
||||||
<img src="./static/img/gengduo.png" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="conent-box" id="conent-box{{d.id}}">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
{{# } else { }}
|
{{# } else { }}
|
||||||
|
|
||||||
{{# if(d.modeltype === "table"){ }}
|
{{# if(d.modeltype === "table"){ }}
|
||||||
|
|
||||||
<!-- <div class="layui-col-md6" style="float: none;"> -->
|
|
||||||
<div class="layui-card modify-layui-card">
|
|
||||||
<div class="row-top controlhover">
|
|
||||||
<div class="row-tit">
|
|
||||||
<p><a href="javascript:;" class="gobaobiaoinfo" data-id="{{d.id}}" data-cat="{{d.cat}}">{{d.name}}</a></p>
|
|
||||||
</div>
|
|
||||||
<div class="control">
|
|
||||||
<div class="action-box" >
|
|
||||||
<div class="tishi model-gengx" data-id="{{d.id}}" title="更新">
|
|
||||||
<img src="./static/img/gengxin.png" />
|
|
||||||
</div>
|
|
||||||
<div class="tishi model-fuzhi" title="复制" data-id="{{d.id}}">
|
|
||||||
<img src="./static/img/fuzhi2.png" />
|
|
||||||
</div>
|
|
||||||
<div class="tishi model-gengduo" title="更多">
|
|
||||||
<img src="./static/img/gengduo.png" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="condition-box controlhover">
|
<div class="condition-box controlhover">
|
||||||
<div class="time-cond">
|
<div class="time-cond">
|
||||||
{{# if(d.cat != "user_property"){ }}
|
{{# if(d.cat != "user_property"){ }}
|
||||||
{{# if(d.date != ""){ }}
|
{{# if(d.date != ""){ }}
|
||||||
<span class="model-times" id="times{{d.id}}" data-id="{{d.id}}" data-cat="{{d.cat}}" data-modelsize="{{d.modelsize}}" data-modeltype="{{d.modeltype}}" data-name="{{d.name}}">{{d.date}}</span>
|
<span class="model-times" id="times{{d.id}}" data-id="{{d.id}}" data-cat="{{d.cat}}" data-modelsize="{{d.modelsize}}" data-modeltype="{{d.modeltype}}" data-name="{{d.name}}">{{d.date}}</span>
|
||||||
{{# } }}
|
{{# } }}
|
||||||
<div class="xian"></div>
|
<div class="xian"></div>
|
||||||
<span class="model-screenlist" id="screenlist{{d.id}}" data-modelsize="{{d.modelsize}}" data-modeltype="{{d.modeltype}}" data-name="{{d.name}}" data-cat="{{d.cat}}" data-id="{{d.id}}">{{d.timeParticleSize}}</span>
|
<span class="model-screenlist" id="screenlist{{d.id}}" data-modelsize="{{d.modelsize}}" data-modeltype="{{d.modeltype}}" data-name="{{d.name}}" data-cat="{{d.cat}}" data-id="{{d.id}}">{{d.timeParticleSize}}</span>
|
||||||
{{# if(d.cat === "retention"){ }}
|
{{# if(d.cat === "retention"){ }}
|
||||||
<div class="xian"></div>
|
<div class="xian"></div>
|
||||||
{{# if(d.retentiontype === 0){ }}
|
{{# if(d.retentiontype === 0){ }}
|
||||||
<span class="kanben-retained-type" data-id="{{d.id}}" id="retention{{d.id}}" data-modelsize="{{d.modelsize}}" data-modeltype="{{d.modeltype}}" data-name="{{d.name}}" data-cat="{{d.cat}}">留存</span>
|
<span class="kanben-retained-type" data-id="{{d.id}}" id="retention{{d.id}}" data-modelsize="{{d.modelsize}}" data-modeltype="{{d.modeltype}}" data-name="{{d.name}}" data-cat="{{d.cat}}">留存</span>
|
||||||
{{# } else { }}
|
{{# } else { }}
|
||||||
<span class="kanben-retained-type" data-id="{{d.id}}" id="retention{{d.id}}" data-modelsize="{{d.modelsize}}" data-modeltype="{{d.modeltype}}" data-name="{{d.name}}" data-cat="{{d.cat}}">流失</span>
|
<span class="kanben-retained-type" data-id="{{d.id}}" id="retention{{d.id}}" data-modelsize="{{d.modelsize}}" data-modeltype="{{d.modeltype}}" data-name="{{d.name}}" data-cat="{{d.cat}}">流失</span>
|
||||||
{{# } }}
|
|
||||||
{{# } }}
|
|
||||||
{{# } }}
|
{{# } }}
|
||||||
</div>
|
{{# } }}
|
||||||
<div class="chart control" id="chart{{d.id}}" data-modelsize="{{d.modelsize}}" data-modeltype={{d.modeltype}} data-cat="{{d.cat}}" data-name="{{d.name}}" data-id="{{d.id}}">
|
{{# } }}
|
||||||
<img src="./static/img/qvshitu.png" /> <span>报表</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="conent-box" id="conent-box{{d.id}}">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="chart control" id="chart{{d.id}}" data-modelsize="{{d.modelsize}}" data-modeltype={{d.modeltype}} data-cat="{{d.cat}}" data-name="{{d.name}}" data-id="{{d.id}}">
|
||||||
|
<img src="./static/img/qvshitu.png" /> <span>报表</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="conent-box" id="conent-box{{d.id}}">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
{{# } else { }}
|
{{# } else { }}
|
||||||
<div class="layui-card modify-layui-card">
|
|
||||||
<div class="row-top controlhover">
|
|
||||||
<div class="row-tit">
|
|
||||||
<p><a href="javascript:;" class="gobaobiaoinfo" data-cat="{{d.cat}}" data-id="{{d.id}}">{{d.name}}</a></p>
|
|
||||||
<!-- <div class="tishi" title="活跃用户可以通过“登录.触发用户数”来进行计算,即有登录行为的用户的去重数.">
|
|
||||||
<img src="./static/img/tishi.png" />
|
|
||||||
</div> -->
|
|
||||||
</div>
|
|
||||||
<div class="control">
|
|
||||||
<div class="action-box" >
|
|
||||||
<div class="tishi model-gengx" data-id="{{d.id}}" title="更新">
|
|
||||||
<img src="./static/img/gengxin.png" />
|
|
||||||
</div>
|
|
||||||
<div class="tishi model-fuzhi" title="复制" data-id="{{d.id}}">
|
|
||||||
<img src="./static/img/fuzhi2.png" />
|
|
||||||
</div>
|
|
||||||
<div class="tishi model-gengduo" title="更多">
|
|
||||||
<img src="./static/img/gengduo.png" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="condition-box controlhover">
|
<div class="condition-box controlhover">
|
||||||
<div class="time-cond">
|
<div class="time-cond">
|
||||||
{{# if(d.cat != "user_property"){ }}
|
{{# if(d.cat != "user_property"){ }}
|
||||||
<span class="model-times" id="times{{d.id}}" data-id="{{d.id}}" data-cat="{{d.cat}}" data-modelsize="{{d.modelsize}}" data-modeltype="{{d.modeltype}}" data-name="{{d.name}}" >{{d.date}}</span>
|
<span class="model-times" id="times{{d.id}}" data-id="{{d.id}}" data-cat="{{d.cat}}" data-modelsize="{{d.modelsize}}" data-modeltype="{{d.modeltype}}" data-name="{{d.name}}" >{{d.date}}</span>
|
||||||
<div class="xian"></div>
|
<div class="xian"></div>
|
||||||
{{# if(d.date != ""){ }}
|
{{# if(d.date != ""){ }}
|
||||||
<span class="model-screenlist" id="screenlist{{d.id}}" data-modelsize="{{d.modelsize}}" data-modeltype="{{d.modeltype}}" data-name="{{d.name}}" data-cat="{{d.cat}}" data-id="{{d.id}}" >{{d.timeParticleSize}}</span>
|
<span class="model-screenlist" id="screenlist{{d.id}}" data-modelsize="{{d.modelsize}}" data-modeltype="{{d.modeltype}}" data-name="{{d.name}}" data-cat="{{d.cat}}" data-id="{{d.id}}" >{{d.timeParticleSize}}</span>
|
||||||
{{# } }}
|
{{# } }}
|
||||||
{{# if(d.cat === "retention"){ }}
|
{{# if(d.cat === "retention"){ }}
|
||||||
<div class="xian"></div>
|
<div class="xian"></div>
|
||||||
{{# if(d.retentiontype === 0){ }}
|
{{# if(d.retentiontype === 0){ }}
|
||||||
<span class="kanben-retained-type" data-id="{{d.id}}" id="retention{{d.id}}" data-modelsize="{{d.modelsize}}" data-modeltype="{{d.modeltype}}" data-name="{{d.name}}" data-cat="{{d.cat}}">留存</span>
|
<span class="kanben-retained-type" data-id="{{d.id}}" id="retention{{d.id}}" data-modelsize="{{d.modelsize}}" data-modeltype="{{d.modeltype}}" data-name="{{d.name}}" data-cat="{{d.cat}}">留存</span>
|
||||||
{{# } else { }}
|
{{# } else { }}
|
||||||
<span class="kanben-retained-type" data-id="{{d.id}}" id="retention{{d.id}}" data-modelsize="{{d.modelsize}}" data-modeltype="{{d.modeltype}}" data-name="{{d.name}}" data-cat="{{d.cat}}">流失</span>
|
<span class="kanben-retained-type" data-id="{{d.id}}" id="retention{{d.id}}" data-modelsize="{{d.modelsize}}" data-modeltype="{{d.modeltype}}" data-name="{{d.name}}" data-cat="{{d.cat}}">流失</span>
|
||||||
{{# } }}
|
|
||||||
{{# } }}
|
|
||||||
{{# } }}
|
{{# } }}
|
||||||
|
{{# } }}
|
||||||
</div>
|
{{# } }}
|
||||||
<div class="chart control" id="chart{{d.id}}" data-modelsize="{{d.modelsize}}" data-modeltype={{d.modeltype}} data-cat="{{d.cat}}" data-name="{{d.name}}" data-id="{{d.id}}">
|
|
||||||
<img src="./static/img/qvshitu.png" /> <span>趋势图</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="conent-box" id="conent-box{{d.id}}">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="chart control" id="chart{{d.id}}" data-modelsize="{{d.modelsize}}" data-modeltype={{d.modeltype}} data-cat="{{d.cat}}" data-name="{{d.name}}" data-id="{{d.id}}">
|
||||||
|
<img src="./static/img/qvshitu.png" /> <span>趋势图</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="conent-box" id="conent-box{{d.id}}">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
{{# } }}
|
{{# } }}
|
||||||
|
|
||||||
|
@ -18,6 +18,10 @@
|
|||||||
<div class="analysis-navigation-bar-right-img analysis-navigation-bar-right-img-baobiao" title="报表">
|
<div class="analysis-navigation-bar-right-img analysis-navigation-bar-right-img-baobiao" title="报表">
|
||||||
<img src="./static/img/baobiao2.png">
|
<img src="./static/img/baobiao2.png">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="analysis-navigation-bar-right-img analysis-fanhui" title="返回">
|
||||||
|
<img src="./static/img/fanhui.png">
|
||||||
|
<span>返回</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
235
web/src/x.min.js
vendored
235
web/src/x.min.js
vendored
@ -171,12 +171,17 @@ var X = window.X || {
|
|||||||
},
|
},
|
||||||
success:function(d){
|
success:function(d){
|
||||||
// console.log(d);
|
// console.log(d);
|
||||||
|
layer.close(index);
|
||||||
if(d.code == 0){
|
if(d.code == 0){
|
||||||
callback && callback(d.data);
|
if( JSON.stringify(d.data) != "{}" && JSON.stringify(d.data) != "[]"){
|
||||||
|
callback && callback(d.data);
|
||||||
|
}else {
|
||||||
|
layer.msg('查无数据');
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
layer.msg(d.msg);
|
layer.msg(d.msg);
|
||||||
}
|
}
|
||||||
layer.close(index);
|
|
||||||
},
|
},
|
||||||
error:function(error){
|
error:function(error){
|
||||||
layer.msg('条件错误');
|
layer.msg('条件错误');
|
||||||
@ -644,8 +649,7 @@ var X = window.X || {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
date = data[0]['start_date'] + " - " + data[0]['end_date'];
|
date = data[0]['start_date'] + " - " + data[0]['end_date'];
|
||||||
console.log(titledata);
|
|
||||||
console.log(condata);
|
|
||||||
var dataArr = {
|
var dataArr = {
|
||||||
titledata:titledata,
|
titledata:titledata,
|
||||||
condata:condata,
|
condata:condata,
|
||||||
@ -2086,9 +2090,13 @@ var X = window.X || {
|
|||||||
|
|
||||||
// 反向填充数据
|
// 反向填充数据
|
||||||
function backfilldata(d){
|
function backfilldata(d){
|
||||||
|
|
||||||
data = d.query;
|
data = d.query;
|
||||||
// filtersymbols = data.cachedata.filtersymbols;
|
// filtersymbols = data.cachedata.filtersymbols;
|
||||||
|
var time = $("#analtsis-condition-date").val();
|
||||||
|
var timearr = time.split(" ");
|
||||||
|
data['eventView']['startTime'] = timearr[0] + " "+"00:00:00";
|
||||||
|
data['eventView']['endTime'] = timearr[2]+" "+"23:59:59";
|
||||||
baobiaodata = d;
|
baobiaodata = d;
|
||||||
|
|
||||||
if(d.query.eventView.filts.length > 0){
|
if(d.query.eventView.filts.length > 0){
|
||||||
@ -3016,10 +3024,16 @@ var X = window.X || {
|
|||||||
|
|
||||||
// 下载
|
// 下载
|
||||||
$(document).off('click','.download-table').on('click','.download-table',function(){
|
$(document).off('click','.download-table').on('click','.download-table',function(){
|
||||||
console.log(11111);
|
// console.log(11111);
|
||||||
X.download('ck/event_model_export',data,'事件分析');
|
X.download('ck/event_model_export',data,'事件分析');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 返回
|
||||||
|
$(document).off('click','.analysis-fanhui').on('click','.analysis-fanhui',function(){
|
||||||
|
X.gourl("dashboard");
|
||||||
|
// return;
|
||||||
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 保存报表
|
// 保存报表
|
||||||
@ -3592,6 +3606,12 @@ var X = window.X || {
|
|||||||
calculationdata();
|
calculationdata();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 返回
|
||||||
|
$(document).off('click','.analysis-fanhui').on('click','.analysis-fanhui',function(){
|
||||||
|
X.gourl("dashboard");
|
||||||
|
// return;
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
@ -3889,6 +3909,7 @@ var X = window.X || {
|
|||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
var game = $(this).attr("data-game");
|
var game = $(this).attr("data-game");
|
||||||
$(".projecttit").html($(this).html());
|
$(".projecttit").html($(this).html());
|
||||||
|
X.DATA['dashboard_id'] = "";
|
||||||
X.DATA['projectid'] = id;
|
X.DATA['projectid'] = id;
|
||||||
X.DATA["game"] = game;
|
X.DATA["game"] = game;
|
||||||
//侧边栏数据渲染
|
//侧边栏数据渲染
|
||||||
@ -4349,7 +4370,22 @@ var X = window.X || {
|
|||||||
X.DATA['ProjectData'] = d.spaces;
|
X.DATA['ProjectData'] = d.spaces;
|
||||||
X.laytpldata('#mykanban-dot',d.kanban,'#mykanban');
|
X.laytpldata('#mykanban-dot',d.kanban,'#mykanban');
|
||||||
X.laytpldata('#kongjian-dot',d.spaces,'#kongjian');
|
X.laytpldata('#kongjian-dot',d.spaces,'#kongjian');
|
||||||
|
|
||||||
|
// if(X.DATA['dashboard_id'] == undefined || X.DATA['dashboard_id'] == ""){
|
||||||
|
// $(".tab-tit-box .tab-tit").html(d.spaces[0]['children'][0]['name']);
|
||||||
|
// X.DATA['dashboard_id'] = d.spaces[0]['children'][0]['_id']; //看板id
|
||||||
|
// }else {
|
||||||
|
// for(let i in d.spaces){
|
||||||
|
// for(let j in d.spaces[i]['children']){
|
||||||
|
// if(d.spaces[i]['children'][j]['_id'] == X.DATA['dashboard_id']){
|
||||||
|
// $(".tab-tit-box .tab-tit").html(d.spaces[i]['children'][j]['name']);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// $("#model-box").html("");
|
||||||
|
// // 获取报表数据
|
||||||
|
// X.pageLogic['dashboard'].gettabledata();
|
||||||
|
|
||||||
// var updateOutput = function(e){
|
// var updateOutput = function(e){
|
||||||
|
|
||||||
@ -4370,8 +4406,8 @@ var X = window.X || {
|
|||||||
|
|
||||||
// };
|
// };
|
||||||
|
|
||||||
// $('#kongjian').nestable({group: 1}).on('change', updateOutput);
|
// $('#sidebar-box').nestable({group: 1}).on('change', updateOutput);
|
||||||
// updateOutput($('#kongjian').data('output', $('#nestable-output')));
|
// updateOutput($('#sidebar-box').data('output', $('#nestable-output')));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -4385,7 +4421,7 @@ var X = window.X || {
|
|||||||
for(var z in eventdata){
|
for(var z in eventdata){
|
||||||
if(id){
|
if(id){
|
||||||
//当有id时更新对应id看板内的内容
|
//当有id时更新对应id看板内的内容
|
||||||
X.template("modeltype",id,eventdata[z],function(){
|
X.template("modeltype","model-two-"+id,eventdata[z],function(){
|
||||||
// X.pageLogic['dashboard'].morefeatures(eventdata[z]);
|
// X.pageLogic['dashboard'].morefeatures(eventdata[z]);
|
||||||
X.template("modeltable",'conent-box'+eventdata[z]['id'],eventdata[z],function(){
|
X.template("modeltable",'conent-box'+eventdata[z]['id'],eventdata[z],function(){
|
||||||
X.pageLogic['dashboard'].morefeatures(eventdata[z]);
|
X.pageLogic['dashboard'].morefeatures(eventdata[z]);
|
||||||
@ -4393,7 +4429,7 @@ var X = window.X || {
|
|||||||
});
|
});
|
||||||
}else {
|
}else {
|
||||||
//渲染模板和数据
|
//渲染模板和数据
|
||||||
X.template("modeltype",'model'+eventdata[z]['id'],eventdata[z],function(){
|
X.template("modeltype",'model-two-'+eventdata[z]['id'],eventdata[z],function(){
|
||||||
//X.pageLogic['dashboard'].morefeatures(eventdata[z]);
|
//X.pageLogic['dashboard'].morefeatures(eventdata[z]);
|
||||||
X.template("modeltable",'conent-box'+eventdata[z]['id'],eventdata[z],function(){
|
X.template("modeltable",'conent-box'+eventdata[z]['id'],eventdata[z],function(){
|
||||||
X.pageLogic['dashboard'].morefeatures(eventdata[z]);
|
X.pageLogic['dashboard'].morefeatures(eventdata[z]);
|
||||||
@ -4938,7 +4974,7 @@ var X = window.X || {
|
|||||||
filtersymbols:[],//筛选符号
|
filtersymbols:[],//筛选符号
|
||||||
screentypearr:[], //筛选项数据
|
screentypearr:[], //筛选项数据
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
// sql语句显示
|
// sql语句显示
|
||||||
$(document).off('click','.sqlquery').on('click','.sqlquery',function(){
|
$(document).off('click','.sqlquery').on('click','.sqlquery',function(){
|
||||||
@ -4947,7 +4983,7 @@ var X = window.X || {
|
|||||||
X.querycriteriapop(data,'conditionquery',offset.left - 410,offset.top+obj.height(),function(){
|
X.querycriteriapop(data,'conditionquery',offset.left - 410,offset.top+obj.height(),function(){
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
// 日期渲染
|
// 日期渲染
|
||||||
X.daterender("#retained-condition-date",function(start, end, label){
|
X.daterender("#retained-condition-date",function(start, end, label){
|
||||||
@ -4956,7 +4992,7 @@ var X = window.X || {
|
|||||||
data['eventView']['startTime'] = startTime;
|
data['eventView']['startTime'] = startTime;
|
||||||
data['eventView']['endTime'] = endTime;
|
data['eventView']['endTime'] = endTime;
|
||||||
distributiondata();
|
distributiondata();
|
||||||
})
|
});
|
||||||
|
|
||||||
var time = $("#retained-condition-date").val();
|
var time = $("#retained-condition-date").val();
|
||||||
var timearr = time.split(" ");
|
var timearr = time.split(" ");
|
||||||
@ -4980,7 +5016,7 @@ var X = window.X || {
|
|||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
X.template("grouped","shushi");
|
X.template("grouped","shushi");
|
||||||
|
|
||||||
@ -5021,7 +5057,7 @@ var X = window.X || {
|
|||||||
X.api("data_auth/load_filter_props","post",{event_name:d[0]['category'][0]['event_name']},function(val){
|
X.api("data_auth/load_filter_props","post",{event_name:d[0]['category'][0]['event_name']},function(val){
|
||||||
groupitemeventsdata[0] = val;
|
groupitemeventsdata[0] = val;
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
|
|
||||||
$(document).off('click','.ant-dropdown-trigger').on('click','.ant-dropdown-trigger',function(){
|
$(document).off('click','.ant-dropdown-trigger').on('click','.ant-dropdown-trigger',function(){
|
||||||
@ -5039,7 +5075,7 @@ var X = window.X || {
|
|||||||
})
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
//设置一级事件中第二个参数
|
//设置一级事件中第二个参数
|
||||||
$(document).off('click','.analysis-zhibiao-list-type2').on('click','.analysis-zhibiao-list-type2',function(){
|
$(document).off('click','.analysis-zhibiao-list-type2').on('click','.analysis-zhibiao-list-type2',function(){
|
||||||
@ -5067,7 +5103,7 @@ var X = window.X || {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
//设置一级事件中第三个参数
|
//设置一级事件中第三个参数
|
||||||
$(document).off('click','.analysis-zhibiao-condition').on('click','.analysis-zhibiao-condition',function(){
|
$(document).off('click','.analysis-zhibiao-condition').on('click','.analysis-zhibiao-condition',function(){
|
||||||
@ -5083,7 +5119,7 @@ var X = window.X || {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.userevent-granularity').on('click','.userevent-granularity',function(){
|
$(document).off('click','.userevent-granularity').on('click','.userevent-granularity',function(){
|
||||||
var sectionid = data['events'][0];
|
var sectionid = data['events'][0];
|
||||||
@ -5093,14 +5129,14 @@ var X = window.X || {
|
|||||||
data['events'][0]['quotaIntervalArr'] = val.quotaIntervalArr;
|
data['events'][0]['quotaIntervalArr'] = val.quotaIntervalArr;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
//重命名指标
|
//重命名指标
|
||||||
$(document).off('click','.analysis-chongmingming').on('click','.analysis-chongmingming',function() {
|
$(document).off('click','.analysis-chongmingming').on('click','.analysis-chongmingming',function() {
|
||||||
$("#analysis-con-left-screen-list-left-zhibiaoname-initial-event").show();
|
$("#analysis-con-left-screen-list-left-zhibiaoname-initial-event").show();
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
$(".analysis-chongmingming-del").show();
|
$(".analysis-chongmingming-del").show();
|
||||||
})
|
});
|
||||||
|
|
||||||
//删除重命名
|
//删除重命名
|
||||||
$(document).off('click','.analysis-chongmingming-del').on('click','.analysis-chongmingming-del',function() {
|
$(document).off('click','.analysis-chongmingming-del').on('click','.analysis-chongmingming-del',function() {
|
||||||
@ -5108,19 +5144,19 @@ var X = window.X || {
|
|||||||
$(".analysis-con-left-screen-list-left-zhibiaoname-txt").val('');
|
$(".analysis-con-left-screen-list-left-zhibiaoname-txt").val('');
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
$(".analysis-chongmingming ").show();
|
$(".analysis-chongmingming ").show();
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-con-left-screen-list-left-zhibiaoname-initial-event input').on('blur','.analysis-con-left-screen-list-left-zhibiaoname-initial-event input',function(){
|
$(document).off('click','.analysis-con-left-screen-list-left-zhibiaoname-initial-event input').on('blur','.analysis-con-left-screen-list-left-zhibiaoname-initial-event input',function(){
|
||||||
var txt = $(this).val();
|
var txt = $(this).val();
|
||||||
data['events'][0]['renameindicator'] = txt;
|
data['events'][0]['renameindicator'] = txt;
|
||||||
})
|
});
|
||||||
|
|
||||||
// 添加筛选项
|
// 添加筛选项
|
||||||
$(document).off('click','.analysis-shaix').on('click','.analysis-shaix',function(){
|
$(document).off('click','.analysis-shaix').on('click','.analysis-shaix',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
var index = obj.attr("data-index");
|
var index = obj.attr("data-index");
|
||||||
addscreen(index);
|
addscreen(index);
|
||||||
})
|
});
|
||||||
|
|
||||||
// 添加筛选项
|
// 添加筛选项
|
||||||
function addscreen(index){
|
function addscreen(index){
|
||||||
@ -5140,7 +5176,7 @@ var X = window.X || {
|
|||||||
screentypearr[index] = d;
|
screentypearr[index] = d;
|
||||||
filtersymbols.push(d[0]['category'][0]["category"]);
|
filtersymbols.push(d[0]['category'][0]["category"]);
|
||||||
})
|
})
|
||||||
}
|
};
|
||||||
|
|
||||||
$(document).off("click",".ta-property-select").on('click','.ta-property-select',function(){
|
$(document).off("click",".ta-property-select").on('click','.ta-property-select',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
@ -5157,7 +5193,7 @@ var X = window.X || {
|
|||||||
data['events'][index]['filts'][indexs]['data_type'] = val.type;
|
data['events'][index]['filts'][indexs]['data_type'] = val.type;
|
||||||
data['events'][index]['filts'][indexs]['tableType'] = val.table_type;
|
data['events'][index]['filts'][indexs]['tableType'] = val.table_type;
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-choicetypename').on('click','.analysis-choicetypename',function(){
|
$(document).off('click','.analysis-choicetypename').on('click','.analysis-choicetypename',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
@ -5172,7 +5208,7 @@ var X = window.X || {
|
|||||||
X.template("userpar","userpar-event",data['events']);
|
X.template("userpar","userpar-event",data['events']);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-con-left-screen-list-right-screen-qh-tit').on('click','.analysis-con-left-screen-list-right-screen-qh-tit',function(){
|
$(document).off('click','.analysis-con-left-screen-list-right-screen-qh-tit').on('click','.analysis-con-left-screen-list-right-screen-qh-tit',function(){
|
||||||
var tit = $(this).html();
|
var tit = $(this).html();
|
||||||
@ -5183,7 +5219,7 @@ var X = window.X || {
|
|||||||
$(this).html('且');
|
$(this).html('且');
|
||||||
data['events'][0]['relation'] = 'and';
|
data['events'][0]['relation'] = 'and';
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-zhibiao-list-type4 input').on('blur','.analysis-zhibiao-list-type4 input',function(){
|
$(document).off('click','.analysis-zhibiao-list-type4 input').on('blur','.analysis-zhibiao-list-type4 input',function(){
|
||||||
var index = $(this).attr("data-index");
|
var index = $(this).attr("data-index");
|
||||||
@ -5192,15 +5228,14 @@ var X = window.X || {
|
|||||||
var valarr = val.split(",");
|
var valarr = val.split(",");
|
||||||
data['events'][index]['filts'][indexs]['ftv']=valarr;
|
data['events'][index]['filts'][indexs]['ftv']=valarr;
|
||||||
data['events'][index]['filts'][indexs]['strftv']=val;
|
data['events'][index]['filts'][indexs]['strftv']=val;
|
||||||
})
|
});
|
||||||
|
|
||||||
|
|
||||||
// 分组项
|
// 分组项
|
||||||
$(document).off('click','.analysis-action-right').on('click','.analysis-action-right',function() {
|
$(document).off('click','.analysis-action-right').on('click','.analysis-action-right',function() {
|
||||||
var index = $(this).attr("data-index");
|
var index = $(this).attr("data-index");
|
||||||
data.eventView.groupBy.splice(index,1);
|
data.eventView.groupBy.splice(index,1);
|
||||||
X.template("grouped","shushi",data['eventView']['groupBy']);
|
X.template("grouped","shushi",data['eventView']['groupBy']);
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-footadd___2D4YB').on('click','.analysis-footadd___2D4YB',function() {
|
$(document).off('click','.analysis-footadd___2D4YB').on('click','.analysis-footadd___2D4YB',function() {
|
||||||
|
|
||||||
@ -5214,7 +5249,7 @@ var X = window.X || {
|
|||||||
};
|
};
|
||||||
data['eventView']['groupBy'].push(arr);
|
data['eventView']['groupBy'].push(arr);
|
||||||
X.template("grouped","shushi",data['eventView']['groupBy']);
|
X.template("grouped","shushi",data['eventView']['groupBy']);
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-ant-dropdown-trigger').on('click','.analysis-ant-dropdown-trigger',function(){
|
$(document).off('click','.analysis-ant-dropdown-trigger').on('click','.analysis-ant-dropdown-trigger',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
@ -5228,7 +5263,7 @@ var X = window.X || {
|
|||||||
data.eventView.groupBy[index]['data_type'] = val.type;
|
data.eventView.groupBy[index]['data_type'] = val.type;
|
||||||
data.eventView.groupBy[index]['table_type'] = val.table_type;
|
data.eventView.groupBy[index]['table_type'] = val.table_type;
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
|
|
||||||
// 时间粒度
|
// 时间粒度
|
||||||
X.laydropdown('.analtsis-timeParticleSize',X['DATA']['screenlist']['distribution'],function(d){
|
X.laydropdown('.analtsis-timeParticleSize',X['DATA']['screenlist']['distribution'],function(d){
|
||||||
@ -5236,14 +5271,14 @@ var X = window.X || {
|
|||||||
$(".analtsis-timeParticleSize").html(d.title);
|
$(".analtsis-timeParticleSize").html(d.title);
|
||||||
data['eventView']['timeParticleSize'] = d.id;
|
data['eventView']['timeParticleSize'] = d.id;
|
||||||
// retaineddata();
|
// retaineddata();
|
||||||
})
|
});
|
||||||
|
|
||||||
// 计算
|
// 计算
|
||||||
$(document).off('click','.analysis-calculation').on('click','.analysis-calculation',function(){
|
$(document).off('click','.analysis-calculation').on('click','.analysis-calculation',function(){
|
||||||
|
|
||||||
distributiondata()
|
distributiondata()
|
||||||
|
|
||||||
})
|
});
|
||||||
|
|
||||||
var querydata;
|
var querydata;
|
||||||
function distributiondata(){
|
function distributiondata(){
|
||||||
@ -5262,14 +5297,14 @@ var X = window.X || {
|
|||||||
d['tabletitle'].unshift('事件发生时间','总人数');
|
d['tabletitle'].unshift('事件发生时间','总人数');
|
||||||
updata(d)
|
updata(d)
|
||||||
})
|
})
|
||||||
}
|
};
|
||||||
|
|
||||||
function updata(d){
|
function updata(d){
|
||||||
var title = $(".select-chart").attr("title");
|
var title = $(".select-chart").attr("title");
|
||||||
if(title == '数据表'){ $(".table-div-box").show(); $(".analysis-echarts").hide(); retainedtable(d)}
|
if(title == '数据表'){ $(".table-div-box").show(); $(".analysis-echarts").hide(); retainedtable(d)}
|
||||||
else if(title == '数值分布'){ $(".table-div-box").hide(); $(".analysis-echarts").show(); retainednRetained(d) }
|
else if(title == '数值分布'){ $(".table-div-box").hide(); $(".analysis-echarts").show(); retainednRetained(d) }
|
||||||
else if(title == '百分比分布'){ $(".table-div-box").hide(); $(".analysis-echarts").show(); retaineddayRetained(d) }
|
else if(title == '百分比分布'){ $(".table-div-box").hide(); $(".analysis-echarts").show(); retaineddayRetained(d) }
|
||||||
}
|
};
|
||||||
|
|
||||||
$(document).off('click','.analtsis-chart-switch').on('click','.analtsis-chart-switch',function(){
|
$(document).off('click','.analtsis-chart-switch').on('click','.analtsis-chart-switch',function(){
|
||||||
if(querydata){
|
if(querydata){
|
||||||
@ -5281,7 +5316,7 @@ var X = window.X || {
|
|||||||
}else{
|
}else{
|
||||||
layer.msg('请先计算数据,在切换图表');
|
layer.msg('请先计算数据,在切换图表');
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
function retainedtable(d){
|
function retainedtable(d){
|
||||||
var tabledata = [];
|
var tabledata = [];
|
||||||
@ -5305,7 +5340,7 @@ var X = window.X || {
|
|||||||
// console.log(tabledata);
|
// console.log(tabledata);
|
||||||
X.laytpldata("#table-fenxi-th-dot",d.tabletitle,".table-fenxi-th");
|
X.laytpldata("#table-fenxi-th-dot",d.tabletitle,".table-fenxi-th");
|
||||||
X.laytpldata("#table-fenxi-td-dot",tabledata,".table-fenxi-td");
|
X.laytpldata("#table-fenxi-td-dot",tabledata,".table-fenxi-td");
|
||||||
}
|
};
|
||||||
|
|
||||||
function retainednRetained(d){
|
function retainednRetained(d){
|
||||||
var legendData = d.label;
|
var legendData = d.label;
|
||||||
@ -5389,7 +5424,7 @@ var X = window.X || {
|
|||||||
series: seriesData
|
series: seriesData
|
||||||
};
|
};
|
||||||
myChart.setOption(option,true);
|
myChart.setOption(option,true);
|
||||||
}
|
};
|
||||||
|
|
||||||
function retaineddayRetained(d){
|
function retaineddayRetained(d){
|
||||||
var legendData = d.label;
|
var legendData = d.label;
|
||||||
@ -5476,11 +5511,17 @@ var X = window.X || {
|
|||||||
series: seriesData
|
series: seriesData
|
||||||
};
|
};
|
||||||
myChart.setOption(option,true);
|
myChart.setOption(option,true);
|
||||||
}
|
};
|
||||||
|
|
||||||
$(document).off('click','.analysis-savereport').on('click','.analysis-savereport',function(){
|
$(document).off('click','.analysis-savereport').on('click','.analysis-savereport',function(){
|
||||||
X.parametersopen(data,'savereport','auto')
|
X.parametersopen(data,'savereport','auto')
|
||||||
})
|
});
|
||||||
|
|
||||||
|
// 返回
|
||||||
|
$(document).off('click','.analysis-fanhui').on('click','.analysis-fanhui',function(){
|
||||||
|
X.gourl("dashboard");
|
||||||
|
// return;
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -5801,14 +5842,14 @@ var X = window.X || {
|
|||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
//开启重命名
|
//开启重命名
|
||||||
$(document).off('click','.analysis-chongmingming-initial-event').on('click','.analysis-chongmingming-initial-event',function(){
|
$(document).off('click','.analysis-chongmingming-initial-event').on('click','.analysis-chongmingming-initial-event',function(){
|
||||||
$("#analysis-con-left-screen-list-left-zhibiaoname-initial-event").show();
|
$("#analysis-con-left-screen-list-left-zhibiaoname-initial-event").show();
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
$(".analysis-chongmingming-del-initial-event").show();
|
$(".analysis-chongmingming-del-initial-event").show();
|
||||||
})
|
});
|
||||||
|
|
||||||
//取消重命名
|
//取消重命名
|
||||||
$(document).off('click','.analysis-chongmingming-del-initial-event').on('click','.analysis-chongmingming-del-initial-event',function(){
|
$(document).off('click','.analysis-chongmingming-del-initial-event').on('click','.analysis-chongmingming-del-initial-event',function(){
|
||||||
@ -5816,7 +5857,7 @@ var X = window.X || {
|
|||||||
$("#analysis-con-left-screen-list-left-zhibiaoname-initial-event input").val('');
|
$("#analysis-con-left-screen-list-left-zhibiaoname-initial-event input").val('');
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
$(".analysis-chongmingming-initial-event").show();
|
$(".analysis-chongmingming-initial-event").show();
|
||||||
})
|
});
|
||||||
|
|
||||||
// 添加指标
|
// 添加指标
|
||||||
function addindex(){
|
function addindex(){
|
||||||
@ -5838,22 +5879,22 @@ var X = window.X || {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
};
|
||||||
|
|
||||||
//添加按钮
|
//添加按钮
|
||||||
$(document).off('click','.analysis-jia1').on('click','.analysis-jia1',function(){
|
$(document).off('click','.analysis-jia1').on('click','.analysis-jia1',function(){
|
||||||
addindex();
|
addindex();
|
||||||
})
|
});
|
||||||
$(document).off('click','.funnel-updataevent').on('click','.funnel-updataevent',function(){
|
$(document).off('click','.funnel-updataevent').on('click','.funnel-updataevent',function(){
|
||||||
addindex();
|
addindex();
|
||||||
})
|
});
|
||||||
|
|
||||||
// 添加筛选项
|
// 添加筛选项
|
||||||
$(document).off('click','.analysis-shaix').on('click','.analysis-shaix',function(){
|
$(document).off('click','.analysis-shaix').on('click','.analysis-shaix',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
var index = obj.attr("data-index");
|
var index = obj.attr("data-index");
|
||||||
addscreen(index);
|
addscreen(index);
|
||||||
})
|
});
|
||||||
|
|
||||||
// 添加筛选项
|
// 添加筛选项
|
||||||
function addscreen(index){
|
function addscreen(index){
|
||||||
@ -5869,20 +5910,20 @@ var X = window.X || {
|
|||||||
}
|
}
|
||||||
data['events'][index]['filts'].push(arr);
|
data['events'][index]['filts'].push(arr);
|
||||||
X.template("funnel","funnel-event",data['events']);
|
X.template("funnel","funnel-event",data['events']);
|
||||||
}
|
};
|
||||||
|
|
||||||
$(document).off('click','.analysis-zhibiao-updata').on('click','.analysis-zhibiao-updata',function(){
|
$(document).off('click','.analysis-zhibiao-updata').on('click','.analysis-zhibiao-updata',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
var index = obj.attr("data-index");
|
var index = obj.attr("data-index");
|
||||||
addscreen(index);
|
addscreen(index);
|
||||||
})
|
});
|
||||||
|
|
||||||
// 删除指定初始事件筛选
|
// 删除指定初始事件筛选
|
||||||
$(document).off('click','.analysis-del').on('click','.analysis-del',function(){
|
$(document).off('click','.analysis-del').on('click','.analysis-del',function(){
|
||||||
var index = $(this).attr("data-index");
|
var index = $(this).attr("data-index");
|
||||||
data['events'].splice(index,1);
|
data['events'].splice(index,1);
|
||||||
X.template("funnel","funnel-event",data['events']);
|
X.template("funnel","funnel-event",data['events']);
|
||||||
})
|
});
|
||||||
|
|
||||||
//删除指定筛选
|
//删除指定筛选
|
||||||
$(document).off('click','.analysis-zhibiao-list-del').on('click','.analysis-zhibiao-list-del',function(){
|
$(document).off('click','.analysis-zhibiao-list-del').on('click','.analysis-zhibiao-list-del',function(){
|
||||||
@ -5890,12 +5931,12 @@ var X = window.X || {
|
|||||||
var indexs = $(this).attr("data-twonum");
|
var indexs = $(this).attr("data-twonum");
|
||||||
data['events'][index]['filts'].splice(indexs,1);
|
data['events'][index]['filts'].splice(indexs,1);
|
||||||
X.template("funnel","funnel-event",data['events']);
|
X.template("funnel","funnel-event",data['events']);
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-con-left-screen-list-left-zhibiaoname-initial-event input').on('blur','.analysis-con-left-screen-list-left-zhibiaoname-initial-event input',function(){
|
$(document).off('click','.analysis-con-left-screen-list-left-zhibiaoname-initial-event input').on('blur','.analysis-con-left-screen-list-left-zhibiaoname-initial-event input',function(){
|
||||||
var txt = $(this).val();
|
var txt = $(this).val();
|
||||||
data['events'][0]['renameindicator'] = txt;
|
data['events'][0]['renameindicator'] = txt;
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.ant-dropdown-trigger').on('click','.ant-dropdown-trigger',function(){
|
$(document).off('click','.ant-dropdown-trigger').on('click','.ant-dropdown-trigger',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
@ -5915,7 +5956,7 @@ var X = window.X || {
|
|||||||
// console.log(data['events']);
|
// console.log(data['events']);
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.ta-property-select').on('click','.ta-property-select',function(){
|
$(document).off('click','.ta-property-select').on('click','.ta-property-select',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
@ -5930,7 +5971,7 @@ var X = window.X || {
|
|||||||
data['events'][index]['filts'][indexs]['data_type'] = val.type;
|
data['events'][index]['filts'][indexs]['data_type'] = val.type;
|
||||||
data['events'][index]['filts'][indexs]['table_type'] = val.table_type;
|
data['events'][index]['filts'][indexs]['table_type'] = val.table_type;
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
// 过滤数据
|
// 过滤数据
|
||||||
// function filteringdata(){
|
// function filteringdata(){
|
||||||
@ -5966,7 +6007,7 @@ var X = window.X || {
|
|||||||
data['events'][index]['filts'][indexs]['comparator'] = val.id;
|
data['events'][index]['filts'][indexs]['comparator'] = val.id;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-zhibiao-list-type4 input').on('blur','.analysis-zhibiao-list-type4 input',function(){
|
$(document).off('click','.analysis-zhibiao-list-type4 input').on('blur','.analysis-zhibiao-list-type4 input',function(){
|
||||||
var index = $(this).attr('data-index');
|
var index = $(this).attr('data-index');
|
||||||
@ -5975,7 +6016,7 @@ var X = window.X || {
|
|||||||
var txtarr = txt.split(",");
|
var txtarr = txt.split(",");
|
||||||
data['events'][index]['filts'][indexs]['strftv'] = txt;
|
data['events'][index]['filts'][indexs]['strftv'] = txt;
|
||||||
data['events'][index]['filts'][indexs]['ftv'] = txtarr;
|
data['events'][index]['filts'][indexs]['ftv'] = txtarr;
|
||||||
})
|
});
|
||||||
|
|
||||||
//全局筛选
|
//全局筛选
|
||||||
$(document).off('click','.analysis-overall-situation-add').on('click','.analysis-overall-situation-add',function(){
|
$(document).off('click','.analysis-overall-situation-add').on('click','.analysis-overall-situation-add',function(){
|
||||||
@ -5997,7 +6038,7 @@ var X = window.X || {
|
|||||||
$(".analysis-overall-situation-left-guanxi").hide();
|
$(".analysis-overall-situation-left-guanxi").hide();
|
||||||
}
|
}
|
||||||
X.template("globalfilter","xinwei-whole",data['eventView']['filts']);
|
X.template("globalfilter","xinwei-whole",data['eventView']['filts']);
|
||||||
})
|
});
|
||||||
|
|
||||||
//删除指定全局数据
|
//删除指定全局数据
|
||||||
$(document).off('click','.analysis-overall-situation-del').on('click','.analysis-overall-situation-del',function(){
|
$(document).off('click','.analysis-overall-situation-del').on('click','.analysis-overall-situation-del',function(){
|
||||||
@ -6009,7 +6050,7 @@ var X = window.X || {
|
|||||||
$(".analysis-overall-situation-left-guanxi").hide();
|
$(".analysis-overall-situation-left-guanxi").hide();
|
||||||
}
|
}
|
||||||
X.template("globalfilter","xinwei-whole",data['eventView']['filts']);
|
X.template("globalfilter","xinwei-whole",data['eventView']['filts']);
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-overall-situation-attr').on('click','.analysis-overall-situation-attr',function(){
|
$(document).off('click','.analysis-overall-situation-attr').on('click','.analysis-overall-situation-attr',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
@ -6025,7 +6066,7 @@ var X = window.X || {
|
|||||||
data['eventView']['filts'][index]['comparator_id'] = '==';
|
data['eventView']['filts'][index]['comparator_id'] = '==';
|
||||||
data['eventView']['filts'][index]['table_type'] = val.table_type;
|
data['eventView']['filts'][index]['table_type'] = val.table_type;
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
//循环给条件框渲染下拉框
|
//循环给条件框渲染下拉框
|
||||||
// function analysisdown(){
|
// function analysisdown(){
|
||||||
@ -6059,7 +6100,7 @@ var X = window.X || {
|
|||||||
}
|
}
|
||||||
X.template("globalfilter","xinwei-whole",data['eventView']['filts']);
|
X.template("globalfilter","xinwei-whole",data['eventView']['filts']);
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
// 分组项
|
// 分组项
|
||||||
$(document).off('click','.analysis-action-right').on('click','.analysis-action-right',function() {
|
$(document).off('click','.analysis-action-right').on('click','.analysis-action-right',function() {
|
||||||
@ -6067,7 +6108,7 @@ var X = window.X || {
|
|||||||
data.eventView.groupBy.splice(index,1);
|
data.eventView.groupBy.splice(index,1);
|
||||||
X.template("grouped","shushi",data['eventView']['groupBy']);
|
X.template("grouped","shushi",data['eventView']['groupBy']);
|
||||||
$(".group-updata").show();
|
$(".group-updata").show();
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-footadd___2D4YB').on('click','.analysis-footadd___2D4YB',function() {
|
$(document).off('click','.analysis-footadd___2D4YB').on('click','.analysis-footadd___2D4YB',function() {
|
||||||
var arr = {
|
var arr = {
|
||||||
@ -6081,7 +6122,7 @@ var X = window.X || {
|
|||||||
data['eventView']['groupBy'].push(arr);
|
data['eventView']['groupBy'].push(arr);
|
||||||
X.template("grouped","shushi",data['eventView']['groupBy']);
|
X.template("grouped","shushi",data['eventView']['groupBy']);
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-ant-dropdown-trigger').on('click','.analysis-ant-dropdown-trigger',function(){
|
$(document).off('click','.analysis-ant-dropdown-trigger').on('click','.analysis-ant-dropdown-trigger',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
@ -6096,7 +6137,7 @@ var X = window.X || {
|
|||||||
data.eventView.groupBy[index]['data_type'] = val.type;
|
data.eventView.groupBy[index]['data_type'] = val.type;
|
||||||
data.eventView.groupBy[index]['table_type'] = val.table_type;
|
data.eventView.groupBy[index]['table_type'] = val.table_type;
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
// sql语句显示
|
// sql语句显示
|
||||||
$(document).off('click','.sqlquery').on('click','.sqlquery',function(){
|
$(document).off('click','.sqlquery').on('click','.sqlquery',function(){
|
||||||
@ -6105,7 +6146,7 @@ var X = window.X || {
|
|||||||
X.querycriteriapop(data,'conditionquery',offset.left - 410,offset.top+obj.height(),function(){
|
X.querycriteriapop(data,'conditionquery',offset.left - 410,offset.top+obj.height(),function(){
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
// 时间粒度
|
// 时间粒度
|
||||||
var timeParticleSizearr = [
|
var timeParticleSizearr = [
|
||||||
@ -6113,19 +6154,19 @@ var X = window.X || {
|
|||||||
{'title':'7日','id':'7'},
|
{'title':'7日','id':'7'},
|
||||||
{'title':'14日','id':'14'},
|
{'title':'14日','id':'14'},
|
||||||
{'title':'30日','id':'30'},
|
{'title':'30日','id':'30'},
|
||||||
]
|
];
|
||||||
X.laydropdown('.analtsis-timeParticleSize',timeParticleSizearr,function(d){
|
X.laydropdown('.analtsis-timeParticleSize',timeParticleSizearr,function(d){
|
||||||
$(".analtsis-timeParticleSize").html(d.title);
|
$(".analtsis-timeParticleSize").html(d.title);
|
||||||
data['eventView']['windows_gap'] = parseInt(d.id);
|
data['eventView']['windows_gap'] = parseInt(d.id);
|
||||||
retaineddata();
|
retaineddata();
|
||||||
})
|
});
|
||||||
|
|
||||||
// 计算按钮
|
// 计算按钮
|
||||||
$(document).off('click','.analysis-calculation').on('click','.analysis-calculation',function(){
|
$(document).off('click','.analysis-calculation').on('click','.analysis-calculation',function(){
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
|
||||||
retaineddata()
|
retaineddata()
|
||||||
})
|
});
|
||||||
var querydata;
|
var querydata;
|
||||||
function retaineddata(){
|
function retaineddata(){
|
||||||
var dataArr = {
|
var dataArr = {
|
||||||
@ -6140,13 +6181,13 @@ var X = window.X || {
|
|||||||
querydata = d;
|
querydata = d;
|
||||||
updata(d)
|
updata(d)
|
||||||
})
|
})
|
||||||
}
|
};
|
||||||
|
|
||||||
function updata(d){
|
function updata(d){
|
||||||
var title = $(".select-chart").attr("title");
|
var title = $(".select-chart").attr("title");
|
||||||
if(title == '转化图'){ retainedtable(d); retaineddayRetained(d);}
|
if(title == '转化图'){ retainedtable(d); retaineddayRetained(d);}
|
||||||
else if(title == '趋势图'){ retainednRetained(d);retainednRetainedtable(d); }
|
else if(title == '趋势图'){ retainednRetained(d);retainednRetainedtable(d); }
|
||||||
}
|
};
|
||||||
|
|
||||||
function retainedtable(d){
|
function retainedtable(d){
|
||||||
var tabledata=[];
|
var tabledata=[];
|
||||||
@ -6169,7 +6210,7 @@ var X = window.X || {
|
|||||||
|
|
||||||
X.laytpldata("#table-fenxi-th-dot",d.etitle,".table-fenxi-th");
|
X.laytpldata("#table-fenxi-th-dot",d.etitle,".table-fenxi-th");
|
||||||
X.laytpldata("#table-fenxi-td-dot",tabledata,".table-fenxi-td");
|
X.laytpldata("#table-fenxi-td-dot",tabledata,".table-fenxi-td");
|
||||||
}
|
};
|
||||||
|
|
||||||
//转化图
|
//转化图
|
||||||
function retaineddayRetained(d){
|
function retaineddayRetained(d){
|
||||||
@ -6219,7 +6260,7 @@ var X = window.X || {
|
|||||||
series: seriesData
|
series: seriesData
|
||||||
};
|
};
|
||||||
myChart.setOption(option,true);
|
myChart.setOption(option,true);
|
||||||
}
|
};
|
||||||
// 趋势图
|
// 趋势图
|
||||||
function retainednRetained(d){
|
function retainednRetained(d){
|
||||||
var arr = {};
|
var arr = {};
|
||||||
@ -6320,7 +6361,7 @@ var X = window.X || {
|
|||||||
};
|
};
|
||||||
myChart.setOption(option,true);
|
myChart.setOption(option,true);
|
||||||
|
|
||||||
}
|
};
|
||||||
//趋势图表格
|
//趋势图表格
|
||||||
function retainednRetainedtable(d){
|
function retainednRetainedtable(d){
|
||||||
var arr = {};
|
var arr = {};
|
||||||
@ -6388,7 +6429,7 @@ var X = window.X || {
|
|||||||
console.log(tabdata);
|
console.log(tabdata);
|
||||||
X.laytpldata("#table-fenxi-th-dot",xAxisdata,".table-fenxi-th");
|
X.laytpldata("#table-fenxi-th-dot",xAxisdata,".table-fenxi-th");
|
||||||
X.laytpldata("#table-fenxi-td-dot",tabdata,".table-fenxi-td");
|
X.laytpldata("#table-fenxi-td-dot",tabdata,".table-fenxi-td");
|
||||||
}
|
};
|
||||||
|
|
||||||
$(document).off('click','.analtsis-chart-switch').on('click','.analtsis-chart-switch',function(){
|
$(document).off('click','.analtsis-chart-switch').on('click','.analtsis-chart-switch',function(){
|
||||||
if(querydata){
|
if(querydata){
|
||||||
@ -6402,11 +6443,11 @@ var X = window.X || {
|
|||||||
}else{
|
}else{
|
||||||
layer.msg('请先计算数据,在切换图表');
|
layer.msg('请先计算数据,在切换图表');
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-savereport').on('click','.analysis-savereport',function(){
|
$(document).off('click','.analysis-savereport').on('click','.analysis-savereport',function(){
|
||||||
X.parametersopen(data,'savereport','auto')
|
X.parametersopen(data,'savereport','auto')
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-navigation-bar-right-img-baobiao').on('click','.analysis-navigation-bar-right-img-baobiao',function(){
|
$(document).off('click','.analysis-navigation-bar-right-img-baobiao').on('click','.analysis-navigation-bar-right-img-baobiao',function(){
|
||||||
X.parametersopen(data['eventView']['cksql'],'savedbaobiao','rt',function(d){
|
X.parametersopen(data['eventView']['cksql'],'savedbaobiao','rt',function(d){
|
||||||
@ -6422,7 +6463,13 @@ var X = window.X || {
|
|||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
|
// 返回
|
||||||
|
$(document).off('click','.analysis-fanhui').on('click','.analysis-fanhui',function(){
|
||||||
|
X.gourl("dashboard");
|
||||||
|
// return;
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -7490,7 +7537,11 @@ var X = window.X || {
|
|||||||
function backfilldata(d){
|
function backfilldata(d){
|
||||||
data = d.query;
|
data = d.query;
|
||||||
groupitemeventsdata = data.cachedata.groupitemeventsdata;
|
groupitemeventsdata = data.cachedata.groupitemeventsdata;
|
||||||
baobiaodata = d
|
baobiaodata = d;
|
||||||
|
var time = $("#retained-condition-date").val();
|
||||||
|
var timearr = time.split(" ");
|
||||||
|
data['eventView']['startTime'] = timearr[0] + " "+"00:00:00";
|
||||||
|
data['eventView']['endTime'] = timearr[2]+" "+"23:59:59";
|
||||||
|
|
||||||
X.template("globalfilter","xinwei-whole",data['eventView']['filts']);
|
X.template("globalfilter","xinwei-whole",data['eventView']['filts']);
|
||||||
|
|
||||||
@ -7505,9 +7556,15 @@ var X = window.X || {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 返回
|
||||||
|
$(document).off('click','.analysis-fanhui').on('click','.analysis-fanhui',function(){
|
||||||
|
X.gourl("dashboard");
|
||||||
|
// return;
|
||||||
|
});
|
||||||
|
|
||||||
// 下载
|
// 下载
|
||||||
$(document).off('click','.download-table').on('click','.download-table',function(){
|
$(document).off('click','.download-table').on('click','.download-table',function(){
|
||||||
console.log(11111);
|
// console.log(11111);
|
||||||
X.download('ck/ltv_model_export',data,'事件分析');
|
X.download('ck/ltv_model_export',data,'事件分析');
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -7540,9 +7597,9 @@ var X = window.X || {
|
|||||||
this.parms = parms;
|
this.parms = parms;
|
||||||
this.callback = parms.callback;
|
this.callback = parms.callback;
|
||||||
var data = parms;
|
var data = parms;
|
||||||
// console.log("type",data);
|
|
||||||
X.laytpldata("#kanban-model-modify-type-dot",data,"model"+data.id,function(html){
|
X.laytpldata("#kanban-model-modify-type-dot",data,"model"+data.id,function(html){
|
||||||
$("#model"+data.id).html(html);
|
// console.log(html);
|
||||||
|
$("#model-two-"+data.id).html(html);
|
||||||
})
|
})
|
||||||
|
|
||||||
// for(var i in data){
|
// for(var i in data){
|
||||||
@ -8748,6 +8805,10 @@ var X = window.X || {
|
|||||||
function backfilldata(d){
|
function backfilldata(d){
|
||||||
data = d.query;
|
data = d.query;
|
||||||
baobiaodata = d;
|
baobiaodata = d;
|
||||||
|
var time = $("#retained-condition-date").val();
|
||||||
|
var timearr = time.split(" ");
|
||||||
|
data['eventView']['startTime'] = timearr[0] + " "+"00:00:00";
|
||||||
|
data['eventView']['endTime'] = timearr[2]+" "+"23:59:59";
|
||||||
|
|
||||||
X.template("event","initial-event",data['events'][0]);
|
X.template("event","initial-event",data['events'][0]);
|
||||||
X.template("returnvisitevent","returnvisit-event",data['events'][1]);
|
X.template("returnvisitevent","returnvisit-event",data['events'][1]);
|
||||||
@ -9143,8 +9204,8 @@ var X = window.X || {
|
|||||||
|
|
||||||
// 返回
|
// 返回
|
||||||
$(document).off('click','.analysis-fanhui').on('click','.analysis-fanhui',function(){
|
$(document).off('click','.analysis-fanhui').on('click','.analysis-fanhui',function(){
|
||||||
// X.gourl("dashboard");
|
X.gourl("dashboard");
|
||||||
return;
|
// return;
|
||||||
});
|
});
|
||||||
|
|
||||||
// 下载
|
// 下载
|
||||||
@ -9698,6 +9759,12 @@ var X = window.X || {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 返回
|
||||||
|
$(document).off('click','.analysis-fanhui').on('click','.analysis-fanhui',function(){
|
||||||
|
X.gourl("dashboard");
|
||||||
|
// return;
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
@ -170,12 +170,17 @@ var X = window.X || {
|
|||||||
},
|
},
|
||||||
success:function(d){
|
success:function(d){
|
||||||
// console.log(d);
|
// console.log(d);
|
||||||
|
layer.close(index);
|
||||||
if(d.code == 0){
|
if(d.code == 0){
|
||||||
callback && callback(d.data);
|
if( JSON.stringify(d.data) != "{}" && JSON.stringify(d.data) != "[]"){
|
||||||
|
callback && callback(d.data);
|
||||||
|
}else {
|
||||||
|
layer.msg('查无数据');
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
layer.msg(d.msg);
|
layer.msg(d.msg);
|
||||||
}
|
}
|
||||||
layer.close(index);
|
|
||||||
},
|
},
|
||||||
error:function(error){
|
error:function(error){
|
||||||
layer.msg('条件错误');
|
layer.msg('条件错误');
|
||||||
@ -643,8 +648,7 @@ var X = window.X || {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
date = data[0]['start_date'] + " - " + data[0]['end_date'];
|
date = data[0]['start_date'] + " - " + data[0]['end_date'];
|
||||||
console.log(titledata);
|
|
||||||
console.log(condata);
|
|
||||||
var dataArr = {
|
var dataArr = {
|
||||||
titledata:titledata,
|
titledata:titledata,
|
||||||
condata:condata,
|
condata:condata,
|
||||||
|
@ -156,9 +156,13 @@
|
|||||||
|
|
||||||
// 反向填充数据
|
// 反向填充数据
|
||||||
function backfilldata(d){
|
function backfilldata(d){
|
||||||
|
|
||||||
data = d.query;
|
data = d.query;
|
||||||
// filtersymbols = data.cachedata.filtersymbols;
|
// filtersymbols = data.cachedata.filtersymbols;
|
||||||
|
var time = $("#analtsis-condition-date").val();
|
||||||
|
var timearr = time.split(" ");
|
||||||
|
data['eventView']['startTime'] = timearr[0] + " "+"00:00:00";
|
||||||
|
data['eventView']['endTime'] = timearr[2]+" "+"23:59:59";
|
||||||
baobiaodata = d;
|
baobiaodata = d;
|
||||||
|
|
||||||
if(d.query.eventView.filts.length > 0){
|
if(d.query.eventView.filts.length > 0){
|
||||||
@ -1086,10 +1090,16 @@
|
|||||||
|
|
||||||
// 下载
|
// 下载
|
||||||
$(document).off('click','.download-table').on('click','.download-table',function(){
|
$(document).off('click','.download-table').on('click','.download-table',function(){
|
||||||
console.log(11111);
|
// console.log(11111);
|
||||||
X.download('ck/event_model_export',data,'事件分析');
|
X.download('ck/event_model_export',data,'事件分析');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 返回
|
||||||
|
$(document).off('click','.analysis-fanhui').on('click','.analysis-fanhui',function(){
|
||||||
|
X.gourl("dashboard");
|
||||||
|
// return;
|
||||||
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 保存报表
|
// 保存报表
|
||||||
|
@ -456,6 +456,12 @@
|
|||||||
calculationdata();
|
calculationdata();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 返回
|
||||||
|
$(document).off('click','.analysis-fanhui').on('click','.analysis-fanhui',function(){
|
||||||
|
X.gourl("dashboard");
|
||||||
|
// return;
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
})();
|
})();
|
@ -40,6 +40,7 @@
|
|||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id");
|
||||||
var game = $(this).attr("data-game");
|
var game = $(this).attr("data-game");
|
||||||
$(".projecttit").html($(this).html());
|
$(".projecttit").html($(this).html());
|
||||||
|
X.DATA['dashboard_id'] = "";
|
||||||
X.DATA['projectid'] = id;
|
X.DATA['projectid'] = id;
|
||||||
X.DATA["game"] = game;
|
X.DATA["game"] = game;
|
||||||
//侧边栏数据渲染
|
//侧边栏数据渲染
|
||||||
@ -500,7 +501,22 @@
|
|||||||
X.DATA['ProjectData'] = d.spaces;
|
X.DATA['ProjectData'] = d.spaces;
|
||||||
X.laytpldata('#mykanban-dot',d.kanban,'#mykanban');
|
X.laytpldata('#mykanban-dot',d.kanban,'#mykanban');
|
||||||
X.laytpldata('#kongjian-dot',d.spaces,'#kongjian');
|
X.laytpldata('#kongjian-dot',d.spaces,'#kongjian');
|
||||||
|
|
||||||
|
// if(X.DATA['dashboard_id'] == undefined || X.DATA['dashboard_id'] == ""){
|
||||||
|
// $(".tab-tit-box .tab-tit").html(d.spaces[0]['children'][0]['name']);
|
||||||
|
// X.DATA['dashboard_id'] = d.spaces[0]['children'][0]['_id']; //看板id
|
||||||
|
// }else {
|
||||||
|
// for(let i in d.spaces){
|
||||||
|
// for(let j in d.spaces[i]['children']){
|
||||||
|
// if(d.spaces[i]['children'][j]['_id'] == X.DATA['dashboard_id']){
|
||||||
|
// $(".tab-tit-box .tab-tit").html(d.spaces[i]['children'][j]['name']);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// $("#model-box").html("");
|
||||||
|
// // 获取报表数据
|
||||||
|
// X.pageLogic['dashboard'].gettabledata();
|
||||||
|
|
||||||
// var updateOutput = function(e){
|
// var updateOutput = function(e){
|
||||||
|
|
||||||
@ -521,8 +537,8 @@
|
|||||||
|
|
||||||
// };
|
// };
|
||||||
|
|
||||||
// $('#kongjian').nestable({group: 1}).on('change', updateOutput);
|
// $('#sidebar-box').nestable({group: 1}).on('change', updateOutput);
|
||||||
// updateOutput($('#kongjian').data('output', $('#nestable-output')));
|
// updateOutput($('#sidebar-box').data('output', $('#nestable-output')));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -536,7 +552,7 @@
|
|||||||
for(var z in eventdata){
|
for(var z in eventdata){
|
||||||
if(id){
|
if(id){
|
||||||
//当有id时更新对应id看板内的内容
|
//当有id时更新对应id看板内的内容
|
||||||
X.template("modeltype",id,eventdata[z],function(){
|
X.template("modeltype","model-two-"+id,eventdata[z],function(){
|
||||||
// X.pageLogic['dashboard'].morefeatures(eventdata[z]);
|
// X.pageLogic['dashboard'].morefeatures(eventdata[z]);
|
||||||
X.template("modeltable",'conent-box'+eventdata[z]['id'],eventdata[z],function(){
|
X.template("modeltable",'conent-box'+eventdata[z]['id'],eventdata[z],function(){
|
||||||
X.pageLogic['dashboard'].morefeatures(eventdata[z]);
|
X.pageLogic['dashboard'].morefeatures(eventdata[z]);
|
||||||
@ -544,7 +560,7 @@
|
|||||||
});
|
});
|
||||||
}else {
|
}else {
|
||||||
//渲染模板和数据
|
//渲染模板和数据
|
||||||
X.template("modeltype",'model'+eventdata[z]['id'],eventdata[z],function(){
|
X.template("modeltype",'model-two-'+eventdata[z]['id'],eventdata[z],function(){
|
||||||
//X.pageLogic['dashboard'].morefeatures(eventdata[z]);
|
//X.pageLogic['dashboard'].morefeatures(eventdata[z]);
|
||||||
X.template("modeltable",'conent-box'+eventdata[z]['id'],eventdata[z],function(){
|
X.template("modeltable",'conent-box'+eventdata[z]['id'],eventdata[z],function(){
|
||||||
X.pageLogic['dashboard'].morefeatures(eventdata[z]);
|
X.pageLogic['dashboard'].morefeatures(eventdata[z]);
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
filtersymbols:[],//筛选符号
|
filtersymbols:[],//筛选符号
|
||||||
screentypearr:[], //筛选项数据
|
screentypearr:[], //筛选项数据
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
// sql语句显示
|
// sql语句显示
|
||||||
$(document).off('click','.sqlquery').on('click','.sqlquery',function(){
|
$(document).off('click','.sqlquery').on('click','.sqlquery',function(){
|
||||||
@ -30,7 +30,7 @@
|
|||||||
X.querycriteriapop(data,'conditionquery',offset.left - 410,offset.top+obj.height(),function(){
|
X.querycriteriapop(data,'conditionquery',offset.left - 410,offset.top+obj.height(),function(){
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
// 日期渲染
|
// 日期渲染
|
||||||
X.daterender("#retained-condition-date",function(start, end, label){
|
X.daterender("#retained-condition-date",function(start, end, label){
|
||||||
@ -39,7 +39,7 @@
|
|||||||
data['eventView']['startTime'] = startTime;
|
data['eventView']['startTime'] = startTime;
|
||||||
data['eventView']['endTime'] = endTime;
|
data['eventView']['endTime'] = endTime;
|
||||||
distributiondata();
|
distributiondata();
|
||||||
})
|
});
|
||||||
|
|
||||||
var time = $("#retained-condition-date").val();
|
var time = $("#retained-condition-date").val();
|
||||||
var timearr = time.split(" ");
|
var timearr = time.split(" ");
|
||||||
@ -63,7 +63,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
X.template("grouped","shushi");
|
X.template("grouped","shushi");
|
||||||
|
|
||||||
@ -104,7 +104,7 @@
|
|||||||
X.api("data_auth/load_filter_props","post",{event_name:d[0]['category'][0]['event_name']},function(val){
|
X.api("data_auth/load_filter_props","post",{event_name:d[0]['category'][0]['event_name']},function(val){
|
||||||
groupitemeventsdata[0] = val;
|
groupitemeventsdata[0] = val;
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
|
|
||||||
$(document).off('click','.ant-dropdown-trigger').on('click','.ant-dropdown-trigger',function(){
|
$(document).off('click','.ant-dropdown-trigger').on('click','.ant-dropdown-trigger',function(){
|
||||||
@ -122,7 +122,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
//设置一级事件中第二个参数
|
//设置一级事件中第二个参数
|
||||||
$(document).off('click','.analysis-zhibiao-list-type2').on('click','.analysis-zhibiao-list-type2',function(){
|
$(document).off('click','.analysis-zhibiao-list-type2').on('click','.analysis-zhibiao-list-type2',function(){
|
||||||
@ -150,7 +150,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
//设置一级事件中第三个参数
|
//设置一级事件中第三个参数
|
||||||
$(document).off('click','.analysis-zhibiao-condition').on('click','.analysis-zhibiao-condition',function(){
|
$(document).off('click','.analysis-zhibiao-condition').on('click','.analysis-zhibiao-condition',function(){
|
||||||
@ -166,7 +166,7 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.userevent-granularity').on('click','.userevent-granularity',function(){
|
$(document).off('click','.userevent-granularity').on('click','.userevent-granularity',function(){
|
||||||
var sectionid = data['events'][0];
|
var sectionid = data['events'][0];
|
||||||
@ -176,14 +176,14 @@
|
|||||||
data['events'][0]['quotaIntervalArr'] = val.quotaIntervalArr;
|
data['events'][0]['quotaIntervalArr'] = val.quotaIntervalArr;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
//重命名指标
|
//重命名指标
|
||||||
$(document).off('click','.analysis-chongmingming').on('click','.analysis-chongmingming',function() {
|
$(document).off('click','.analysis-chongmingming').on('click','.analysis-chongmingming',function() {
|
||||||
$("#analysis-con-left-screen-list-left-zhibiaoname-initial-event").show();
|
$("#analysis-con-left-screen-list-left-zhibiaoname-initial-event").show();
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
$(".analysis-chongmingming-del").show();
|
$(".analysis-chongmingming-del").show();
|
||||||
})
|
});
|
||||||
|
|
||||||
//删除重命名
|
//删除重命名
|
||||||
$(document).off('click','.analysis-chongmingming-del').on('click','.analysis-chongmingming-del',function() {
|
$(document).off('click','.analysis-chongmingming-del').on('click','.analysis-chongmingming-del',function() {
|
||||||
@ -191,19 +191,19 @@
|
|||||||
$(".analysis-con-left-screen-list-left-zhibiaoname-txt").val('');
|
$(".analysis-con-left-screen-list-left-zhibiaoname-txt").val('');
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
$(".analysis-chongmingming ").show();
|
$(".analysis-chongmingming ").show();
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-con-left-screen-list-left-zhibiaoname-initial-event input').on('blur','.analysis-con-left-screen-list-left-zhibiaoname-initial-event input',function(){
|
$(document).off('click','.analysis-con-left-screen-list-left-zhibiaoname-initial-event input').on('blur','.analysis-con-left-screen-list-left-zhibiaoname-initial-event input',function(){
|
||||||
var txt = $(this).val();
|
var txt = $(this).val();
|
||||||
data['events'][0]['renameindicator'] = txt;
|
data['events'][0]['renameindicator'] = txt;
|
||||||
})
|
});
|
||||||
|
|
||||||
// 添加筛选项
|
// 添加筛选项
|
||||||
$(document).off('click','.analysis-shaix').on('click','.analysis-shaix',function(){
|
$(document).off('click','.analysis-shaix').on('click','.analysis-shaix',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
var index = obj.attr("data-index");
|
var index = obj.attr("data-index");
|
||||||
addscreen(index);
|
addscreen(index);
|
||||||
})
|
});
|
||||||
|
|
||||||
// 添加筛选项
|
// 添加筛选项
|
||||||
function addscreen(index){
|
function addscreen(index){
|
||||||
@ -223,7 +223,7 @@
|
|||||||
screentypearr[index] = d;
|
screentypearr[index] = d;
|
||||||
filtersymbols.push(d[0]['category'][0]["category"]);
|
filtersymbols.push(d[0]['category'][0]["category"]);
|
||||||
})
|
})
|
||||||
}
|
};
|
||||||
|
|
||||||
$(document).off("click",".ta-property-select").on('click','.ta-property-select',function(){
|
$(document).off("click",".ta-property-select").on('click','.ta-property-select',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
@ -240,7 +240,7 @@
|
|||||||
data['events'][index]['filts'][indexs]['data_type'] = val.type;
|
data['events'][index]['filts'][indexs]['data_type'] = val.type;
|
||||||
data['events'][index]['filts'][indexs]['tableType'] = val.table_type;
|
data['events'][index]['filts'][indexs]['tableType'] = val.table_type;
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-choicetypename').on('click','.analysis-choicetypename',function(){
|
$(document).off('click','.analysis-choicetypename').on('click','.analysis-choicetypename',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
@ -255,7 +255,7 @@
|
|||||||
X.template("userpar","userpar-event",data['events']);
|
X.template("userpar","userpar-event",data['events']);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-con-left-screen-list-right-screen-qh-tit').on('click','.analysis-con-left-screen-list-right-screen-qh-tit',function(){
|
$(document).off('click','.analysis-con-left-screen-list-right-screen-qh-tit').on('click','.analysis-con-left-screen-list-right-screen-qh-tit',function(){
|
||||||
var tit = $(this).html();
|
var tit = $(this).html();
|
||||||
@ -266,7 +266,7 @@
|
|||||||
$(this).html('且');
|
$(this).html('且');
|
||||||
data['events'][0]['relation'] = 'and';
|
data['events'][0]['relation'] = 'and';
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-zhibiao-list-type4 input').on('blur','.analysis-zhibiao-list-type4 input',function(){
|
$(document).off('click','.analysis-zhibiao-list-type4 input').on('blur','.analysis-zhibiao-list-type4 input',function(){
|
||||||
var index = $(this).attr("data-index");
|
var index = $(this).attr("data-index");
|
||||||
@ -275,15 +275,14 @@
|
|||||||
var valarr = val.split(",");
|
var valarr = val.split(",");
|
||||||
data['events'][index]['filts'][indexs]['ftv']=valarr;
|
data['events'][index]['filts'][indexs]['ftv']=valarr;
|
||||||
data['events'][index]['filts'][indexs]['strftv']=val;
|
data['events'][index]['filts'][indexs]['strftv']=val;
|
||||||
})
|
});
|
||||||
|
|
||||||
|
|
||||||
// 分组项
|
// 分组项
|
||||||
$(document).off('click','.analysis-action-right').on('click','.analysis-action-right',function() {
|
$(document).off('click','.analysis-action-right').on('click','.analysis-action-right',function() {
|
||||||
var index = $(this).attr("data-index");
|
var index = $(this).attr("data-index");
|
||||||
data.eventView.groupBy.splice(index,1);
|
data.eventView.groupBy.splice(index,1);
|
||||||
X.template("grouped","shushi",data['eventView']['groupBy']);
|
X.template("grouped","shushi",data['eventView']['groupBy']);
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-footadd___2D4YB').on('click','.analysis-footadd___2D4YB',function() {
|
$(document).off('click','.analysis-footadd___2D4YB').on('click','.analysis-footadd___2D4YB',function() {
|
||||||
|
|
||||||
@ -297,7 +296,7 @@
|
|||||||
};
|
};
|
||||||
data['eventView']['groupBy'].push(arr);
|
data['eventView']['groupBy'].push(arr);
|
||||||
X.template("grouped","shushi",data['eventView']['groupBy']);
|
X.template("grouped","shushi",data['eventView']['groupBy']);
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-ant-dropdown-trigger').on('click','.analysis-ant-dropdown-trigger',function(){
|
$(document).off('click','.analysis-ant-dropdown-trigger').on('click','.analysis-ant-dropdown-trigger',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
@ -311,7 +310,7 @@
|
|||||||
data.eventView.groupBy[index]['data_type'] = val.type;
|
data.eventView.groupBy[index]['data_type'] = val.type;
|
||||||
data.eventView.groupBy[index]['table_type'] = val.table_type;
|
data.eventView.groupBy[index]['table_type'] = val.table_type;
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
|
|
||||||
// 时间粒度
|
// 时间粒度
|
||||||
X.laydropdown('.analtsis-timeParticleSize',X['DATA']['screenlist']['distribution'],function(d){
|
X.laydropdown('.analtsis-timeParticleSize',X['DATA']['screenlist']['distribution'],function(d){
|
||||||
@ -319,14 +318,14 @@
|
|||||||
$(".analtsis-timeParticleSize").html(d.title);
|
$(".analtsis-timeParticleSize").html(d.title);
|
||||||
data['eventView']['timeParticleSize'] = d.id;
|
data['eventView']['timeParticleSize'] = d.id;
|
||||||
// retaineddata();
|
// retaineddata();
|
||||||
})
|
});
|
||||||
|
|
||||||
// 计算
|
// 计算
|
||||||
$(document).off('click','.analysis-calculation').on('click','.analysis-calculation',function(){
|
$(document).off('click','.analysis-calculation').on('click','.analysis-calculation',function(){
|
||||||
|
|
||||||
distributiondata()
|
distributiondata()
|
||||||
|
|
||||||
})
|
});
|
||||||
|
|
||||||
var querydata;
|
var querydata;
|
||||||
function distributiondata(){
|
function distributiondata(){
|
||||||
@ -345,14 +344,14 @@
|
|||||||
d['tabletitle'].unshift('事件发生时间','总人数');
|
d['tabletitle'].unshift('事件发生时间','总人数');
|
||||||
updata(d)
|
updata(d)
|
||||||
})
|
})
|
||||||
}
|
};
|
||||||
|
|
||||||
function updata(d){
|
function updata(d){
|
||||||
var title = $(".select-chart").attr("title");
|
var title = $(".select-chart").attr("title");
|
||||||
if(title == '数据表'){ $(".table-div-box").show(); $(".analysis-echarts").hide(); retainedtable(d)}
|
if(title == '数据表'){ $(".table-div-box").show(); $(".analysis-echarts").hide(); retainedtable(d)}
|
||||||
else if(title == '数值分布'){ $(".table-div-box").hide(); $(".analysis-echarts").show(); retainednRetained(d) }
|
else if(title == '数值分布'){ $(".table-div-box").hide(); $(".analysis-echarts").show(); retainednRetained(d) }
|
||||||
else if(title == '百分比分布'){ $(".table-div-box").hide(); $(".analysis-echarts").show(); retaineddayRetained(d) }
|
else if(title == '百分比分布'){ $(".table-div-box").hide(); $(".analysis-echarts").show(); retaineddayRetained(d) }
|
||||||
}
|
};
|
||||||
|
|
||||||
$(document).off('click','.analtsis-chart-switch').on('click','.analtsis-chart-switch',function(){
|
$(document).off('click','.analtsis-chart-switch').on('click','.analtsis-chart-switch',function(){
|
||||||
if(querydata){
|
if(querydata){
|
||||||
@ -364,7 +363,7 @@
|
|||||||
}else{
|
}else{
|
||||||
layer.msg('请先计算数据,在切换图表');
|
layer.msg('请先计算数据,在切换图表');
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
function retainedtable(d){
|
function retainedtable(d){
|
||||||
var tabledata = [];
|
var tabledata = [];
|
||||||
@ -388,7 +387,7 @@
|
|||||||
// console.log(tabledata);
|
// console.log(tabledata);
|
||||||
X.laytpldata("#table-fenxi-th-dot",d.tabletitle,".table-fenxi-th");
|
X.laytpldata("#table-fenxi-th-dot",d.tabletitle,".table-fenxi-th");
|
||||||
X.laytpldata("#table-fenxi-td-dot",tabledata,".table-fenxi-td");
|
X.laytpldata("#table-fenxi-td-dot",tabledata,".table-fenxi-td");
|
||||||
}
|
};
|
||||||
|
|
||||||
function retainednRetained(d){
|
function retainednRetained(d){
|
||||||
var legendData = d.label;
|
var legendData = d.label;
|
||||||
@ -472,7 +471,7 @@
|
|||||||
series: seriesData
|
series: seriesData
|
||||||
};
|
};
|
||||||
myChart.setOption(option,true);
|
myChart.setOption(option,true);
|
||||||
}
|
};
|
||||||
|
|
||||||
function retaineddayRetained(d){
|
function retaineddayRetained(d){
|
||||||
var legendData = d.label;
|
var legendData = d.label;
|
||||||
@ -559,11 +558,17 @@
|
|||||||
series: seriesData
|
series: seriesData
|
||||||
};
|
};
|
||||||
myChart.setOption(option,true);
|
myChart.setOption(option,true);
|
||||||
}
|
};
|
||||||
|
|
||||||
$(document).off('click','.analysis-savereport').on('click','.analysis-savereport',function(){
|
$(document).off('click','.analysis-savereport').on('click','.analysis-savereport',function(){
|
||||||
X.parametersopen(data,'savereport','auto')
|
X.parametersopen(data,'savereport','auto')
|
||||||
})
|
});
|
||||||
|
|
||||||
|
// 返回
|
||||||
|
$(document).off('click','.analysis-fanhui').on('click','.analysis-fanhui',function(){
|
||||||
|
X.gourl("dashboard");
|
||||||
|
// return;
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -90,14 +90,14 @@
|
|||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
//开启重命名
|
//开启重命名
|
||||||
$(document).off('click','.analysis-chongmingming-initial-event').on('click','.analysis-chongmingming-initial-event',function(){
|
$(document).off('click','.analysis-chongmingming-initial-event').on('click','.analysis-chongmingming-initial-event',function(){
|
||||||
$("#analysis-con-left-screen-list-left-zhibiaoname-initial-event").show();
|
$("#analysis-con-left-screen-list-left-zhibiaoname-initial-event").show();
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
$(".analysis-chongmingming-del-initial-event").show();
|
$(".analysis-chongmingming-del-initial-event").show();
|
||||||
})
|
});
|
||||||
|
|
||||||
//取消重命名
|
//取消重命名
|
||||||
$(document).off('click','.analysis-chongmingming-del-initial-event').on('click','.analysis-chongmingming-del-initial-event',function(){
|
$(document).off('click','.analysis-chongmingming-del-initial-event').on('click','.analysis-chongmingming-del-initial-event',function(){
|
||||||
@ -105,7 +105,7 @@
|
|||||||
$("#analysis-con-left-screen-list-left-zhibiaoname-initial-event input").val('');
|
$("#analysis-con-left-screen-list-left-zhibiaoname-initial-event input").val('');
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
$(".analysis-chongmingming-initial-event").show();
|
$(".analysis-chongmingming-initial-event").show();
|
||||||
})
|
});
|
||||||
|
|
||||||
// 添加指标
|
// 添加指标
|
||||||
function addindex(){
|
function addindex(){
|
||||||
@ -127,22 +127,22 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
};
|
||||||
|
|
||||||
//添加按钮
|
//添加按钮
|
||||||
$(document).off('click','.analysis-jia1').on('click','.analysis-jia1',function(){
|
$(document).off('click','.analysis-jia1').on('click','.analysis-jia1',function(){
|
||||||
addindex();
|
addindex();
|
||||||
})
|
});
|
||||||
$(document).off('click','.funnel-updataevent').on('click','.funnel-updataevent',function(){
|
$(document).off('click','.funnel-updataevent').on('click','.funnel-updataevent',function(){
|
||||||
addindex();
|
addindex();
|
||||||
})
|
});
|
||||||
|
|
||||||
// 添加筛选项
|
// 添加筛选项
|
||||||
$(document).off('click','.analysis-shaix').on('click','.analysis-shaix',function(){
|
$(document).off('click','.analysis-shaix').on('click','.analysis-shaix',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
var index = obj.attr("data-index");
|
var index = obj.attr("data-index");
|
||||||
addscreen(index);
|
addscreen(index);
|
||||||
})
|
});
|
||||||
|
|
||||||
// 添加筛选项
|
// 添加筛选项
|
||||||
function addscreen(index){
|
function addscreen(index){
|
||||||
@ -158,20 +158,20 @@
|
|||||||
}
|
}
|
||||||
data['events'][index]['filts'].push(arr);
|
data['events'][index]['filts'].push(arr);
|
||||||
X.template("funnel","funnel-event",data['events']);
|
X.template("funnel","funnel-event",data['events']);
|
||||||
}
|
};
|
||||||
|
|
||||||
$(document).off('click','.analysis-zhibiao-updata').on('click','.analysis-zhibiao-updata',function(){
|
$(document).off('click','.analysis-zhibiao-updata').on('click','.analysis-zhibiao-updata',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
var index = obj.attr("data-index");
|
var index = obj.attr("data-index");
|
||||||
addscreen(index);
|
addscreen(index);
|
||||||
})
|
});
|
||||||
|
|
||||||
// 删除指定初始事件筛选
|
// 删除指定初始事件筛选
|
||||||
$(document).off('click','.analysis-del').on('click','.analysis-del',function(){
|
$(document).off('click','.analysis-del').on('click','.analysis-del',function(){
|
||||||
var index = $(this).attr("data-index");
|
var index = $(this).attr("data-index");
|
||||||
data['events'].splice(index,1);
|
data['events'].splice(index,1);
|
||||||
X.template("funnel","funnel-event",data['events']);
|
X.template("funnel","funnel-event",data['events']);
|
||||||
})
|
});
|
||||||
|
|
||||||
//删除指定筛选
|
//删除指定筛选
|
||||||
$(document).off('click','.analysis-zhibiao-list-del').on('click','.analysis-zhibiao-list-del',function(){
|
$(document).off('click','.analysis-zhibiao-list-del').on('click','.analysis-zhibiao-list-del',function(){
|
||||||
@ -179,12 +179,12 @@
|
|||||||
var indexs = $(this).attr("data-twonum");
|
var indexs = $(this).attr("data-twonum");
|
||||||
data['events'][index]['filts'].splice(indexs,1);
|
data['events'][index]['filts'].splice(indexs,1);
|
||||||
X.template("funnel","funnel-event",data['events']);
|
X.template("funnel","funnel-event",data['events']);
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-con-left-screen-list-left-zhibiaoname-initial-event input').on('blur','.analysis-con-left-screen-list-left-zhibiaoname-initial-event input',function(){
|
$(document).off('click','.analysis-con-left-screen-list-left-zhibiaoname-initial-event input').on('blur','.analysis-con-left-screen-list-left-zhibiaoname-initial-event input',function(){
|
||||||
var txt = $(this).val();
|
var txt = $(this).val();
|
||||||
data['events'][0]['renameindicator'] = txt;
|
data['events'][0]['renameindicator'] = txt;
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.ant-dropdown-trigger').on('click','.ant-dropdown-trigger',function(){
|
$(document).off('click','.ant-dropdown-trigger').on('click','.ant-dropdown-trigger',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
@ -204,7 +204,7 @@
|
|||||||
// console.log(data['events']);
|
// console.log(data['events']);
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.ta-property-select').on('click','.ta-property-select',function(){
|
$(document).off('click','.ta-property-select').on('click','.ta-property-select',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
@ -219,7 +219,7 @@
|
|||||||
data['events'][index]['filts'][indexs]['data_type'] = val.type;
|
data['events'][index]['filts'][indexs]['data_type'] = val.type;
|
||||||
data['events'][index]['filts'][indexs]['table_type'] = val.table_type;
|
data['events'][index]['filts'][indexs]['table_type'] = val.table_type;
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
// 过滤数据
|
// 过滤数据
|
||||||
// function filteringdata(){
|
// function filteringdata(){
|
||||||
@ -255,7 +255,7 @@
|
|||||||
data['events'][index]['filts'][indexs]['comparator'] = val.id;
|
data['events'][index]['filts'][indexs]['comparator'] = val.id;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-zhibiao-list-type4 input').on('blur','.analysis-zhibiao-list-type4 input',function(){
|
$(document).off('click','.analysis-zhibiao-list-type4 input').on('blur','.analysis-zhibiao-list-type4 input',function(){
|
||||||
var index = $(this).attr('data-index');
|
var index = $(this).attr('data-index');
|
||||||
@ -264,7 +264,7 @@
|
|||||||
var txtarr = txt.split(",");
|
var txtarr = txt.split(",");
|
||||||
data['events'][index]['filts'][indexs]['strftv'] = txt;
|
data['events'][index]['filts'][indexs]['strftv'] = txt;
|
||||||
data['events'][index]['filts'][indexs]['ftv'] = txtarr;
|
data['events'][index]['filts'][indexs]['ftv'] = txtarr;
|
||||||
})
|
});
|
||||||
|
|
||||||
//全局筛选
|
//全局筛选
|
||||||
$(document).off('click','.analysis-overall-situation-add').on('click','.analysis-overall-situation-add',function(){
|
$(document).off('click','.analysis-overall-situation-add').on('click','.analysis-overall-situation-add',function(){
|
||||||
@ -286,7 +286,7 @@
|
|||||||
$(".analysis-overall-situation-left-guanxi").hide();
|
$(".analysis-overall-situation-left-guanxi").hide();
|
||||||
}
|
}
|
||||||
X.template("globalfilter","xinwei-whole",data['eventView']['filts']);
|
X.template("globalfilter","xinwei-whole",data['eventView']['filts']);
|
||||||
})
|
});
|
||||||
|
|
||||||
//删除指定全局数据
|
//删除指定全局数据
|
||||||
$(document).off('click','.analysis-overall-situation-del').on('click','.analysis-overall-situation-del',function(){
|
$(document).off('click','.analysis-overall-situation-del').on('click','.analysis-overall-situation-del',function(){
|
||||||
@ -298,7 +298,7 @@
|
|||||||
$(".analysis-overall-situation-left-guanxi").hide();
|
$(".analysis-overall-situation-left-guanxi").hide();
|
||||||
}
|
}
|
||||||
X.template("globalfilter","xinwei-whole",data['eventView']['filts']);
|
X.template("globalfilter","xinwei-whole",data['eventView']['filts']);
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-overall-situation-attr').on('click','.analysis-overall-situation-attr',function(){
|
$(document).off('click','.analysis-overall-situation-attr').on('click','.analysis-overall-situation-attr',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
@ -314,7 +314,7 @@
|
|||||||
data['eventView']['filts'][index]['comparator_id'] = '==';
|
data['eventView']['filts'][index]['comparator_id'] = '==';
|
||||||
data['eventView']['filts'][index]['table_type'] = val.table_type;
|
data['eventView']['filts'][index]['table_type'] = val.table_type;
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
//循环给条件框渲染下拉框
|
//循环给条件框渲染下拉框
|
||||||
// function analysisdown(){
|
// function analysisdown(){
|
||||||
@ -348,7 +348,7 @@
|
|||||||
}
|
}
|
||||||
X.template("globalfilter","xinwei-whole",data['eventView']['filts']);
|
X.template("globalfilter","xinwei-whole",data['eventView']['filts']);
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
// 分组项
|
// 分组项
|
||||||
$(document).off('click','.analysis-action-right').on('click','.analysis-action-right',function() {
|
$(document).off('click','.analysis-action-right').on('click','.analysis-action-right',function() {
|
||||||
@ -356,7 +356,7 @@
|
|||||||
data.eventView.groupBy.splice(index,1);
|
data.eventView.groupBy.splice(index,1);
|
||||||
X.template("grouped","shushi",data['eventView']['groupBy']);
|
X.template("grouped","shushi",data['eventView']['groupBy']);
|
||||||
$(".group-updata").show();
|
$(".group-updata").show();
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-footadd___2D4YB').on('click','.analysis-footadd___2D4YB',function() {
|
$(document).off('click','.analysis-footadd___2D4YB').on('click','.analysis-footadd___2D4YB',function() {
|
||||||
var arr = {
|
var arr = {
|
||||||
@ -370,7 +370,7 @@
|
|||||||
data['eventView']['groupBy'].push(arr);
|
data['eventView']['groupBy'].push(arr);
|
||||||
X.template("grouped","shushi",data['eventView']['groupBy']);
|
X.template("grouped","shushi",data['eventView']['groupBy']);
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-ant-dropdown-trigger').on('click','.analysis-ant-dropdown-trigger',function(){
|
$(document).off('click','.analysis-ant-dropdown-trigger').on('click','.analysis-ant-dropdown-trigger',function(){
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
@ -385,7 +385,7 @@
|
|||||||
data.eventView.groupBy[index]['data_type'] = val.type;
|
data.eventView.groupBy[index]['data_type'] = val.type;
|
||||||
data.eventView.groupBy[index]['table_type'] = val.table_type;
|
data.eventView.groupBy[index]['table_type'] = val.table_type;
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
// sql语句显示
|
// sql语句显示
|
||||||
$(document).off('click','.sqlquery').on('click','.sqlquery',function(){
|
$(document).off('click','.sqlquery').on('click','.sqlquery',function(){
|
||||||
@ -394,7 +394,7 @@
|
|||||||
X.querycriteriapop(data,'conditionquery',offset.left - 410,offset.top+obj.height(),function(){
|
X.querycriteriapop(data,'conditionquery',offset.left - 410,offset.top+obj.height(),function(){
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
// 时间粒度
|
// 时间粒度
|
||||||
var timeParticleSizearr = [
|
var timeParticleSizearr = [
|
||||||
@ -402,19 +402,19 @@
|
|||||||
{'title':'7日','id':'7'},
|
{'title':'7日','id':'7'},
|
||||||
{'title':'14日','id':'14'},
|
{'title':'14日','id':'14'},
|
||||||
{'title':'30日','id':'30'},
|
{'title':'30日','id':'30'},
|
||||||
]
|
];
|
||||||
X.laydropdown('.analtsis-timeParticleSize',timeParticleSizearr,function(d){
|
X.laydropdown('.analtsis-timeParticleSize',timeParticleSizearr,function(d){
|
||||||
$(".analtsis-timeParticleSize").html(d.title);
|
$(".analtsis-timeParticleSize").html(d.title);
|
||||||
data['eventView']['windows_gap'] = parseInt(d.id);
|
data['eventView']['windows_gap'] = parseInt(d.id);
|
||||||
retaineddata();
|
retaineddata();
|
||||||
})
|
});
|
||||||
|
|
||||||
// 计算按钮
|
// 计算按钮
|
||||||
$(document).off('click','.analysis-calculation').on('click','.analysis-calculation',function(){
|
$(document).off('click','.analysis-calculation').on('click','.analysis-calculation',function(){
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
|
||||||
retaineddata()
|
retaineddata()
|
||||||
})
|
});
|
||||||
var querydata;
|
var querydata;
|
||||||
function retaineddata(){
|
function retaineddata(){
|
||||||
var dataArr = {
|
var dataArr = {
|
||||||
@ -429,13 +429,13 @@
|
|||||||
querydata = d;
|
querydata = d;
|
||||||
updata(d)
|
updata(d)
|
||||||
})
|
})
|
||||||
}
|
};
|
||||||
|
|
||||||
function updata(d){
|
function updata(d){
|
||||||
var title = $(".select-chart").attr("title");
|
var title = $(".select-chart").attr("title");
|
||||||
if(title == '转化图'){ retainedtable(d); retaineddayRetained(d);}
|
if(title == '转化图'){ retainedtable(d); retaineddayRetained(d);}
|
||||||
else if(title == '趋势图'){ retainednRetained(d);retainednRetainedtable(d); }
|
else if(title == '趋势图'){ retainednRetained(d);retainednRetainedtable(d); }
|
||||||
}
|
};
|
||||||
|
|
||||||
function retainedtable(d){
|
function retainedtable(d){
|
||||||
var tabledata=[];
|
var tabledata=[];
|
||||||
@ -458,7 +458,7 @@
|
|||||||
|
|
||||||
X.laytpldata("#table-fenxi-th-dot",d.etitle,".table-fenxi-th");
|
X.laytpldata("#table-fenxi-th-dot",d.etitle,".table-fenxi-th");
|
||||||
X.laytpldata("#table-fenxi-td-dot",tabledata,".table-fenxi-td");
|
X.laytpldata("#table-fenxi-td-dot",tabledata,".table-fenxi-td");
|
||||||
}
|
};
|
||||||
|
|
||||||
//转化图
|
//转化图
|
||||||
function retaineddayRetained(d){
|
function retaineddayRetained(d){
|
||||||
@ -508,7 +508,7 @@
|
|||||||
series: seriesData
|
series: seriesData
|
||||||
};
|
};
|
||||||
myChart.setOption(option,true);
|
myChart.setOption(option,true);
|
||||||
}
|
};
|
||||||
// 趋势图
|
// 趋势图
|
||||||
function retainednRetained(d){
|
function retainednRetained(d){
|
||||||
var arr = {};
|
var arr = {};
|
||||||
@ -609,7 +609,7 @@
|
|||||||
};
|
};
|
||||||
myChart.setOption(option,true);
|
myChart.setOption(option,true);
|
||||||
|
|
||||||
}
|
};
|
||||||
//趋势图表格
|
//趋势图表格
|
||||||
function retainednRetainedtable(d){
|
function retainednRetainedtable(d){
|
||||||
var arr = {};
|
var arr = {};
|
||||||
@ -677,7 +677,7 @@
|
|||||||
console.log(tabdata);
|
console.log(tabdata);
|
||||||
X.laytpldata("#table-fenxi-th-dot",xAxisdata,".table-fenxi-th");
|
X.laytpldata("#table-fenxi-th-dot",xAxisdata,".table-fenxi-th");
|
||||||
X.laytpldata("#table-fenxi-td-dot",tabdata,".table-fenxi-td");
|
X.laytpldata("#table-fenxi-td-dot",tabdata,".table-fenxi-td");
|
||||||
}
|
};
|
||||||
|
|
||||||
$(document).off('click','.analtsis-chart-switch').on('click','.analtsis-chart-switch',function(){
|
$(document).off('click','.analtsis-chart-switch').on('click','.analtsis-chart-switch',function(){
|
||||||
if(querydata){
|
if(querydata){
|
||||||
@ -691,11 +691,11 @@
|
|||||||
}else{
|
}else{
|
||||||
layer.msg('请先计算数据,在切换图表');
|
layer.msg('请先计算数据,在切换图表');
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-savereport').on('click','.analysis-savereport',function(){
|
$(document).off('click','.analysis-savereport').on('click','.analysis-savereport',function(){
|
||||||
X.parametersopen(data,'savereport','auto')
|
X.parametersopen(data,'savereport','auto')
|
||||||
})
|
});
|
||||||
|
|
||||||
$(document).off('click','.analysis-navigation-bar-right-img-baobiao').on('click','.analysis-navigation-bar-right-img-baobiao',function(){
|
$(document).off('click','.analysis-navigation-bar-right-img-baobiao').on('click','.analysis-navigation-bar-right-img-baobiao',function(){
|
||||||
X.parametersopen(data['eventView']['cksql'],'savedbaobiao','rt',function(d){
|
X.parametersopen(data['eventView']['cksql'],'savedbaobiao','rt',function(d){
|
||||||
@ -711,7 +711,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
});
|
||||||
|
|
||||||
|
// 返回
|
||||||
|
$(document).off('click','.analysis-fanhui').on('click','.analysis-fanhui',function(){
|
||||||
|
X.gourl("dashboard");
|
||||||
|
// return;
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -242,7 +242,11 @@
|
|||||||
function backfilldata(d){
|
function backfilldata(d){
|
||||||
data = d.query;
|
data = d.query;
|
||||||
groupitemeventsdata = data.cachedata.groupitemeventsdata;
|
groupitemeventsdata = data.cachedata.groupitemeventsdata;
|
||||||
baobiaodata = d
|
baobiaodata = d;
|
||||||
|
var time = $("#retained-condition-date").val();
|
||||||
|
var timearr = time.split(" ");
|
||||||
|
data['eventView']['startTime'] = timearr[0] + " "+"00:00:00";
|
||||||
|
data['eventView']['endTime'] = timearr[2]+" "+"23:59:59";
|
||||||
|
|
||||||
X.template("globalfilter","xinwei-whole",data['eventView']['filts']);
|
X.template("globalfilter","xinwei-whole",data['eventView']['filts']);
|
||||||
|
|
||||||
@ -257,9 +261,15 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 返回
|
||||||
|
$(document).off('click','.analysis-fanhui').on('click','.analysis-fanhui',function(){
|
||||||
|
X.gourl("dashboard");
|
||||||
|
// return;
|
||||||
|
});
|
||||||
|
|
||||||
// 下载
|
// 下载
|
||||||
$(document).off('click','.download-table').on('click','.download-table',function(){
|
$(document).off('click','.download-table').on('click','.download-table',function(){
|
||||||
console.log(11111);
|
// console.log(11111);
|
||||||
X.download('ck/ltv_model_export',data,'事件分析');
|
X.download('ck/ltv_model_export',data,'事件分析');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
this.parms = parms;
|
this.parms = parms;
|
||||||
this.callback = parms.callback;
|
this.callback = parms.callback;
|
||||||
var data = parms;
|
var data = parms;
|
||||||
// console.log("type",data);
|
|
||||||
X.laytpldata("#kanban-model-modify-type-dot",data,"model"+data.id,function(html){
|
X.laytpldata("#kanban-model-modify-type-dot",data,"model"+data.id,function(html){
|
||||||
$("#model"+data.id).html(html);
|
// console.log(html);
|
||||||
|
$("#model-two-"+data.id).html(html);
|
||||||
})
|
})
|
||||||
|
|
||||||
// for(var i in data){
|
// for(var i in data){
|
||||||
|
@ -483,6 +483,10 @@
|
|||||||
function backfilldata(d){
|
function backfilldata(d){
|
||||||
data = d.query;
|
data = d.query;
|
||||||
baobiaodata = d;
|
baobiaodata = d;
|
||||||
|
var time = $("#retained-condition-date").val();
|
||||||
|
var timearr = time.split(" ");
|
||||||
|
data['eventView']['startTime'] = timearr[0] + " "+"00:00:00";
|
||||||
|
data['eventView']['endTime'] = timearr[2]+" "+"23:59:59";
|
||||||
|
|
||||||
X.template("event","initial-event",data['events'][0]);
|
X.template("event","initial-event",data['events'][0]);
|
||||||
X.template("returnvisitevent","returnvisit-event",data['events'][1]);
|
X.template("returnvisitevent","returnvisit-event",data['events'][1]);
|
||||||
@ -878,8 +882,8 @@
|
|||||||
|
|
||||||
// 返回
|
// 返回
|
||||||
$(document).off('click','.analysis-fanhui').on('click','.analysis-fanhui',function(){
|
$(document).off('click','.analysis-fanhui').on('click','.analysis-fanhui',function(){
|
||||||
// X.gourl("dashboard");
|
X.gourl("dashboard");
|
||||||
return;
|
// return;
|
||||||
});
|
});
|
||||||
|
|
||||||
// 下载
|
// 下载
|
||||||
|
@ -473,6 +473,12 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 返回
|
||||||
|
$(document).off('click','.analysis-fanhui').on('click','.analysis-fanhui',function(){
|
||||||
|
X.gourl("dashboard");
|
||||||
|
// return;
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
})();
|
})();
|
Loading…
Reference in New Issue
Block a user