| | |
| | | @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> |
| | |
| | | components: { |
| | | editCapitalAgentdialog, |
| | | EditAgentinfodialog, |
| | | addagentdialog, |
| | | addagentdialog |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | { |
| | | 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: '总资金', |
| | |
| | | align: 'center', |
| | | customRender: (text, row, index) => { |
| | | return text |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | title: '代理状态', |
| | | dataIndex: 'isLock', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'isLock' }, |
| | | scopedSlots: { customRender: 'isLock' } |
| | | }, |
| | | { |
| | | title: '注册时间', |
| | |
| | | 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: { |
| | |
| | | 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: { |
| | |
| | | phone: '', |
| | | realName: '', |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | pageSize: 10 |
| | | }, |
| | | agentloading: false, |
| | | agentlist: [], |
| | | clickagentlist: [], |
| | | clickagentlist: [] |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | content: '确认删除代理?此操作不可恢复', |
| | | onOk() { |
| | | var data = { |
| | | agentId: val.id, |
| | | agentId: val.id |
| | | } |
| | | agentdelAgent(data).then((res) => { |
| | | if (res.status == 0) { |
| | |
| | | }, |
| | | onCancel() { |
| | | console.log('Cancel') |
| | | }, |
| | | } |
| | | }) |
| | | }, |
| | | getinit() { |
| | |
| | | phone: '', |
| | | realName: '', |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | pageSize: 10 |
| | | } |
| | | this.pagination.current = 1 |
| | | this.getagentlist() |
| | |
| | | this.agentloading = true |
| | | var data = { |
| | | pageNum: 1, |
| | | pageSize: 100, |
| | | pageSize: 100 |
| | | } |
| | | nextagent(data).then((res) => { |
| | | this.clickagentlist = res.data.list |
| | |
| | | this.pagination.current = page |
| | | this.agentqueryParam.pageSize = pageSize |
| | | this.getagentlist() |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | </script> |