| | |
| | | <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> |
| | | |