
<template>
  <div class="verificationMember usersList">
    <div class="head-title">
        核销员
        <el-button @click="dialogVisible=true" style="float:right;margin-top: -5px;" size="small" type="primary">添加核销员</el-button>
    </div>
    <div class="content">
        <div>
            <el-select class="w100" style="margin-right: 10px;" v-model="value" size="small" placeholder="请选择">
                <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
                </el-option>
            </el-select>
            <el-select class="w100" style="margin-right: 10px;" v-model="value" size="small" placeholder="请选择">
                <el-option label="全部平台" :value="0"></el-option>
                <el-option v-for="item in platList" :key="item.Id" :label="item.Name" :value="item.Id">
                </el-option>
            </el-select>
            <div class="searchInput">
                <el-input style="display:inline-block;width:225px;height:30px"
                placeholder="请输入用户昵称搜索"
                v-model="value"
                size="small"
                clearable>
                </el-input>
                <span class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span>
            </div>
        </div>
        <el-table
            :data="tableData"
            v-loading="loading"
            border
            style="width: 100%;margin:20px 0">
            <el-table-column
            prop="ID"
            label="用户ID">
            </el-table-column>
            <el-table-column
            prop="address"
            width="280"
            label="用户">
                <template slot-scope="scope">
                    <div class="app-image" style="background-image: url('https://wx.qlogo.cn/mmopen/vi_32/HO8Q9ibH7UtSFzHs67f0MH6VWjftiboELYLBya5OxpZkHDlicLMq39gxRHS4NhOG1AUepQ13JdUyrT7eM52u6hAsg/132');
                    background-size: cover; background-position: center center; width: 50px; height: 50px; border-radius: 0%; float: left; margin-right: 8px;"></div> 
                    <div flex="dir:left cross:center">易飞易&港中旅小李15351281772</div> 
                    <img style="width:24px;height:24px" src="../../assets/img/userman/wx.png" alt="" class="platform-img">
                    <button type="button" class="el-button el-button--success" style="float: right; padding: 5px !important;">
                        <span>显示OpenId</span>
                    </button>
                    <div>ow_7I5dE_g9Fe1BuBPKdk8RNtEj0</div> 
                </template>  
            </el-table-column>
            <el-table-column
            prop="name"
            label="所属门店">
            </el-table-column>
            <el-table-column
            prop="name"
            label="核销订单数">
            </el-table-column>
            <el-table-column
            prop="name"
            label="核销总额">
                <template slot-scope="scope">
                    <span class="blue">0</span>
                </template>
            </el-table-column>
            <el-table-column
            prop="name"
            label="核销卡券数">
                <template slot-scope="scope">
                    <span class="blue">0</span>
                </template>
            </el-table-column>
            <el-table-column
            prop="address"
            width="200"
            label="操作">
            <template slot-scope="scope">
                <img style="width:32px;height:32px" src="../../assets/img/userman/edit.png" alt="">
                <img style="width:32px;height:32px;margin:0 10px" src="../../assets/img/userman/integral.png" alt="">
                <img style="width:32px;height:32px" src="../../assets/img/userman/balance.png" alt="">
            </template>    
            </el-table-column>
        </el-table>
        <el-pagination style="text-align:right"
        background
        @current-change="handleCurrentChange"
        :page-size="msg.pageSize"
        layout="prev, pager, next"
        :total="total">
        </el-pagination>
    </div>
    <!-- 选择导出信息 -->
    <el-dialog
        title="设置核销员"
        :visible.sync="dialogVisible"
        width="600px">
        <el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px">
                <el-form-item label="门店选择" prop="name">
                    <el-input style="width:230px" size="small" v-model="addMsg.name"></el-input>
                </el-form-item>
                <el-form-item label="昵称搜索" prop="name">
                    <el-input style="width:230px;" size="small" v-model="addMsg.name"></el-input>
                </el-form-item>
            </el-form> 
            <div style="text-align:right;margin-top:20px">
                <el-button size="small" @click="dialogVisible = false">取 消</el-button>
                <el-button size="small" type="primary" @click="dialogVisible = false">确 定</el-button>
            </div>
    </el-dialog>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        loading:false,
        addMsg:{},
        dialogVisible:false,
        value:'',
        options:[],
        tableData:[
            {ID:'111'}
        ],
        msg:{
            pageIndex:1,
            pageSize:15,
        },
        total:0,
        rules: {
                name: [
                    { required: true, message: '新手机号', trigger: 'blur' }
                ],
            },
        platList:[],
        
      };
    },
    created() {
        this.getplat();
    },
    methods: {
        handleCurrentChange(val) {
            this.msg.pageIndex = val;
            this.getList();
        },
        getList(){

        },
        getplat() {
            this.apipost("/api/user/GetMemberUserSourceEnumList", {}, res => {
                this.platList = res.data.data;
            })
        },

    },
    mounted() {
      
    }
  };

</script>
<style>
.usersList .blue{
    color:#409EFF;
    
}
.usersList .content .searchInput{
    border: 1px solid #DCDFE6;
    border-radius: 4px;
}
.usersList .content .searchInput .el-input__inner{
    border:none;outline:none;
    height: 30px;
    line-height: 30px;
}
.usersList .content .searchInput{
    line-height: normal;
    display: inline-table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    width:250px;
    margin-right: 20px;
}
.usersList .content{
    background: #fff;
    margin-top:10px;
    padding: 20px;
    box-sizing: border-box;
}

</style>
