| | |
| | | <a-divider type="vertical" /> |
| | | <a slot="action" href="javascript:;" @click="$refs.editUserbankdialog.getbankinfo(record)">银行卡</a> |
| | | <a-divider type="vertical" /> |
| | | <a slot="action" href="javascript:;" @click="getMoneyzj(record)">资金</a> |
| | | <a-divider type="vertical" /> |
| | | <a |
| | | slot="action" |
| | | href="javascript:;" |
| | |
| | | " |
| | | >实名审核</a |
| | | > |
| | | <a-divider type="vertical" /> |
| | | <a slot="action" href="javascript:;" @click="deleteUser(record)" style="color: #ff4d4f">删除</a> |
| | | </template> |
| | | </a-table> |
| | | </a-card> |
| | |
| | | <EditUserinfodialog ref="EditUserinfodialog" :getinit="geteditinit" :agentlist="agentlist"></EditUserinfodialog> |
| | | <editUserbankdialog ref="editUserbankdialog" :getinit="geteditinit"></editUserbankdialog> |
| | | <audituserdialog ref="audituserdialog" :currentDetails="currentDetails" :getinit="geteditinit"></audituserdialog> |
| | | <editCapitaluserdialog :activeArr="activeArr" ref="editCapitaluserdialog" :getinit="geteditinit"></editCapitaluserdialog> |
| | | </page-header-wrapper> |
| | | </template> |
| | | <script> |
| | | import { agentuserlist, agentgetSecondAgent, agentgetAgentInfo, getMoney } from '@/api/home' |
| | | import { agentuserlist, agentgetSecondAgent, agentgetAgentInfo, getMoney, userdelete } from '@/api/home' |
| | | import adduserdialog from './components/adduserdialog' |
| | | import detailuserdialog from './components/detailuserdialog' |
| | | import EditUserinfodialog from './components/EditUserinfodialog' |
| | | import editUserbankdialog from './components/editUserbankdialog' |
| | | import editCapitaluserdialog from './components/editCapitaluserdialog' |
| | | import audituserdialog from './components/audituserdialog' |
| | | import { async } from 'regenerator-runtime' |
| | | export default { |
| | |
| | | detailuserdialog, |
| | | EditUserinfodialog, |
| | | editUserbankdialog, |
| | | editCapitaluserdialog, |
| | | audituserdialog |
| | | }, |
| | | data () { |
| | | return { |
| | | activeArr: [], |
| | | queryParam: { |
| | | agentId: undefined, |
| | | realName: '', |
| | |
| | | this.getagentuserinfo() |
| | | }, |
| | | methods: { |
| | | async getMoneyzj(record) { |
| | | const res = await getMoney({ userId: record.id }) |
| | | if (res.success) { |
| | | const arr = res.data.filter((item) => item.accectType !== 'ALL') |
| | | this.activeArr = arr |
| | | this.$refs.editCapitaluserdialog.getEditorder(record) |
| | | } |
| | | }, |
| | | async userInfo (val) { |
| | | const res = await getMoney({ userId: val.id }) |
| | | if (res.success) { |
| | |
| | | this.queryParam.pageSize = pageSize |
| | | this.getuserList() |
| | | }, |
| | | handleTableChange () {} |
| | | handleTableChange () {}, |
| | | deleteUser (record) { |
| | | var that = this |
| | | this.$confirm({ |
| | | title: '提示', |
| | | content: `确认删除用户 ${record.realName || record.phone} 吗?此操作不可恢复!`, |
| | | onOk () { |
| | | var data = { |
| | | userId: record.id |
| | | } |
| | | userdelete(data).then((res) => { |
| | | if (res.status == 0) { |
| | | that.$message.success({ content: '删除成功', duration: 2 }) |
| | | that.getuserList() |
| | | } else { |
| | | that.$message.error(res.msg || '删除失败') |
| | | } |
| | | }).catch((err) => { |
| | | that.$message.error('删除失败,请稍后重试') |
| | | }) |
| | | }, |
| | | onCancel () { |
| | | console.log('Cancel') |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |