userInfo.vue 7.61 KB
<template xmlns:el-col="http://www.w3.org/1999/html">
  <div>
    <br/>
    <span>用户信息表(tbl_user_info)</span>
    <el-table
      :data="tblUserInfos"
      border
      style="width: 100%"
      :header-cell-style="{background: 'deepskyblue', color: 'snow'}">
      <el-table-column
        prop="uid"
        label="UID"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="phone"
        label="手机号码"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="name"
        label="用户名称"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="createTime"
        label="创建时间"
        min-width="1">
      </el-table-column>
    </el-table>
    <br/>
    <br/>
    <span>激活此用户的代理人(tbl_agent_properties)</span>
    <el-table
      :data="tblJiHuoAgentProperties"
      border
      style="width: 100%"
      :header-cell-style="{background: 'deepskyblue', color: 'snow'}">
      <el-table-column
        prop="uid"
        label="UID"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="phone"
        label="手机号码"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="name"
        label="用户名称"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="jobNumber"
        label="工号"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="provinceCode"
        label="省code"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="cityCode"
        label="市code"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="teamCode"
        label="职场code"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="fourLevelCode"
        label="四级编码"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="fiveLevelCode"
        label="五级编码"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="createTime"
        label="创建时间"
        min-width="2">
      </el-table-column>
    </el-table>
    <br/>

    <br/>
    <span>我的业务经理(tbl_customer_ownership)</span>
    <el-table
      :data="myCusOwner"
      border
      style="width: 100%"
      :header-cell-style="{background: 'deepskyblue', color: 'snow'}">
      <el-table-column
        prop="uid"
        label="UID"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="agentUid"
        label="代理人uid"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="chooseAgentUid"
        label="业务经理uid"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="chooseTime"
        label="选择代理人时间"
        min-width="1">
      </el-table-column>

    </el-table>
    <br/>




    <br/>
    <span>代理人详情表(tbl_agent_properties)</span>
    <el-table
      :data="tblAgentProperties"
      border
      style="width: 100%"
      :header-cell-style="{background: 'deepskyblue', color: 'snow'}">
      <el-table-column
        prop="jobNumber"
        label="工号"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="provinceCode"
        label="省code"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="cityCode"
        label="市code"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="teamCode"
        label="职场code"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="fourLevelCode"
        label="四级编码"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="fiveLevelCode"
        label="五级编码"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="sixLevelCode"
        label="六级编码"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="authStatus"
        label="验证状态"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="createTime"
        label="创建时间"
        min-width="2">
      </el-table-column>
    </el-table>
    <br/>
    <br/>
    <span>代理人客户表(tbl_agent_customer),只展示健康坊且非代理人的客户</span>
    <el-table
      :data="tblAgentCustomers"
      border
      style="width: 100%"
      :header-cell-style="{background: 'deepskyblue', color: 'snow'}">
      <el-table-column
        prop="name"
        label="用户名称"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="refId"
        label="用户UID"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="phone"
        label="电话号"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="customerType"
        label="客户类型"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="createTime"
        label="创建时间"
        min-width="2">
      </el-table-column>
    </el-table>
    <br/>
    <br/>
    <span>代理人客户表(tbl_agent_customer),展示全部客户</span>
    <el-table
      :data="tblAgentCustomersAll"
      border
      style="width: 100%"
      :header-cell-style="{background: 'deepskyblue', color: 'snow'}">
      <el-table-column
        prop="name"
        label="用户名称"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="refId"
        label="用户UID"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="phone"
        label="电话号"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="customerType"
        label="客户类型"
        min-width="1">
      </el-table-column>
      <el-table-column
        prop="createTime"
        label="创建时间"
        min-width="2">
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        phone: this.$route.query.phone,
        huanjing: this.$route.query.huanjing,
        tblUserInfos: [],
        tblAgentProperties: [],
        tblAgentCustomers: [],
        tblAgentCustomersAll: [],
        tblJiHuoAgentProperties: [],
        myCusOwner: []
      }
    },
    mounted() {
      this.activity()
    },
    methods: {
      activity() {
        const loading = this.$loading({
          lock: true,
          text: '加载中...',
          spinner: 'el-icon-loading',
          background: 'rgba(0, 0, 0, 0.7)'
        });
        let config = {
          headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
          }
        }
        this.$http.get('/userInfo/router?'+this.$qs.stringify({
          phone: this.phone,
          type: this.huanjing
        }),config).then((res)=>{
          console.log(res.data)
          this.tblUserInfos=res.data.tblUserInfos
          this.tblAgentProperties=res.data.tblAgentProperties
          this.tblAgentCustomers=res.data.tblAgentCustomers
          this.tblAgentCustomersAll=res.data.tblAgentCustomersAll
          this.tblJiHuoAgentProperties=res.data.tblJiHuoAgentProperties
          this.myCusOwner=res.data.myCusOwner
          loading.close();
        }).catch(error=>{
          console.log(error);
          loading.close();
          this.$message({
            showClose: true,
            message: '服务器处理失败,请核对参数!',
            type: 'error'
          });
        })
      }
    }
  }
</script>