<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="https://www.thymeleaf.org ">
<head>
    <title>采美365网-运营人员管理-中国美业全方位线上交易服务互动平台，做美业，上采美</title>
    <template th:replace="components/head-link"></template>
    <link th:href="@{/css/user-center/operation/list.css(v=${version})}" rel="stylesheet" type="text/css">
</head>
<body>
<!-- 引用头部 -->
<template th:replace="components/header"></template>
<!-- 运营人员管理 -->
<div id="operationPage" v-cloak>
    <div class="navLayout" th:object="${pageInfo}">
        <div class="crumbs">
            <span>我的交易</span>
            <span>&gt;</span>
            <span>我的维修</span>
            <a class="link" href="/user/repair/addform.html">申请维修</a>
        </div>
        <div class="wrap clear mf">
            <!--左侧面包屑-->
            <template th:replace="user-center/components/tableft"></template>
            <div class="right">
                <div class="order-header">
                    <div class="header-bt">
                        <div class="header-search">
                            <div class="search">
                                <span class="label">姓名:</span>
                                <input type="text" v-model="listQuery.linkName" placeholder="请输入运营人员姓名" class="search-input">
                            </div>
                            <div class="search">
                                <span class="label">手机号:</span>
                                <input type="text" v-model="listQuery.mobile" placeholder="请输入运营人员手机号" class="search-input">
                            </div>
                        </div>
                        <div class="header-button">
                            <a class="btn-serch" href="javascript: void(0);">搜索</a>
                            <a class="btn-add" href="javascript: void(0);">添加运营人员</a>
                        </div>
                    </div>
                </div>
                <!--loading-->
                <div v-if="isRequset" class="loading">
                    <img src="/img/base/loading.gif">
                </div>
                <div class="container clear" v-else>
                    <!--数据为空-->
                    <div class="section" v-if="operationList.length > 0">
                        <div class="title">
                            <div class="td td-1">姓名</div>
                            <div class="td td-2">手机号</div>
                            <div class="td td-3">邀请码</div>
                            <div class="td td-4">有效期</div>
                            <div class="td td-5">状态</div>
                            <div class="td td-6">微信昵称</div>
                            <div class="td td-7">添加时间</div>
                            <div class="td td-8">绑定时间</div>
                            <div class="td td-9">操作</div>
                        </div>
                        <div class="content">
                            <div class="list" v-for="(item, index) in operationList" :key="index">
                                <div class="td td-1">{{item.linkName}}</div>
                                <div class="td td-2">{{item.mobile}}</div>
                                <div class="td td-3">{{item.invitationCode}}</div>
                                <div class="td td-4">{{item.effectiveDays > 0 ?'item.effectiveDays'+'天': '- -'}}</div>
                                <div class="td td-5">{{item.status | stateExp}}</div>
                                <div class="td td-6">{{item.nickName}}</div>
                                <div class="td td-7">{{item.addTime}}</div>
                                <div class="td td-8">{{item.bindTime}}</div>
                                <div class="td td-9">
                                    <a href="" v-if="item.status == 1">更新邀请码</a>
                                    <a href="">删除</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div v-else class="empty">
                        <img src="/img/common/empty.png">
                        <div class="msg"><p>暂无数据</p></div>
                    </div>
                </div>
                <!--分页-->
                <div v-if="(!isPC) && noMore" class="noMore">---- 没有更多了 ----</div>
                <div v-if="isPC && pageTotal>1" class="pageWrap clear">
                    <a v-if="listQuery.pageNum>1" class="prev" @click="toPagination(listQuery.pageNum*1-1)" href="javascript:void(0);"></a>
                    <template v-for="n in showPageBtn">
                        <a v-if="n" :class="{'on':(n==listQuery.pageNum)}" @click="toPagination(n)" href="javascript:void(0);" v-text="n"></a>
                        <span v-else>···</span>
                    </template>
                    <a v-if="listQuery.pageNum<pageTotal" class="next" @click="toPagination(listQuery.pageNum*1+1)" href="javascript:void(0);"></a>
                    <span>共<b v-text="pageTotal>1?pageTotal:1"></b>页</span>
                    <span>跳至</span>
                    <input v-model="pageInput" @blur="checkNum()"/>
                    <span>页</span>&nbsp;
                    <a class="btn" href="javascript:void(0);" @click="toPagination(pageInput)">点击跳转</a>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 引入底部 -->
<template th:replace="components/footer"></template>
<template th:replace="components/foot-link"></template>
<script charset="utf-8" type="text/javascript" th:src="@{/js/common/serviceapi/user.service.js(v=${version})}"></script>
<script charset="utf-8" type="text/javascript" th:src="@{/js/user-center/operation/list.js(v=${version})}"></script>
</body>
</html>
