| | |
| | | import qs from 'qs' |
| | | const userApi = { |
| | | agentuserlist: '/agent/user/list.do', // 用户列表 |
| | | getMoney: '/agent/getMoney.do', // 获取账户金额 |
| | | agentgetSecondAgent: '/agent/getSecondAgent.do', // 代理列表 |
| | | agentaddSimulatedAccount: '/agent/addSimulatedAccount.do', // 添加真实/模拟用户 |
| | | agentaddAgent: '/agent/addAgent.do', // 添加下级代理 |
| | | agentgetAgentInfo: '/agent/getAgentInfo.do', // 获取代理信息 |
| | | agentgetAgentAgencyFeeList: '/agent/getAgentAgencyFeeList.do', // 获取代理利润明细列表 |
| | | agentupdatePwd: '/agent/updatePwd.do', // 修改密码 |
| | | countdata: '/agent/count.do' ,// 首页统计类 |
| | | countdata: '/agent/count.do', // 首页统计类 |
| | | updataOnLineServices: '/agent/updataOnLineServices.do', // 修改客服链接 |
| | | userupdate: '/agent/user/update.do', // 修改用户信息 |
| | | usergetBank: '/agent/user/getBank.do', // 获取用户银行卡信息 |
| | | userupdateBank: '/agent/user/updateBank.do', // 修改用户银行卡信息 |
| | | userauthByAdmin: '/agent/user/authByAdmin.do', // 用户实名认证审核 |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * login func |
| | |
| | | * @param parameter |
| | | * @returns {*} |
| | | */ |
| | | export function updataOnLineServices (parameter) { |
| | | |
| | | export function getMoney(parameter) { |
| | | return request({ |
| | | url: userApi.getMoney, |
| | | method: 'get', |
| | | params: parameter, |
| | | }) |
| | | } |
| | | export function updataOnLineServices(parameter) { |
| | | return request({ |
| | | url: userApi.updataOnLineServices, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function userauthByAdmin (parameter) { |
| | | export function userauthByAdmin(parameter) { |
| | | return request({ |
| | | url: userApi.userauthByAdmin, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | export function userupdate (parameter) { |
| | | export function userupdate(parameter) { |
| | | return request({ |
| | | url: userApi.userupdate, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function userupdateBank (parameter) { |
| | | export function userupdateBank(parameter) { |
| | | return request({ |
| | | url: userApi.userupdateBank, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function countdata (parameter) { |
| | | export function countdata(parameter) { |
| | | return request({ |
| | | url: userApi.countdata, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | export function agentuserlist (parameter) { |
| | | export function agentuserlist(parameter) { |
| | | return request({ |
| | | url: userApi.agentuserlist, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | |
| | | export function usergetBank (parameter) { |
| | | export function usergetBank(parameter) { |
| | | return request({ |
| | | url: userApi.usergetBank, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | export function agentgetSecondAgent (parameter) { |
| | | export function agentgetSecondAgent(parameter) { |
| | | return request({ |
| | | url: userApi.agentgetSecondAgent, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | export function agentaddSimulatedAccount (parameter) { |
| | | export function agentaddSimulatedAccount(parameter) { |
| | | return request({ |
| | | url: userApi.agentaddSimulatedAccount, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | export function agentaddAgent (parameter) { |
| | | export function agentaddAgent(parameter) { |
| | | return request({ |
| | | url: userApi.agentaddAgent, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | export function agentgetAgentInfo (parameter) { |
| | | export function agentgetAgentInfo(parameter) { |
| | | return request({ |
| | | url: userApi.agentgetAgentInfo, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | export function agentgetAgentAgencyFeeList (parameter) { |
| | | export function agentgetAgentAgencyFeeList(parameter) { |
| | | return request({ |
| | | url: userApi.agentgetAgentAgencyFeeList, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | export function agentupdatePwd (parameter) { |
| | | export function agentupdatePwd(parameter) { |
| | | return request({ |
| | | url: userApi.agentupdatePwd, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | |
| | | import './permission' // permission control |
| | | import './utils/filter' // global filter |
| | | import './global.less' |
| | | window['console']['log'] = function () {} // global style |
| | | // window['console']['log'] = function () {} // global style |
| | | |
| | | Vue.config.productionTip = false |
| | | |
| | |
| | | i18n, |
| | | // init localstorage, vuex, Logo message |
| | | created: bootstrap, |
| | | render: h => h(App) |
| | | render: (h) => h(App), |
| | | }).$mount('#app') |
| | |
| | | <a-card :bordered="false" :title="`【账号余额:${userdetail.totalMoney ? userdetail.totalMoney : '0.00'}】`"> |
| | | <div class="everylist"> |
| | | <a-row :gutter="48"> |
| | | <a-col :md="12" :lg="8" :sm="24"> |
| | | 代理名称:{{ userdetail.agentName }} |
| | | </a-col> |
| | | <a-col :md="12" :lg="8" :sm="24"> |
| | | 真实姓名:{{ userdetail.agentRealName }} |
| | | </a-col> |
| | | <a-col :md="12" :lg="8" :sm="24"> |
| | | 代理代码:{{ userdetail.agentCode }} |
| | | </a-col> |
| | | <a-col :md="12" :lg="8" :sm="24"> 代理名称:{{ userdetail.agentName }} </a-col> |
| | | <a-col :md="12" :lg="8" :sm="24"> 真实姓名:{{ userdetail.agentRealName }} </a-col> |
| | | <a-col :md="12" :lg="8" :sm="24"> 代理代码:{{ userdetail.agentCode }} </a-col> |
| | | </a-row> |
| | | </div> |
| | | |
| | |
| | | 锁定状态: |
| | | {{ userdetail.isLock == 0 ? '正常' : '锁定' }} |
| | | </a-col> |
| | | <a-col :md="12" :lg="8" :sm="24"> |
| | | 电话号码:{{ userdetail.agentPhone }} |
| | | </a-col> |
| | | <a-col :md="12" :lg="8" :sm="24"> 电话号码:{{ userdetail.agentPhone }} </a-col> |
| | | <a-col :md="12" :lg="8" :sm="24"> |
| | | 创建时间: |
| | | {{ userdetail.addTime | moment }} |
| | |
| | | <!-- <a-tag v-clipboard:copy="copyJson" v-clipboard:success="onCopy" v-clipboard:error="onError"> |
| | | <span>复制</span> |
| | | </a-tag> --> |
| | | <a-button type="primary" @click="onCopy(wapurl)" icon="copy" size="small" style="margin-left: 10px;">复制</a-button> |
| | | <a-button type="primary" @click="onCopy(wapurl)" icon="copy" size="small" style="margin-left: 10px" |
| | | >复制</a-button |
| | | > |
| | | </div> |
| | | <div class="everylist"> |
| | | 客服链接:{{ userdetail.onLineServices }} |
| | | <!-- <a-tag v-clipboard:copy="copyJson" v-clipboard:success="onCopy" v-clipboard:error="onError"> |
| | | <span>复制</span> |
| | | </a-tag> --> |
| | | <a-button type="primary" @click="$refs.editUserbankdialog.getEditorder(userdetail)" size="small" style="margin-left: 10px;">修改</a-button> |
| | | <a-button |
| | | type="primary" |
| | | @click="$refs.editUserbankdialog.getEditorder(userdetail)" |
| | | size="small" |
| | | style="margin-left: 10px" |
| | | >修改</a-button |
| | | > |
| | | </div> |
| | | </a-card> |
| | | |
| | |
| | | <a-col :span="12"> |
| | | <a> |
| | | <span>今日充值</span> |
| | | <span class="member">{{ infodetail.charge_today_sum_amt ? infodetail.charge_today_sum_amt : 0 |
| | | }}</span> |
| | | <span class="member">{{ infodetail.charge_today_sum_amt ? infodetail.charge_today_sum_amt : 0 }}</span> |
| | | </a> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | |
| | | <a-col :span="12"> |
| | | <a> |
| | | <span>今日提现</span> |
| | | <span class="member">{{ infodetail.sp_withdraw_sum_today_amt_success ? |
| | | infodetail.sp_withdraw_sum_today_amt_success : 0 |
| | | <span class="member">{{ |
| | | infodetail.sp_withdraw_sum_today_amt_success ? infodetail.sp_withdraw_sum_today_amt_success : 0 |
| | | }}</span> |
| | | </a> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a> |
| | | <span>总提现</span> |
| | | <span class="member">{{ infodetail.sp_withdraw_sum_amt_success ? |
| | | infodetail.sp_withdraw_sum_amt_success : 0 |
| | | <span class="member">{{ |
| | | infodetail.sp_withdraw_sum_amt_success ? infodetail.sp_withdraw_sum_amt_success : 0 |
| | | }}</span> |
| | | </a> |
| | | </a-col> |
| | |
| | | <a-col :span="12"> |
| | | <a> |
| | | <span>当日注册人数</span> |
| | | <span class="member">{{ infodetail.toDayRegCount ? |
| | | infodetail.toDayRegCount : 0 |
| | | }}</span> |
| | | <span class="member">{{ infodetail.toDayRegCount ? infodetail.toDayRegCount : 0 }}</span> |
| | | </a> |
| | | </a-col> |
| | | |
| | | <a-col :span="12"> |
| | | <a> |
| | | <span>当日首充人数</span> |
| | | <span class="member">{{ infodetail.toDayFristRechargeCount ? |
| | | infodetail.toDayFristRechargeCount : 0 |
| | | <span class="member">{{ |
| | | infodetail.toDayFristRechargeCount ? infodetail.toDayFristRechargeCount : 0 |
| | | }}</span> |
| | | </a> |
| | | </a-col> |
| | |
| | | <a-col :span="12"> |
| | | <a> |
| | | <span>当日首充金额</span> |
| | | <span class="member">{{ infodetail.toDayFristRechargeMoney ? |
| | | infodetail.toDayFristRechargeMoney : 0 |
| | | <span class="member">{{ |
| | | infodetail.toDayFristRechargeMoney ? infodetail.toDayFristRechargeMoney : 0 |
| | | }}</span> |
| | | </a> |
| | | </a-col> |
| | |
| | | <a-col :span="12"> |
| | | <a> |
| | | <span>当日充值总人数</span> |
| | | <span class="member">{{ infodetail.toDayRechargeCount ? |
| | | infodetail.toDayRechargeCount : 0 |
| | | }}</span> |
| | | <span class="member">{{ infodetail.toDayRechargeCount ? infodetail.toDayRechargeCount : 0 }}</span> |
| | | </a> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | components: { |
| | | editUserbankdialog, |
| | | PageHeaderWrapper, |
| | | Radar |
| | | Radar, |
| | | }, |
| | | data () { |
| | | data() { |
| | | return { |
| | | pieScale: null, |
| | | pieData: null, |
| | | sourceData: null, |
| | | pieStyle: { |
| | | stroke: '#fff', |
| | | lineWidth: 1 |
| | | lineWidth: 1, |
| | | }, |
| | | timeFix: timeFix(), |
| | | avatar: '', |
| | |
| | | tickLine: null, |
| | | grid: { |
| | | lineStyle: { |
| | | lineDash: null |
| | | lineDash: null, |
| | | }, |
| | | hideFirstLine: false |
| | | } |
| | | hideFirstLine: false, |
| | | }, |
| | | }, |
| | | axis2Opts: { |
| | | dataKey: 'score', |
| | |
| | | grid: { |
| | | type: 'polygon', |
| | | lineStyle: { |
| | | lineDash: null |
| | | } |
| | | } |
| | | lineDash: null, |
| | | }, |
| | | }, |
| | | }, |
| | | scale: [ |
| | | { |
| | | dataKey: 'score', |
| | | min: 0, |
| | | max: 80 |
| | | } |
| | | max: 80, |
| | | }, |
| | | ], |
| | | axisData: [ |
| | | { item: '引用', a: 70, b: 30, c: 40 }, |
| | |
| | | { item: '产量', a: 50, b: 60, c: 40 }, |
| | | { item: '贡献', a: 40, b: 50, c: 40 }, |
| | | { item: '热度', a: 60, b: 70, c: 40 }, |
| | | { item: '引用', a: 70, b: 50, c: 40 } |
| | | { item: '引用', a: 70, b: 50, c: 40 }, |
| | | ], |
| | | radarData: [], |
| | | |
| | |
| | | rongzilist: [], |
| | | userdetail: '', |
| | | lizhidetail: '', |
| | | wapurl: '' |
| | | wapurl: '', |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapState({ |
| | | nickname: state => state.user.nickname, |
| | | welcome: state => state.user.welcome |
| | | nickname: (state) => state.user.nickname, |
| | | welcome: (state) => state.user.welcome, |
| | | }), |
| | | currentUser () { |
| | | currentUser() { |
| | | return { |
| | | name: 'Serati Ma', |
| | | avatar: 'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png' |
| | | avatar: 'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png', |
| | | } |
| | | }, |
| | | userInfo () { |
| | | userInfo() { |
| | | return this.$store.getters.userInfo |
| | | } |
| | | }, |
| | | }, |
| | | created () { |
| | | created() { |
| | | this.user = this.userInfo |
| | | this.avatar = this.userInfo.avatar |
| | | |
| | | getRoleList().then(res => { |
| | | getRoleList().then((res) => { |
| | | // console.log('workplace -> call getRoleList()', res) |
| | | }) |
| | | |
| | | getServiceList().then(res => { |
| | | getServiceList().then((res) => { |
| | | // console.log('workplace -> call getServiceList()', res) |
| | | }) |
| | | }, |
| | | mounted () { |
| | | mounted() { |
| | | this.initRadar() |
| | | this.getAgentInfo() |
| | | this.getlizhi() |
| | | this.getcountdata() |
| | | }, |
| | | methods: { |
| | | agentlist () { |
| | | this.getAgentInfo() |
| | | agentlist() { |
| | | this.getAgentInfo() |
| | | }, |
| | | getcountdata () { |
| | | countdata().then(res => { |
| | | getcountdata() { |
| | | countdata().then((res) => { |
| | | this.infodetail = res.data |
| | | }) |
| | | }, |
| | | onCopy (text) { |
| | | onCopy(text) { |
| | | const oInput = document.createElement('input') |
| | | oInput.value = text |
| | | document.body.appendChild(oInput) |
| | |
| | | this.$message.success('复制成功') |
| | | oInput.remove() |
| | | }, |
| | | getlizhi () { |
| | | axios.get('https://saying.api.azwcl.com/saying/get').then(res => { |
| | | getlizhi() { |
| | | axios.get('https://saying.api.azwcl.com/saying/get').then((res) => { |
| | | this.lizhidetail = res.data.data |
| | | }) |
| | | }, |
| | | // 获取代理信息 |
| | | getAgentInfo () { |
| | | agentgetAgentInfo().then(res => { |
| | | getAgentInfo() { |
| | | agentgetAgentInfo().then((res) => { |
| | | if (res.status == 0) { |
| | | this.userdetail = res.data |
| | | // this.wapurl = location.protocol + '//' + location.host + '/#/register?agentCode=' + this.userdetail.agentCode |
| | | var url = location.protocol + '//' + location.host + '/#/register?agentCode=' + this.userdetail.agentCode |
| | | var url = 'https://www.3falcon.com/#/register?agentCode=' + this.userdetail.agentCode |
| | | // var url = 'https://www.rksv.one' + '/#/register?agentCode=' + this.userdetail.agentCode |
| | | this.wapurl = url.replace('agent.', '') |
| | | } |
| | | }) |
| | | }, |
| | | color16 () { // 十六进制颜色随机 |
| | | color16() { |
| | | // 十六进制颜色随机 |
| | | var r = Math.floor(Math.random() * 256) |
| | | var g = Math.floor(Math.random() * 256) |
| | | var b = Math.floor(Math.random() * 256) |
| | | var color = '#' + r.toString(16) + g.toString(16) + b.toString(16) |
| | | return color |
| | | }, |
| | | initRadar () { |
| | | initRadar() { |
| | | this.radarLoading = true |
| | | this.$http.get('/workplace/radar').then(res => { |
| | | this.$http.get('/workplace/radar').then((res) => { |
| | | const dv = new DataSet.View().source(res.result) |
| | | dv.transform({ |
| | | type: 'fold', |
| | | fields: ['个人', '团队', '部门'], |
| | | key: 'user', |
| | | value: 'score' |
| | | value: 'score', |
| | | }) |
| | | |
| | | this.radarData = dv.rows |
| | | this.radarLoading = false |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | |
| | | <template> |
| | | <div> |
| | | <a-modal title="用户详情" :width="1000" :visible="userDialog" :footer="false" @cancel="userDialog = false"> |
| | | <a-descriptions bordered :title="currentDetails.realName ? currentDetails.realName : '未认证'" :column="{ xxl: 3, xl: 3, lg: 3, md: 3, sm: 2, xs: 1 }"> |
| | | <a-descriptions |
| | | bordered |
| | | :title="currentDetails.realName ? currentDetails.realName : '未认证'" |
| | | :column="{ xxl: 3, xl: 3, lg: 3, md: 3, sm: 2, xs: 1 }" |
| | | > |
| | | <a-descriptions-item label="用户ID"> |
| | | {{ currentDetails.id ? currentDetails.id : '--' }} |
| | | </a-descriptions-item> |
| | |
| | | {{ currentDetails.bankNo ? currentDetails.bankNo : '--' }} |
| | | </a-descriptions-item> |
| | | <a-descriptions-item label="账户总资金"> |
| | | {{ (currentDetails.userAmt + currentDetails.userIndexAmt + currentDetails.userFuturesAmt).toFixed(2) }} |
| | | {{ currentDetails.ALL }}{{ currentDetails.ALLsybol }} |
| | | </a-descriptions-item> |
| | | <a-descriptions-item label="融资总资金"> |
| | | {{ currentDetails.userAmt ? currentDetails.userAmt : '0' }} |
| | | <a-descriptions-item label="马股总资金"> |
| | | {{ currentDetails.MAS }}{{ currentDetails.MASsybol }} |
| | | </a-descriptions-item> |
| | | <a-descriptions-item label="融资可用资金"> |
| | | {{ currentDetails.enableAmt ? currentDetails.enableAmt : '0' }} |
| | | <a-descriptions-item label="美股总资金"> |
| | | {{ currentDetails.US }}{{ currentDetails.USsybol }} |
| | | </a-descriptions-item> |
| | | <a-descriptions-item label="融资冻结保证金"> |
| | | {{ currentDetails.allFreezAmt ? currentDetails.allFreezAmt : '0' }} |
| | | <a-descriptions-item label="港股总资金"> |
| | | {{ currentDetails.HK || 0 }}{{ currentDetails.HKsybol || 'HK$' }} |
| | | </a-descriptions-item> |
| | | <a-descriptions-item label="融资平仓线"> |
| | | {{ currentDetails.forceLine ? currentDetails.forceLine : '0' }} |
| | |
| | | <a-descriptions-item label="期货平仓线"> |
| | | {{ currentDetails.futuresForceLine ? currentDetails.futuresForceLine : '0' }} |
| | | </a-descriptions-item> --> |
| | | |
| | | </a-descriptions> |
| | | </a-modal> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | export default { |
| | | components: {}, |
| | | props: { |
| | | currentDetails: { |
| | | type: Object |
| | | } |
| | | components: {}, |
| | | props: { |
| | | currentDetails: { |
| | | type: Object, |
| | | }, |
| | | data () { |
| | | return { |
| | | userDialog: false |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | }, |
| | | data() { |
| | | return { |
| | | userDialog: false, |
| | | } |
| | | }, |
| | | watch: { |
| | | currentDetails(v) { |
| | | console.log(v) |
| | | }, |
| | | }, |
| | | mounted() { |
| | | console.log(this.currentDetails) |
| | | }, |
| | | methods: {}, |
| | | } |
| | | </script> |
| | |
| | | <a-col :md="12" :lg="6" :sm="24"> |
| | | <a-form-item label="下级代理"> |
| | | <a-select v-model="queryParam.agentId" placeholder="请选择下级代理"> |
| | | <a-select-option v-for="(item, index) in agentlist" :key="index" :value="item.id">{{ item.agentName }} |
| | | <a-select-option v-for="(item, index) in agentlist" :key="index" :value="item.id" |
| | | >{{ item.agentName }} |
| | | </a-select-option> |
| | | </a-select> |
| | | </a-form-item> |
| | |
| | | <a-input v-model="queryParam.phone" style="width: 100%" placeholder="请填写用户手机号" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | <a-row :gutter="48"> |
| | | <a-col :md="12" :lg="6" :sm="24"> |
| | | <a-form-item> |
| | | <span class="table-page-search-submitButtons"> |
| | | <a-button icon="redo" @click="() => this.queryParam = {}">重置</a-button> |
| | | <a-button icon="redo" @click="() => (this.queryParam = {})">重置</a-button> |
| | | <a-button |
| | | type="primary" |
| | | icon="search" |
| | | style="margin-left: 8px" |
| | | @click="queryParam.pageNum = 1, getuserList()">查询</a-button> |
| | | @click=";(queryParam.pageNum = 1), getuserList()" |
| | | >查询</a-button |
| | | > |
| | | <a-button |
| | | type="primary" |
| | | icon="plus" |
| | | style="margin-left: 8px" |
| | | @click="$refs.adduserdialog.addUserdialog = true">添加账户</a-button> |
| | | @click="$refs.adduserdialog.addUserdialog = true" |
| | | >添加账户</a-button |
| | | > |
| | | </span> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | @change="handleTableChange" |
| | | :columns="columns" |
| | | :data-source="dataList" |
| | | rowKey="phone"> |
| | | <span slot="agentName" slot-scope="text,record"> |
| | | rowKey="phone" |
| | | > |
| | | <span slot="agentName" slot-scope="text, record"> |
| | | <template> |
| | | <div> |
| | | <span>{{ record.agentName }}({{ record.agentId }})</span> |
| | | </div> |
| | | </template> |
| | | </span> |
| | | <span slot="isLock" slot-scope="text,record"> |
| | | <span slot="isLock" slot-scope="text, record"> |
| | | <template> |
| | | <div> |
| | | <a-tag :color="record.isLock == 0 ? 'green' : 'red'">{{ record.isLock == 0 ? '可交易' : '不可交易' }}</a-tag> |
| | | <a-tag :color="record.isLock == 0 ? 'green' : 'red'">{{ |
| | | record.isLock == 0 ? '可交易' : '不可交易' |
| | | }}</a-tag> |
| | | </div> |
| | | </template> |
| | | </span> |
| | | <span slot="isLogin" slot-scope="text,record"> |
| | | <span slot="isLogin" slot-scope="text, record"> |
| | | <template> |
| | | <div> |
| | | <a-tag :color="record.isLogin == 0 ? 'green' : 'red'">{{ record.isLogin == 0 ? '可登陆' : '不可登陆' }}</a-tag> |
| | | <a-tag :color="record.isLogin == 0 ? 'green' : 'red'">{{ |
| | | record.isLogin == 0 ? '可登陆' : '不可登陆' |
| | | }}</a-tag> |
| | | </div> |
| | | </template> |
| | | </span> |
| | | <template slot="action" slot-scope="text,record"> |
| | | <template slot="action" slot-scope="text, record"> |
| | | <!-- currentDetails = record; $refs.detailuserdialog.userDialog = true --> |
| | | <a slot="action" href="javascript:;" @click="userInfo(record)">用户详情</a> |
| | | <a-divider type="vertical" /> |
| | | <a slot="action" href="javascript:;" @click="$refs.EditUserinfodialog.getEditorder(record)">编辑</a> |
| | | <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="currentDetails = record; $refs.detailuserdialog.userDialog = true">用户详情</a> |
| | | <a-divider type="vertical" /> |
| | | <a slot="action" href="javascript:;" @click="$refs.EditUserinfodialog.getEditorder(record)">编辑</a> |
| | | <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="currentDetails = record; $refs.audituserdialog.userDialog = true">实名审核</a> |
| | | @click=" |
| | | currentDetails = record |
| | | $refs.audituserdialog.userDialog = true |
| | | " |
| | | >实名审核</a |
| | | > |
| | | </template> |
| | | </a-table> |
| | | </a-card> |
| | |
| | | </page-header-wrapper> |
| | | </template> |
| | | <script> |
| | | import { agentuserlist, agentgetSecondAgent,agentgetAgentInfo } from '@/api/home' |
| | | import { agentuserlist, agentgetSecondAgent, agentgetAgentInfo, getMoney } from '@/api/home' |
| | | import adduserdialog from './components/adduserdialog' |
| | | import detailuserdialog from './components/detailuserdialog' |
| | | import EditUserinfodialog from './components/EditUserinfodialog' |
| | | import editUserbankdialog from './components/editUserbankdialog' |
| | | import audituserdialog from './components/audituserdialog' |
| | | import { async } from 'regenerator-runtime' |
| | | export default { |
| | | name: 'Agentlist', |
| | | components: { |
| | |
| | | detailuserdialog, |
| | | EditUserinfodialog, |
| | | editUserbankdialog, |
| | | audituserdialog |
| | | audituserdialog, |
| | | }, |
| | | data () { |
| | | data() { |
| | | return { |
| | | queryParam: { |
| | | agentId: undefined, |
| | |
| | | phone: '', |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | accountType: 0 |
| | | accountType: 0, |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 7 } |
| | | sm: { span: 7 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 13 } |
| | | sm: { span: 13 }, |
| | | }, |
| | | columns: [ |
| | | { |
| | | { |
| | | title: '用户ID', |
| | | dataIndex: 'id', |
| | | align: 'center' |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '所属代理(Id)', |
| | | scopedSlots: { customRender: 'agentName' }, |
| | | align: 'center' |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '手机号', |
| | | dataIndex: 'phone', |
| | | align: 'center' |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '真实姓名', |
| | | dataIndex: 'realName', |
| | | align: 'center' |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '总资金', |
| | |
| | | align: 'center', |
| | | customRender: (text, row, index) => { |
| | | return text.toFixed(2) |
| | | } |
| | | }, |
| | | }, |
| | | { |
| | | title: '认证信息', |
| | |
| | | align: 'center', |
| | | customRender: (text, row, index) => { |
| | | return text == 0 ? '待认证' : text == 1 ? '待审核' : text == 2 ? '认证成功' : text == 3 ? '驳回' : '' |
| | | } |
| | | }, |
| | | }, |
| | | { |
| | | title: '交易状态', |
| | | dataIndex: 'isLock', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'isLock' } |
| | | scopedSlots: { customRender: 'isLock' }, |
| | | }, |
| | | { |
| | | title: '登录状态', |
| | | dataIndex: 'isLogin', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'isLogin' } |
| | | scopedSlots: { customRender: 'isLogin' }, |
| | | }, |
| | | { |
| | | title: '操作', |
| | | key: 'action', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | scopedSlots: { customRender: 'action' }, |
| | | }, |
| | | ], // 表头 |
| | | dataList: [], |
| | | 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: { |
| | | pageNum: 1, |
| | | pageSize: 100 |
| | | pageSize: 100, |
| | | }, |
| | | agentlist: [], |
| | | userid:'', |
| | | currentDetails: {} |
| | | userid: '', |
| | | currentDetails: {}, |
| | | } |
| | | }, |
| | | created () { |
| | | created() { |
| | | this.getuserList() |
| | | this.getagentlist() |
| | | this.getagentuserinfo() |
| | | }, |
| | | methods: { |
| | | geteditinit () { |
| | | async userInfo(val) { |
| | | const res = await getMoney({ userId: val.id }) |
| | | if (res.success) { |
| | | res.data.map((item) => { |
| | | val[item.accectType] = item.totalMoney |
| | | val[item.accectType + 'sybol'] = item.symbolCode |
| | | }) |
| | | } |
| | | this.currentDetails = val |
| | | this.$refs.detailuserdialog.userDialog = true |
| | | }, |
| | | geteditinit() { |
| | | this.getuserList() |
| | | }, |
| | | getinit () { |
| | | getinit() { |
| | | this.queryParam = { |
| | | agentId: undefined, |
| | | realName: '', |
| | | phone: '', |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | accountType: 0 |
| | | accountType: 0, |
| | | } |
| | | this.getuserList() |
| | | }, |
| | | getuserList () { |
| | | getuserList() { |
| | | var that = this |
| | | this.loading = true |
| | | agentuserlist(this.queryParam).then(res => { |
| | | agentuserlist(this.queryParam).then((res) => { |
| | | this.dataList = res.data.list |
| | | this.pagination.total = res.data.total |
| | | setTimeout(() => { |
| | |
| | | }, 500) |
| | | }) |
| | | }, |
| | | getagentuserinfo () { |
| | | agentgetAgentInfo(this.agentqueryParam).then(res => { |
| | | console.log(res); |
| | | getagentuserinfo() { |
| | | agentgetAgentInfo(this.agentqueryParam).then((res) => { |
| | | console.log(res) |
| | | this.userid = res.data.id |
| | | }) |
| | | }, |
| | | getagentlist () { |
| | | agentgetSecondAgent(this.agentqueryParam).then(res => { |
| | | getagentlist() { |
| | | agentgetSecondAgent(this.agentqueryParam).then((res) => { |
| | | this.agentlist = res.data.list |
| | | }) |
| | | }, |
| | | onPageChange (page, pageSize) { |
| | | onPageChange(page, pageSize) { |
| | | this.queryParam.pageNum = page |
| | | this.getuserList() |
| | | }, |
| | | onSizeChange (current, pageSize) { |
| | | onSizeChange(current, pageSize) { |
| | | this.queryParam.pageNum = current |
| | | this.queryParam.pageSize = pageSize |
| | | this.getuserList() |
| | | }, |
| | | handleTableChange () { |
| | | |
| | | } |
| | | } |
| | | handleTableChange() {}, |
| | | }, |
| | | } |
| | | </script> |