大宝管理后台代码
jhzh
2024-04-07 8477322adb238a81c46ffdc1fbf83628713aa389
src/views/userlist/agentlist.vue
@@ -38,7 +38,10 @@
                    @click=";(agentqueryParam.pageNum = 1), (pagination.current = 1), getagentlist()"
                    >查询
                  </a-button>
                  <a-button style="margin-left: 8px" @click="() => (this.agentqueryParam = {})" icon="redo"
                  <a-button
                    style="margin-left: 8px"
                    @click="() => (this.agentqueryParam = {})"
                    icon="redo"
                    >重置</a-button
                  >
                </span>
@@ -104,7 +107,7 @@
  components: {
    editCapitalAgentdialog,
    EditAgentinfodialog,
    addagentdialog,
    addagentdialog
  },
  data() {
    return {
@@ -112,34 +115,34 @@
        {
          title: '所属代理(Id)',
          scopedSlots: { customRender: 'agentName' },
          align: 'center',
          align: 'center'
        },
        {
          title: '代理编码',
          dataIndex: 'agentCode',
          align: 'center',
          align: 'center'
        },
        {
          title: '上级代理',
          dataIndex: 'parentName',
          align: 'center',
          scopedSlots: { customRender: 'parentName' },
          scopedSlots: { customRender: 'parentName' }
        },
        {
          title: '代理手机号',
          dataIndex: 'agentPhone',
          align: 'center',
          align: 'center'
        },
        {
          title: '真实姓名',
          dataIndex: 'agentRealName',
          align: 'center',
          align: 'center'
        },
        {
          title: '客服链接',
          dataIndex: 'onLineServices',
          align: 'center',
          align: 'center'
        },
        {
          title: '总资金',
@@ -147,13 +150,13 @@
          align: 'center',
          customRender: (text, row, index) => {
            return text
          },
          }
        },
        {
          title: '代理状态',
          dataIndex: 'isLock',
          align: 'center',
          scopedSlots: { customRender: 'isLock' },
          scopedSlots: { customRender: 'isLock' }
        },
        {
          title: '注册时间',
@@ -161,14 +164,14 @@
          align: 'center',
          customRender: (text, row, index) => {
            return moment(text).format('YYYY-MM-DD HH:mm:ss')
          },
          }
        },
        {
          title: '操作',
          key: 'action',
          align: 'center',
          scopedSlots: { customRender: 'action' },
        },
          scopedSlots: { customRender: 'action' }
        }
      ],
      // 表头
      pagination: {
@@ -179,7 +182,7 @@
        pageSizeOptions: ['10', '20', '50', '100'], // 每页中显示的数据
        onShowSizeChange: (current, pageSize) => this.onSizeChange(current, pageSize), // 改变每页数量时更新显示
        onChange: (page, pageSize) => this.onPageChange(page, pageSize), // 点击页码事件
        showTotal: (total) => `共有 ${total} 条数据`, // 分页中显示总的数据
        showTotal: (total) => `共有 ${total} 条数据` // 分页中显示总的数据
      },
      loading: false,
      agentqueryParam: {
@@ -187,11 +190,11 @@
        phone: '',
        realName: '',
        pageNum: 1,
        pageSize: 10,
        pageSize: 10
      },
      agentloading: false,
      agentlist: [],
      clickagentlist: [],
      clickagentlist: []
    }
  },
  created() {
@@ -205,7 +208,7 @@
        content: '确认删除代理?此操作不可恢复',
        onOk() {
          var data = {
            agentId: val.id,
            agentId: val.id
          }
          agentdelAgent(data).then((res) => {
            if (res.status == 0) {
@@ -218,7 +221,7 @@
        },
        onCancel() {
          console.log('Cancel')
        },
        }
      })
    },
    getinit() {
@@ -227,7 +230,7 @@
        phone: '',
        realName: '',
        pageNum: 1,
        pageSize: 10,
        pageSize: 10
      }
      this.pagination.current = 1
      this.getagentlist()
@@ -251,7 +254,7 @@
      this.agentloading = true
      var data = {
        pageNum: 1,
        pageSize: 100,
        pageSize: 100
      }
      nextagent(data).then((res) => {
        this.clickagentlist = res.data.list
@@ -270,7 +273,7 @@
      this.pagination.current = page
      this.agentqueryParam.pageSize = pageSize
      this.getagentlist()
    },
  },
    }
  }
}
</script>