<div class="clearfix longTip rightTip tip0">
    <ul class="customNav custleft">
        <li ng-click="goPage('collect.event')">APP事件管理</li>
        <li class="active" ng-click="goPage('collect.activityevent')">虚拟事件管理</li>

    </ul>
</div>

<div class="chartWrap clearfix" style="margin-top: 20px;">
    <div class="chartWrapItem grayhm titleChart nothborder">

        <div class="chartModule">
            <span>虚拟事件管理</span>
            <div class="searchWrap">
                <input type="text" class="searchIpt" ng-model="searchTxt" placeholder="输入包含事件搜索">
            </div>
            <div class="btn10 mr10" style="float: right;margin-top: 9px;" ng-click="gopage()" ng-if="hasEditPower()">
                <span class="formAddIcon"></span>新增虚拟事件
            </div>
        </div>
        <div class="tableList">
            <table>
                <tr>
                    <th>序号</th>
                    <th>虚拟事件名称</th>
                    <th>包含事件</th>
                    <th ng-if="hasEditPower()">操作</th>
                </tr>
                <tr ng-repeat="info in eventList  | filterList:searchTxt:'eventListName' track by $index"  ng-if="$index>flipPage.start && $index < flipPage.end">
                    <td>{{$index+1}}</td>
                    <td>{{info.ch_name}}</td>
                    <td>{{info.eventListName}}</td>
                    <td class="formOper" ng-if="hasEditPower()">
                        <div class="formBtn" ng-click="gopage(info)">
                            编辑
                        </div>
                        <div class="onOffBtn on" ng-if="info.enable==true && info.type=='userdefine'" ng-click="offUser(info.id)" title="已启用"></div>
                        <div class="onOffBtn" ng-if="info.enable==false && info.type=='userdefine'" ng-click="onUser(info.id)" title="已停用"></div>
                    </td>
                </tr>
            </table>
            <flip-info list-info="eventList" search-txt="searchTxt" search-name="eventList"></flip-info>
        </div>

    </div>
</div>
