<!-- api管理 -->
<div class="main___Tea6c">
    <div class="projectadmin-con-bg">
        <div class="eventattradmin-top-box">
            <div class="eventattradmin-left___y490Q">事件管理<i class="layui-icon" title="在该页面进行事件及事件属性的管理。包括设置事件的显示名，显示状态等；设置事件属性的显示名，显示状态，计数单位，上传维度表等功能">&#xe60b;</i> </div>

            <div class="eventattradmin-right___1TIt8">
                <div class="eventattradmin-search___23TMG">
                    <i class="layui-icon">&#xe615;</i>
                    <input type="text" placeholder="请输入搜索" />
                    <img src="./static/img/cha1.png">
                </div>
                <div class="eventattradmin-display___21tQp">
                    <img src="./static/img/peizhi2.png">
                    <span>显示名配置</span>
                </div>

                <div class="eventattradmin-actions___141YT">
                    <i class="layui-icon">&#xe624;</i>
                    <span>api添加</span>
                </div>

            </div>

        </div>

        <div class="eventattradmin-table-box">
            <div class="eventattradmin-table-box-dot" style="overflow-y: auto; height: 100%;"> 

            </div>
            <!-- <table class="layui-hide" id="apiadmin-table" lay-filter="apiadminntest"></table> -->
        </div>
    </div>
</div>

<!-- <script type="text/html" id="apiadminbarDemo">
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
    <a class="layui-btn layui-btn-xs " lay-event="edit">编辑</a>
</script> -->

<script id="eventattradmin-table-box-dot" type="text/html">

    <div class="projectadmin-info-bg">
        <div class="projectadmin-info-table-top">
            <div class="projectadmin-tab-table1">分类</div>
            <div class="projectadmin-tab-box">
                <div class="projectadmin-tab-table2">api名字</div>
                <div class="projectadmin-tab-table2">api路径</div>
                <div class="projectadmin-tab-table3">操作</div>
            </div>
        </div> 
                    
        {{#  layui.each(d, function(index, item){ }}
            <div class="projectadmin-info-table-con">
                <div class="projectadmin-info-table-left">
                    <div>{{item.path_name}}</div>
                </div>
                <div class="customname-val-right-box" style="border-bottom: 1px solid #f0f2f5; width: 75%; border-right: 2px solid #f0f2f5;">

                    {{#  layui.each(item.api_list, function(indexs, items){ }}
                        <div class="customname-val-right2">
                            <div class="customname-val-right-val" style="width: 45%;">{{item['api_name'][indexs]}}</div>
                            <div class="customname-val-right-val" style="width: 45%;">{{items}}</div>
                            <div class="customname-val-right-val" style="width: 10%;">
                                {{#  if(item['state'][indexs] === true){ }}
                                    <a class="layui-btn layui-btn-xs layui-btn-danger del_api_admin" lay-event="del"  style="text-indent: 0; background-color: #C2C2C2;" data-name="{{item.auth_id}}" data-path="{{items}}" >已添加</a>
                                {{#  } else { }}
                                    <a class="layui-btn layui-btn-xs layui-btn-danger add_api_admin" lay-event="del" style="text-indent: 0;" data-name="{{item.auth_id}}" data-path="{{items}}" >添加</a>
                                {{#  } }} 
                                
                                <a class="layui-btn layui-btn-xs update_api_admin" lay-event="edit" style="text-indent: 0;" data-name="{{item.path_name}}" data-desc="{{item['api_name'][indexs]}}" data-path="{{items}}" >编辑</a>
                            </div>
                        </div>
                    {{#  }); }}

                </div>
            </div>
        {{#  }); }}
    </div>

</script>
