const JDBiListTpl = `<div class="cd-bi-nav-wrapper">
    <div class="cd-bi-nav-list J_bi_nav_list"></div>
    <div class="J_addNavBtn cd-bi-nav-btn">
        <p class="cd-add-icon">+</p>
        <p class="cd-add-nav-txt">添加导航</p>
    </div>
</div>
`;
const JDBiItemTpl = `
{{if moduleData.length == 0}}
<div class="cd-bi-item-container cd-show-detail J_bi_nav_item">
    <div class="cd-bi-panel">
         <div class="cd-bi-show-info">
              <div class="cd-nav-title">导航</div>
              <div class="cd-bi-main-des">
                 <p class="cd-bi-show-name J_show_name"></p>
                 <p class="cd-bi-show-link J_show_moduleLinkUrl"></p>
                 <p class="cd-bi-show-module">
                    <span class="cd_module_name J_show_moduleName"></span>
                    <span class="J_show_moduleNum"></span>
                 </p>
                 <a href="javascript:void(0);" class="cd-bi-edit J_biEdit">编辑</a>
              </div>
         </div>
         <div class="cd-bi-operate">
            <a href="javascript:void(0);" class="J_biGoUp"><span class="cd-icons cd-icons-link-up"></span></a>
            <a href="javascript:void(0);" class="J_biGoDown"><span class="cd-icons cd-icons-link-down"></span></a>
            <a href="javascript:void(0);" class="J_biRemove"><span class="cd-icons cd-icons-link-del"></span></a>
         </div>
    </div>
    <div class="cd-bi-panel-info">
        <div class="cd-bi-operate-panel">
            <div class="cd-nav-title">导航</div>
            <div class="cd-bi-operate">
                <a href="javascript:void(0);" class="J_biGoUp"><span class="cd-icons cd-icons-link-up"></span></a>
                <a href="javascript:void(0);" class="J_biGoDown"><span class="cd-icons cd-icons-link-down"></span></a>
                <a href="javascript:void(0);" class="J_biRemove"><span class="cd-icons cd-icons-link-del"></span></a>
            </div>
        </div>
        
        <div class="cd-bi-link-info J_bi_link"></div>
        <div class="cd-bi-category-info J_bi_category"></div>
    </div>
    <div class="cd-nav-control">
        <a href="javascript:void(0);" class="cd-nav-cancel J_cancel">放弃编辑</a>
        <a href="javascript:void(0);" class="cd-nav-done J_done">完成编辑</a>
    </div>
</div>
{{else}}
{{each moduleData as module index}}
<div class="cd-bi-item-container J_bi_nav_item">
    <div class="cd-bi-panel">
         <div class="cd-bi-show-info">
              <div class="cd-nav-title">导航1</div>
              <div class="cd-bi-main-des">
                 <p class="cd-bi-show-name J_show_name">{{module.title}}</p>
                 <p class="cd-bi-show-link J_show_moduleLinkUrl">{{module.href && module.href.link}}</p>
                 <p class="cd-bi-show-module">
                        <span class="cd_module_name J_show_moduleName">
                        {{if module.biConfig}}
                            BI分类：{{each module.biConfig.biCategoryList as biCate}}{{biCate.firstName}}{{ if biCate.secondName }}/{{biCate.secondName}}{{ /if }}{{ if biCate.thirdName }}/{{biCate.thirdName}}{{ /if }}{{/each}}
                        {{/if}}
                        </span>
                        <span class="J_show_moduleNum">({{ module.biConfig && module.biConfig.biCategoryList.length }})</span>
                    </p>
                 <a href="javascript:void(0);" class="cd-bi-edit J_biEdit">编辑</a>
              </div>
         </div>
         <div class="cd-bi-operate">
            <a href="javascript:void(0);" class="J_biGoUp"><span class="cd-icons cd-icons-link-up"></span></a>
            <a href="javascript:void(0);" class="J_biGoDown"><span class="cd-icons cd-icons-link-down"></span></a>
            <a href="javascript:void(0);" class="J_biRemove"><span class="cd-icons cd-icons-link-del"></span></a>
         </div>
    </div>
    <div class="cd-bi-panel-info">
        <div class="cd-bi-operate-panel">
            <div class="cd-nav-title">导航</div>
            <div class="cd-bi-operate">
                <a href="javascript:void(0);" class="J_biGoUp"><span class="cd-icons cd-icons-link-up"></span></a>
                <a href="javascript:void(0);" class="J_biGoDown"><span class="cd-icons cd-icons-link-down"></span></a>
                <a href="javascript:void(0);" class="J_biRemove"><span class="cd-icons cd-icons-link-del"></span></a>
            </div>
        </div>
        <div class="cd-bi-link-info J_bi_link"></div>
        <div class="cd-bi-category-info J_bi_category"></div>
    </div>
    <div class="cd-nav-control">
        <a href="javascript:void(0);" class="cd-nav-cancel J_cancel">放弃编辑</a>
        <a href="javascript:void(0);" class="cd-nav-done J_done">完成编辑</a>
    </div>
</div>
{{/each}}
{{/if}}
`;
export {JDBiListTpl, JDBiItemTpl};