
<script id="kanban-model-modify-table-dot" type="text/html">

    {{#  if(d.modelsize === "small"){ }}

        <!-- <div class="layui-col-md3" id="model{{d.id}}"> -->
            <div class="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" title="更多">
                                <img src="./static/img/gengduo.png" />
                            </div>
                        </div>
                    </div>
                </div>

                <div class="condition-box">
                    <div class="time-cond">
                        <span>{{d.date}}</span>
                    </div>
                </div>

                <div class="small-data-box">{{d.num}}</div>

                <div class="small-proportion">
                    {{#  if(d.thedaypropsize === "+"){ }}
                        <div class="proportion-data">较环比 <div class="sanjiao"></div><span>{{d.thedayprop}}%</span></div>
                    {{# } else { }}
                        <div class="proportion-data">较环比 <div class="sanjiao fu"></div><span class="funum">{{d.thedayprop}}%</span></div>
                    {{#  } }} 
                    {{#  if(d.weekpropsize === "+"){ }}
                        <div class="proportion-data">较同比 <div class="sanjiao"></div><span>{{d.weekprop}}%</span></div>
                    {{# } else { }}
                        <div class="proportion-data">较同比 <div class="sanjiao fu"></div><span class="funum">{{d.weekprop}}%</span></div>
                    {{#  } }} 
                </div>


            </div>
        <!-- </div> -->

    {{# } else { }}

    {{#  if(d.modeltype === "table"){ }}
    
        <!-- <div class="layui-col-md6" style="float: none;"> -->
            <div class="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" title="更多">
                                <img src="./static/img/gengduo.png" />
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="condition-box controlhover">
                    <div class="time-cond">
                        <span>
                            过去7天
                        </span>
                        <div class="xian"></div>
                        <span>按天</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="table-box">

                    <!-- <div class="table-thead">
                        <table class="table-fenxi-box">
                            <thead>
                                <colgroup>
                                    {{# layui.each(d.titledata, function(indexs, items) {  }}
                                        <col />
                                    {{#  }); }}
                                </colgroup>
                                <tr class="table-fenxi-th">
                                    {{# layui.each(d.titledata, function(indexs, items) {  }}
                                        <th>{{items}}</th>
                                    {{#  }); }}
                                </tr> 
                            </thead>
                        </table>
                    </div> -->
                    <div class="table-tbody-box">
                        <table class="table-fenxi-box">
                            <thead>
                                <colgroup>
                                    {{# layui.each(d.titledata, function(indexs, items) {  }}
                                        <col />
                                    {{#  }); }}
                                </colgroup>
                                <tr class="table-fenxi-th">
                                    {{# layui.each(d.titledata, function(indexs, items) {  }}
                                        <th>{{items}}</th>
                                    {{#  }); }}
                                </tr> 
                            </thead>
                            
                            {{#  if(d.cat === "event"){ }}
                                <tbody class="table-fenxi-td">
                                
                                    {{# layui.each(d.condata, function(indexs, items) {  }}
                                        <tr >
                                            {{# layui.each(items, function(indexss, itemss) {  }}
                                                <td>{{itemss}}</td>
                                            {{#  }); }}
                                        </tr>
                                    {{#  }); }}
                                </tbody>
                            {{# } else if(d.cat === "retention"){ }}
                                <tbody class="table-fenxi-td">
                                    
                                    {{# layui.each(d.condata, function(indexs, items) {  }}
                                    <tr >
                                        <td>{{items.date}}</td>
                                        <td>{{items.d0}}</td>
                                        {{#  layui.each(items.data, function(indexss, itemss){ }}
                                        <td>
                                            <p>{{itemss.n}}</p>
                                            <p>{{itemss.p}}%</p>
                                        </td>
                                        {{#  }); }}
                                    </tr>
                                    {{#  }); }}
                                </tbody>
                            {{# } else if(d.cat === "ltv"){ }}
                                <tbody class="table-fenxi-td">
                                    
                                    {{# layui.each(d.condata, function(indexs, items) {  }}
                                    <tr >
                                        {{#  layui.each(items, function(indexss, itemss){ }}
                                        <td>{{itemss}}</td>
                                        {{#  }); }}
                                    </tr>
                                    {{#  }); }}
                                </tbody>
                            {{# } else if(d.cat === "user_property"){ }}
                                {{# layui.each(d.condata, function(indexs, items) {  }}
                                    <tr>
                                        <td>{{indexs}}</td>
                                        <td>{{items}}</td>
                                    </tr>
                                {{#  }); }}
                            {{#  } }} 

                        </table>
                    </div>
                                        
                </div>

            </div>
        
    {{#  } else { }}
            <div class="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" title="更多">
                                <img src="./static/img/gengduo.png" />
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="condition-box controlhover">
                    <div class="time-cond">
                        <span>过去7天</span>
                        <div class="xian"></div>
                        <span>按天</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>
                <p class="dqtime">{{d.date}}</p>
                <div class="data-box">
                <div style="display: flex; align-items: center;">
                    <div class="data-num">{{d.sameday}}<span></span></div>
                    <div class="proportion">
                        <!-- <div class="proportion-data">较环比 <div class="sanjiao"></div><span>5.4%</span></div>
                        <div class="proportion-data">较同比 <div class="sanjiao"></div><span>5.4%</span></div> -->
                    </div>
                </div>
                
                <div class="thesum">
                    <div class="thesum-box">
                        <div class="thesum-data">总和 <span>{{d.sum}}</span></div>
                        <div class="thesum-data">均值 <span>{{d.mean}}</span></div>
                    </div>
                </div>
                </div>

                <div class="echarts-box">
                    <div id="{{d.id}}" class="echarts"></div>
                </div>

            </div>


    {{#  } }} 


{{#  } }} 
    
</script>