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

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

        <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.wowtype != ''){ }}
                {{#  if(d.wowtype == '+'){ }}
                    <div class="proportion-data" title="对比前一天">较环比 <div class="sanjiao"></div><span>{{d.wow}}%</span></div>
                {{# } else { }}
                    <div class="proportion-data" title="对比前一天">较环比 <div class="sanjiao fu"></div><span class="funum">{{d.wow}}%</span></div>
                {{#  } }} 
            {{#  } }} 
            {{#  if(d.chain_ratiotype != ''){ }}
                {{#  if(d.chain_ratiotype == "+"){ }}
                    <div class="proportion-data" title="对比前七天">较同比 <div class="sanjiao"></div><span>{{d.chain_ratio}}%</span></div>
                {{# } else { }}
                    <div class="proportion-data" title="对比前七天">较同比 <div class="sanjiao fu"></div><span class="funum">{{d.chain_ratio}}%</span></div>
                {{#  } }} 
            {{#  } }} 
        </div>

    {{# } else { }}

    {{#  if(d.modeltype === "table"){ }}
                
        <div class="table-box">
            <div class="table-tbody-box" id="table-tbody-box-{{d.id}}">

                <table class="table-fenxi-box">
                    <thead>
                        <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 == "scatter"){ }}
                        <tbody class="table-fenxi-td">
                            
                            {{# layui.each(d.condata, function(indexs, items) {  }}
                            <tr >
                                <td>{{items.date}}</td>
                                <td>{{items.d0}}</td>
                                {{#  layui.each(items.data, function(indexss, itemss){ }}
                                <td>
                                    <p>{{itemss.n}}</p>
                                    <p>{{itemss.p}}%</p>
                                </td>
                                {{#  }); }}
                            </tr>
                            {{#  }); }}
                        </tbody>
                    {{# } else if(d.cat === "retention"){ }}
                    <tbody class="table-fenxi-td">
                            
                        {{# layui.each(d.condata, function(indexs, items) {  }}
                        <tr >
                            <td>{{items.date}}</td>
                            <td>{{items.d0}}</td>
                            {{#  layui.each(items.data, function(indexss, itemss){ }}
                            <td>
                                {{#  if(itemss.p == '-'){ }}
                                    <p>{{itemss.p}}</p>
                                {{# } else { }}
                                    <p>{{itemss.p}}%</p>
                                {{#  } }} 
                                
                            </td>
                            {{#  }); }}
                        </tr>
                        {{#  }); }}
                    </tbody>

                    {{# } else if(d.cat === "ltv"){ }}
                        <tbody class="table-fenxi-td">
                            
                            {{# layui.each(d.condata, function(indexs, items) {  }}
                            <tr >
                                {{#  layui.each(items, function(indexss, itemss){ }}
                                <td>{{itemss}}</td>
                                {{#  }); }}
                            </tr>
                            {{#  }); }}
                        </tbody>
                    {{# } else if(d.cat === "user_property"){ }}
                        {{# layui.each(d.condata, function(indexs, items) {  }}
                            <tr>
                                <td>{{indexs}}</td>
                                <td>{{items}}</td>
                            </tr>
                        {{#  }); }}
                    {{#  } }} 
                </table>
            </div>
                                
        </div>

        
    {{#  } else { }}
    
    {{#  if(d.cat != "user_property" && d.cat != "scatter" ){ }}
        
        <div class="data-box">
            <div style="display: flex; align-items: center;">
                {{#  if(d.daydata != false ){ }}
                    <div class="data-num">{{d.sameday}}<span></span></div>
                {{#  } }} 
                <div class="proportion">
                    {{#  if(d.wowtype != ''){ }}
                        {{#  if(d.wowtype == '+'){ }}
                            <div class="proportion-data">较环比 <div class="sanjiao"></div><span>{{d.wow}}%</span></div>
                        {{# } else { }}
                            <div class="proportion-data">较环比 <div class="sanjiao fu"></div><span class="funum">{{d.wow}}%</span></div>
                        {{#  } }} 
                    {{#  } }} 
                    {{#  if(d.chain_ratiotype != ''){ }}
                        {{#  if(d.chain_ratiotype == "+"){ }}
                            <div class="proportion-data">较同比 <div class="sanjiao"></div><span>{{d.chain_ratio}}%</span></div>
                        {{# } else { }}
                            <div class="proportion-data">较同比 <div class="sanjiao fu"></div><span class="funum">{{d.chain_ratio}}%</span></div>
                        {{#  } }} 
                    {{#  } }} 
                </div>
            </div>
            {{#  if(d.avesumdata != false ){ }}
                <div class="thesum">
                    <div class="thesum-box">
                        {{#  if(d.sum != -1){ }}
                            <div class="thesum-data">总和 <span>{{d.sum}}</span></div>
                        {{#  } }} 
                        {{#  if(d.mean != -1){ }}
                            <div class="thesum-data">均值 <span>{{d.mean}}</span></div>
                        {{#  } }} 
                    </div>
                </div>
            {{#  } }} 
        </div>

        {{#  } }} 
        
        <div class="echarts-box">
        {{#  if(d.daydata != false && d.avesumdata != false){ }}
                <div id="{{d.id}}" class="echarts"></div>
        {{# } else { }}
                <div id="{{d.id}}" class="echarts2"></div>
        {{#  } }} 
        </div>



    {{#  } }} 


{{#  } }} 
    
</script>