<template>
  <div>
    <el-table v-loading="loading" :data="tableData" border style="width: 100%">
      <el-table-column type="selection" />

      <el-table-column label="客户ID" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.customerId }}</span>
        </template>
      </el-table-column>

      <el-table-column label="代理商提成（按照面额提成，默认0）" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.partnerCommission }}</span>
        </template>
      </el-table-column>

      <el-table-column label="代理商ID（中间人）" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.partnerId }}</span>
        </template>
      </el-table-column>

      <el-table-column label="客户身份ID" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.identityId }}</span>
        </template>
      </el-table-column>

      <el-table-column label="合作伙伴类型;1:流量营销 2:渠道直充" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.partnerType }}</span>
        </template>
      </el-table-column>

      <el-table-column label="客户名称" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.customerName }}</span>
        </template>
      </el-table-column>

      <el-table-column label="客户简称" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.shorterName }}</span>
        </template>
      </el-table-column>

      <el-table-column label="联系人姓名" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.linkmanName }}</span>
        </template>
      </el-table-column>

      <el-table-column label="联系人电话" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.linkmanMobile }}</span>
        </template>
      </el-table-column>

      <el-table-column label="联系人邮箱" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.linkmanEmail }}</span>
        </template>
      </el-table-column>

      <el-table-column label="联系人地址" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.address }}</span>
        </template>
      </el-table-column>

      <el-table-column label="状态" width="200" align="center">
        <template slot-scope="scope">
           <el-tag v-if="scope.row.status === 0" size="small">待提交</el-tag>
           <el-tag v-if="scope.row.status === 1" size="small">商用</el-tag>
            <el-tag v-if="scope.row.status === 2" size="small">暂停</el-tag>
        </template>
      </el-table-column>

      <el-table-column label="登录帐号" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.account }}</span>
        </template>
      </el-table-column>

      <el-table-column label="登录密码,md5加密字符串" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.passwd }}</span>
        </template>
      </el-table-column>

      <el-table-column label="服务密码,有APP终端客户自行修改；初始密码为“888888" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.svrPasswd }}</span>
        </template>
      </el-table-column>

      <el-table-column label="支付密码,渠道营销客户无此字段内容" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.payPasswd }}</span>
        </template>
      </el-table-column>

      <el-table-column label="Logo图片组ID" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.logoGroupId }}</span>
        </template>
      </el-table-column>

      <el-table-column label="Logo图片URL" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.logoUrl }}</span>
        </template>
      </el-table-column>

      <el-table-column label="二维码组ID" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.twoCode }}</span>
        </template>
      </el-table-column>

      <el-table-column label="二维码图片URL" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.twoCodeUrl }}</span>
        </template>
      </el-table-column>

      <el-table-column label="Logo图片组ID" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.logoGroupId }}</span>
        </template>
      </el-table-column>

      <el-table-column label="Logo图片组ID" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.logoGroupId }}</span>
        </template>
      </el-table-column>

      <el-table-column label="微信号" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.wechatNo }}</span>
        </template>
      </el-table-column>

      <el-table-column label="终端结算价格,默认为产品定价，可以由直充渠道合作伙伴统一进行设置" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.settlePrice }}</span>
        </template>
      </el-table-column>

      <el-table-column label="帐号余额" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.balance }}</span>
        </template>
      </el-table-column>

      <el-table-column label="Logo图片组ID" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.logoGroupId }}</span>
        </template>
      </el-table-column>

      <el-table-column label="授信额度" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.creditAmount }}</span>
        </template>
      </el-table-column>

      <el-table-column label="当前费用" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.currentAmount }}</span>
        </template>
      </el-table-column>

      <el-table-column label="是否第一次登录,1:不是0:是" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.isFirstLogin }}</span>
        </template>
      </el-table-column>

      <el-table-column label="删除标识,1:已删除0:未删除" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.isDeleted }}</span>
        </template>
      </el-table-column>

      <el-table-column label="创建者" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.creator }}</span>
        </template>
      </el-table-column>

      <el-table-column label="创建时间" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.createTime }}</span>
        </template>
      </el-table-column>

      <el-table-column label="修改者" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.updator }}</span>
        </template>
      </el-table-column>

      <el-table-column label="修改时间" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.updateTime }}</span>
        </template>
      </el-table-column>

      <el-table-column label="客户等级" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.customerLevel }}</span>
        </template>
      </el-table-column>

      <el-table-column label="客户登录账户id" width="200" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.userId }}</span>
        </template>
      </el-table-column>

    </el-table>
  </div>
</template>

<script>
import { Search } from '@/api/userList'
export default {
  data() {
    return {
      tableData: [
        {
          customerId: '123456789',
          partnerCommission: 0,
          partnerId: '123456789',
          identityId: '客户身份ID',
          partnerType: 1,
          customerName: 'TEST',
          shorterName: 'test',
          linkmanName: '张**',
          linkmanMobile: '1518512885',
          linkmanEmail: 'xxx@xxx',
          address: '四川 成都',
          status: 1,
          account: 'TEST',
          passwd: 'xxxxx',
          svrPasswd: 'xxxxx',
          payPasswd: 'xxxxx',
          logoGroupId: 'xxxxx',
          logoUrl: 'xxx',
          twoCode: 'xxx',
          twoCodeUrl: 'xxx',
          settlePrice: '10.11',
          balance: '',
          creditAmount: '10000',
          currentAmount: '154842',
          isFirstLogin: '1',
          isDeleted: 1,
          creator: 'Admin',
          createTime: '2021-05-17 00:00:00',
          updator: 'Admin',
          updateTime: '2021-05-17 00:00:00',
          customerLevel: 0,
          userId: '123'
        }, {
          customerId: '123456789',
          partnerCommission: 0,
          partnerId: '123456789',
          identityId: '客户身份ID',
          partnerType: 1,
          customerName: 'TEST',
          shorterName: 'test',
          linkmanName: '张**',
          linkmanMobile: '1518512885',
          linkmanEmail: 'xxx@xxx',
          address: '四川 成都',
          status: 1,
          account: 'TEST',
          passwd: 'xxxxx',
          svrPasswd: 'xxxxx',
          payPasswd: 'xxxxx',
          logoGroupId: 'xxxxx',
          logoUrl: 'xxx',
          twoCode: 'xxx',
          twoCodeUrl: 'xxx',
          settlePrice: '10.11',
          balance: '',
          creditAmount: '10000',
          currentAmount: '154842',
          isFirstLogin: '1',
          isDeleted: 1,
          creator: 'Admin',
          createTime: '2021-05-17 00:00:00',
          updator: 'Admin',
          updateTime: '2021-05-17 00:00:00',
          customerLevel: 0,
          userId: '123'
        }, {
          customerId: '123456789',
          partnerCommission: 0,
          partnerId: '123456789',
          identityId: '客户身份ID',
          partnerType: 1,
          customerName: 'TEST',
          shorterName: 'test',
          linkmanName: '张**',
          linkmanMobile: '1518512885',
          linkmanEmail: 'xxx@xxx',
          address: '四川 成都',
          status: 1,
          account: 'TEST',
          passwd: 'xxxxx',
          svrPasswd: 'xxxxx',
          payPasswd: 'xxxxx',
          logoGroupId: 'xxxxx',
          logoUrl: 'xxx',
          twoCode: 'xxx',
          twoCodeUrl: 'xxx',
          settlePrice: '10.11',
          balance: '',
          creditAmount: '10000',
          currentAmount: '154842',
          isFirstLogin: '1',
          isDeleted: 1,
          creator: 'Admin',
          createTime: '2021-05-17 00:00:00',
          updator: 'Admin',
          updateTime: '2021-05-17 00:00:00',
          customerLevel: 0,
          userId: '123'
        }, {
          customerId: '123456789',
          partnerCommission: 0,
          partnerId: '123456789',
          identityId: '客户身份ID',
          partnerType: 1,
          customerName: 'TEST',
          shorterName: 'test',
          linkmanName: '张**',
          linkmanMobile: '1518512885',
          linkmanEmail: 'xxx@xxx',
          address: '四川 成都',
          status: 1,
          account: 'TEST',
          passwd: 'xxxxx',
          svrPasswd: 'xxxxx',
          payPasswd: 'xxxxx',
          logoGroupId: 'xxxxx',
          logoUrl: 'xxx',
          twoCode: 'xxx',
          twoCodeUrl: 'xxx',
          settlePrice: '10.11',
          balance: '',
          creditAmount: '10000',
          currentAmount: '154842',
          isFirstLogin: '1',
          isDeleted: 1,
          creator: 'Admin',
          createTime: '2021-05-17 00:00:00',
          updator: 'Admin',
          updateTime: '2021-05-17 00:00:00',
          customerLevel: 0,
          userId: '123'
        }, {
          customerId: '123456789',
          partnerCommission: 0,
          partnerId: '123456789',
          identityId: '客户身份ID',
          partnerType: 1,
          customerName: 'TEST',
          shorterName: 'test',
          linkmanName: '张**',
          linkmanMobile: '1518512885',
          linkmanEmail: 'xxx@xxx',
          address: '四川 成都',
          status: 1,
          account: 'TEST',
          passwd: 'xxxxx',
          svrPasswd: 'xxxxx',
          payPasswd: 'xxxxx',
          logoGroupId: 'xxxxx',
          logoUrl: 'xxx',
          twoCode: 'xxx',
          twoCodeUrl: 'xxx',
          settlePrice: '10.11',
          balance: '',
          creditAmount: '10000',
          currentAmount: '154842',
          isFirstLogin: '1',
          isDeleted: 1,
          creator: 'Admin',
          createTime: '2021-05-17 00:00:00',
          updator: 'Admin',
          updateTime: '2021-05-17 00:00:00',
          customerLevel: 0,
          userId: '123'
        }, {
          customerId: '123456789',
          partnerCommission: 0,
          partnerId: '123456789',
          identityId: '客户身份ID',
          partnerType: 1,
          customerName: 'TEST',
          shorterName: 'test',
          linkmanName: '张**',
          linkmanMobile: '1518512885',
          linkmanEmail: 'xxx@xxx',
          address: '四川 成都',
          status: 1,
          account: 'TEST',
          passwd: 'xxxxx',
          svrPasswd: 'xxxxx',
          payPasswd: 'xxxxx',
          logoGroupId: 'xxxxx',
          logoUrl: 'xxx',
          twoCode: 'xxx',
          twoCodeUrl: 'xxx',
          settlePrice: '10.11',
          balance: '',
          creditAmount: '10000',
          currentAmount: '154842',
          isFirstLogin: '1',
          isDeleted: 1,
          creator: 'Admin',
          createTime: '2021-05-17 00:00:00',
          updator: 'Admin',
          updateTime: '2021-05-17 00:00:00',
          customerLevel: 0,
          userId: '123'
        }, {
          customerId: '123456789',
          partnerCommission: 0,
          partnerId: '123456789',
          identityId: '客户身份ID',
          partnerType: 1,
          customerName: 'TEST',
          shorterName: 'test',
          linkmanName: '张**',
          linkmanMobile: '1518512885',
          linkmanEmail: 'xxx@xxx',
          address: '四川 成都',
          status: 1,
          account: 'TEST',
          passwd: 'xxxxx',
          svrPasswd: 'xxxxx',
          payPasswd: 'xxxxx',
          logoGroupId: 'xxxxx',
          logoUrl: 'xxx',
          twoCode: 'xxx',
          twoCodeUrl: 'xxx',
          settlePrice: '10.11',
          balance: '',
          creditAmount: '10000',
          currentAmount: '154842',
          isFirstLogin: '1',
          isDeleted: 1,
          creator: 'Admin',
          createTime: '2021-05-17 00:00:00',
          updator: 'Admin',
          updateTime: '2021-05-17 00:00:00',
          customerLevel: 0,
          userId: '123'
        }, {
          customerId: '123456789',
          partnerCommission: 0,
          partnerId: '123456789',
          identityId: '客户身份ID',
          partnerType: 1,
          customerName: 'TEST',
          shorterName: 'test',
          linkmanName: '张**',
          linkmanMobile: '1518512885',
          linkmanEmail: 'xxx@xxx',
          address: '四川 成都',
          status: 1,
          account: 'TEST',
          passwd: 'xxxxx',
          svrPasswd: 'xxxxx',
          payPasswd: 'xxxxx',
          logoGroupId: 'xxxxx',
          logoUrl: 'xxx',
          twoCode: 'xxx',
          twoCodeUrl: 'xxx',
          settlePrice: '10.11',
          balance: '',
          creditAmount: '10000',
          currentAmount: '154842',
          isFirstLogin: '1',
          isDeleted: 1,
          creator: 'Admin',
          createTime: '2021-05-17 00:00:00',
          updator: 'Admin',
          updateTime: '2021-05-17 00:00:00',
          customerLevel: 0,
          userId: '123'
        }, {
          customerId: '123456789',
          partnerCommission: 0,
          partnerId: '123456789',
          identityId: '客户身份ID',
          partnerType: 1,
          customerName: 'TEST',
          shorterName: 'test',
          linkmanName: '张**',
          linkmanMobile: '1518512885',
          linkmanEmail: 'xxx@xxx',
          address: '四川 成都',
          status: 1,
          account: 'TEST',
          passwd: 'xxxxx',
          svrPasswd: 'xxxxx',
          payPasswd: 'xxxxx',
          logoGroupId: 'xxxxx',
          logoUrl: 'xxx',
          twoCode: 'xxx',
          twoCodeUrl: 'xxx',
          settlePrice: '10.11',
          balance: '',
          creditAmount: '10000',
          currentAmount: '154842',
          isFirstLogin: '1',
          isDeleted: 1,
          creator: 'Admin',
          createTime: '2021-05-17 00:00:00',
          updator: 'Admin',
          updateTime: '2021-05-17 00:00:00',
          customerLevel: 0,
          userId: '123'
        }, {
          customerId: '123456789',
          partnerCommission: 0,
          partnerId: '123456789',
          identityId: '客户身份ID',
          partnerType: 1,
          customerName: 'TEST',
          shorterName: 'test',
          linkmanName: '张**',
          linkmanMobile: '1518512885',
          linkmanEmail: 'xxx@xxx',
          address: '四川 成都',
          status: 1,
          account: 'TEST',
          passwd: 'xxxxx',
          svrPasswd: 'xxxxx',
          payPasswd: 'xxxxx',
          logoGroupId: 'xxxxx',
          logoUrl: 'xxx',
          twoCode: 'xxx',
          twoCodeUrl: 'xxx',
          settlePrice: '10.11',
          balance: '',
          creditAmount: '10000',
          currentAmount: '154842',
          isFirstLogin: '1',
          isDeleted: 1,
          creator: 'Admin',
          createTime: '2021-05-17 00:00:00',
          updator: 'Admin',
          updateTime: '2021-05-17 00:00:00',
          customerLevel: 0,
          userId: '123'
        }, {
          customerId: '123456789',
          partnerCommission: 0,
          partnerId: '123456789',
          identityId: '客户身份ID',
          partnerType: 1,
          customerName: 'TEST',
          shorterName: 'test',
          linkmanName: '张**',
          linkmanMobile: '1518512885',
          linkmanEmail: 'xxx@xxx',
          address: '四川 成都',
          status: 1,
          account: 'TEST',
          passwd: 'xxxxx',
          svrPasswd: 'xxxxx',
          payPasswd: 'xxxxx',
          logoGroupId: 'xxxxx',
          logoUrl: 'xxx',
          twoCode: 'xxx',
          twoCodeUrl: 'xxx',
          settlePrice: '10.11',
          balance: '',
          creditAmount: '10000',
          currentAmount: '154842',
          isFirstLogin: '1',
          isDeleted: 1,
          creator: 'Admin',
          createTime: '2021-05-17 00:00:00',
          updator: 'Admin',
          updateTime: '2021-05-17 00:00:00',
          customerLevel: 0,
          userId: '123'
        }
      ]
    }
  },
  created() {
    this.search()
  },
  methods: {
    search: function(operator) {
      console.log('test')
      Search(operator).then((res) => {
        this.tableData = res.data.records
      })
    }
  }
}
</script>

<style>

</style>
