5 files modified
1 files added
| | |
| | | VUE_APP_PREVIEW=true |
| | | # VUE_APP_API_BASE_URL=http://www.jqydl.com:8091/ |
| | | # VUE_APP_API_BASE_URL=https://api.3falcon.com/ |
| | | VUE_APP_API_BASE_URL=https://api.marwadi.online/ |
| | | # VUE_APP_API_BASE_URL=https://api.marwadi.online/ |
| | | # VUE_APP_API_BASE_URL=https://www.rksv.store:8091/ |
| | | # VUE_APP_API_BASE_URL=http://www.ojwuf.com:8091/ |
| | | # VUE_APP_API_BASE_URL=https://192.168.0.102:8091/ |
| | | VUE_APP_API_BASE_URL=http://192.168.0.110:8091/ |
| | | # VUE_APP_API_BASE_URL= https://www.prudentcapitals.net/ |
| | | # VUE_APP_API_BASE_URL=https://api.guosen.org/ |
| | |
| | | import request from '@/utils/request' |
| | | import qs from 'qs' |
| | | const userApi = { |
| | | queryApplyLever: '/admin/queryApplyLever.do', // 首页统计类 |
| | | examineApplyLever: '/admin/examineApplyLever.do', // 首页统计类 |
| | | countdata: '/admin/count.do', // 首页统计类 |
| | | usermanag: '/admin/user/list.do', // 用户列表 |
| | | getMoney: '/admin/getMoney.do', // 获取账户金额 |
| | |
| | | agentadd: '/admin/agent/add.do', // 添加下级代理 |
| | | stockgetMarket: '/api/stock/getMarket.do', // 获取大盘指数行情 |
| | | adminsetSiteStyle: '/api/admin/setSiteStyle.do', // 设置网站风格 |
| | | admingetSiteStyle: '/api/admin/getSiteStyle.do' // 获取网站风格 |
| | | admingetSiteStyle: '/api/admin/getSiteStyle.do', // 获取网站风格 |
| | | } |
| | | |
| | | /** |
| | |
| | | * @returns {*} |
| | | */ |
| | | |
| | | export function queryEcho (parameter) { |
| | | export function queryApplyLever(parameter) { |
| | | return request({ |
| | | url: userApi.queryApplyLever, |
| | | method: 'post', |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function examineApplyLever(parameter) { |
| | | console.log(parameter) |
| | | return request({ |
| | | url: userApi.examineApplyLever, |
| | | method: 'post', |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function queryEcho(parameter) { |
| | | return request({ |
| | | url: userApi.queryEcho, |
| | | method: 'post', |
| | | param: parameter |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function onedklist (parameter) { |
| | | export function onedklist(parameter) { |
| | | return request({ |
| | | url: userApi.onedklist, |
| | | method: 'post', |
| | | param: parameter |
| | | param: parameter, |
| | | }) |
| | | } |
| | | export function countdata (parameter) { |
| | | export function countdata(parameter) { |
| | | return request({ |
| | | url: userApi.countdata, |
| | | method: 'post', |
| | | param: parameter |
| | | param: parameter, |
| | | }) |
| | | } |
| | | export function addcz (parameter) { |
| | | export function addcz(parameter) { |
| | | return request({ |
| | | url: userApi.addcz, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function upcztd (parameter) { |
| | | export function upcztd(parameter) { |
| | | return request({ |
| | | url: userApi.upcztd, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function yeblist (parameter) { |
| | | export function yeblist(parameter) { |
| | | return request({ |
| | | url: userApi.yeblist, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | export function dlcztd (parameter) { |
| | | export function dlcztd(parameter) { |
| | | return request({ |
| | | url: userApi.dlcztd, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function usermanag (parameter) { |
| | | export function usermanag(parameter) { |
| | | return request({ |
| | | url: userApi.usermanag, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function getMoney (parameter) { |
| | | export function getMoney(parameter) { |
| | | return request({ |
| | | url: userApi.getMoney, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function updateMoney (parameter) { |
| | | |
| | | export function updateMoney(parameter) { |
| | | return request({ |
| | | url: '/admin/updateMoney.do', |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function addyeb (parameter) { |
| | | export function addyeb(parameter) { |
| | | return request({ |
| | | url: userApi.addyeb, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function nextagent (parameter) { |
| | | export function nextagent(parameter) { |
| | | return request({ |
| | | url: userApi.nextagent, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function adddkjg (parameter) { |
| | | export function adddkjg(parameter) { |
| | | return request({ |
| | | url: userApi.adddkjg, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function deyeb (parameter) { |
| | | export function deyeb(parameter) { |
| | | return request({ |
| | | url: userApi.deyeb, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function dldkjg (parameter) { |
| | | export function dldkjg(parameter) { |
| | | return request({ |
| | | url: userApi.dldkjg, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function upyeb (parameter) { |
| | | export function upyeb(parameter) { |
| | | return request({ |
| | | url: userApi.upyeb, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function updkjg (parameter) { |
| | | export function updkjg(parameter) { |
| | | return request({ |
| | | url: userApi.updkjg, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function dklist (parameter) { |
| | | export function dklist(parameter) { |
| | | return request({ |
| | | url: userApi.dklist, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | export function useraddSimulatedAccount (parameter) { |
| | | export function useraddSimulatedAccount(parameter) { |
| | | return request({ |
| | | url: userApi.useraddSimulatedAccount, |
| | | 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 usergetBank (parameter) { |
| | | export function usergetBank(parameter) { |
| | | return request({ |
| | | url: userApi.usergetBank, |
| | | 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 userupdateAmt (parameter) { |
| | | export function userupdateAmt(parameter) { |
| | | return request({ |
| | | url: userApi.userupdateAmt, |
| | | 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 userdelete (parameter) { |
| | | export function userdelete(parameter) { |
| | | return request({ |
| | | url: userApi.userdelete, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | export function agentupdateAgentAmt (parameter) { |
| | | export function agentupdateAgentAmt(parameter) { |
| | | return request({ |
| | | url: userApi.agentupdateAgentAmt, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function czlist (parameter) { |
| | | export function czlist(parameter) { |
| | | return request({ |
| | | url: userApi.czlist, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | export function agentdelAgent (parameter) { |
| | | export function agentdelAgent(parameter) { |
| | | return request({ |
| | | url: userApi.agentdelAgent, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | export function agentupdate (parameter) { |
| | | export function agentupdate(parameter) { |
| | | return request({ |
| | | url: userApi.agentupdate, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | export function agentadd (parameter) { |
| | | export function agentadd(parameter) { |
| | | return request({ |
| | | url: userApi.agentadd, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | export function stockgetMarket (parameter) { |
| | | export function stockgetMarket(parameter) { |
| | | return request({ |
| | | url: userApi.stockgetMarket, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | export function adminsetSiteStyle (parameter) { |
| | | export function adminsetSiteStyle(parameter) { |
| | | return request({ |
| | | url: userApi.adminsetSiteStyle, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | | |
| | | export function admingetSiteStyle (parameter) { |
| | | export function admingetSiteStyle(parameter) { |
| | | return request({ |
| | | url: userApi.admingetSiteStyle, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | data: qs.stringify(parameter), |
| | | }) |
| | | } |
| | |
| | | component: () => import('@/views/userlist/agentlist'), |
| | | meta: { title: '代理列表', keepAlive: true, permission: ['agentlist'] }, |
| | | }, |
| | | { |
| | | path: '/userlist/lervelist', |
| | | name: 'lervelist', |
| | | component: () => import('@/views/userlist/lervelist'), |
| | | meta: { title: '杠杠申请列表', keepAlive: true, permission: ['agentlist'] }, |
| | | }, |
| | | ], |
| | | }, |
| | | // { |
| | |
| | | <a-form-item label="密码" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请输入密码" v-decorator="['userPwd', {}]" /> |
| | | </a-form-item> |
| | | <a-form-item label="资金使用百分比" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请输入资金使用百分比" v-decorator="['fundRatio', {}]" /> |
| | | </a-form-item> |
| | | <a-form-item label="杠杠" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请输入杠杠" v-decorator="['lever', {}]" /> |
| | | </a-form-item> |
| | | <a-form-item label="身份证号码" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请输入身份证号码" v-decorator="['idCard', {}]" /> |
| | | </a-form-item> |
| | |
| | | editUserform: this.$form.createForm(this), |
| | | editUserdialog: false, |
| | | editUserDialogloading: false, |
| | | fields: ['agentId', 'phone', 'realName', 'userPwd', 'idCard', 'isLogin', 'isLock'], |
| | | fields: ['agentId', 'phone', 'realName', 'userPwd', 'idCard', 'isLogin', 'isLock', 'fundRatio', 'lever'], |
| | | currentDetails: {}, |
| | | } |
| | | }, |
| | |
| | | dataIndex: 'realName', |
| | | align: 'center', |
| | | }, |
| | | // { |
| | | // title: '总资金', |
| | | // dataIndex: 'userAmt', |
| | | // align: 'center', |
| | | // customRender: (text, row, index) => { |
| | | // return text ? text.toFixed(2) : '0' |
| | | // // return text.toFixed(2) |
| | | // }, |
| | | // }, |
| | | { |
| | | title: '资金使用百分比', |
| | | dataIndex: 'fundRatio', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '杠杠', |
| | | dataIndex: 'lever', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '认证信息', |
| | | dataIndex: 'isActive', |
| New file |
| | |
| | | <template> |
| | | <page-header-wrapper> |
| | | <a-card :bordered="false"> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline"> |
| | | <a-row :gutter="48"> |
| | | <a-col :md="12" :lg="6" :sm="24"> |
| | | <a-form-item label="用户手机"> |
| | | <a-input v-model="queryParam.phone" style="width: 100%" placeholder="请填写用户手机号" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <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 |
| | | type="primary" |
| | | icon="search" |
| | | style="margin-left: 8px" |
| | | @click=";(queryParam.pageNum = 1), (pagination.current = 1), getuserList()" |
| | | > |
| | | 查询 |
| | | </a-button> |
| | | </span> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | </a-card> |
| | | <a-card :bordered="false"> |
| | | <a-table |
| | | bordered |
| | | :loading="loading" |
| | | :pagination="pagination" |
| | | @change="handleTableChange" |
| | | :columns="columns" |
| | | :data-source="dataList" |
| | | rowKey="phone" |
| | | > |
| | | <span slot="state" slot-scope="text, record"> |
| | | <template> |
| | | <div> |
| | | <a-tag :color="text == 1 ? 'green' : 'red'">{{ |
| | | text == 0 ? '申请中' : text == 1 ? '审核成功' : '审核失败' |
| | | }}</a-tag> |
| | | </div> |
| | | </template> |
| | | </span> |
| | | <template slot="action" slot-scope="text, record"> |
| | | <a |
| | | slot="action" |
| | | href="javascript:;" |
| | | @click=" |
| | | recordData = record |
| | | recordConfig.open = true |
| | | recordConfig.key = 2 |
| | | recordConfig.title = '是否驳回' |
| | | " |
| | | >驳回</a |
| | | > |
| | | <a-divider type="vertical" /> |
| | | <a |
| | | slot="action" |
| | | href="javascript:;" |
| | | @click=" |
| | | recordData = record |
| | | recordConfig.open = true |
| | | recordConfig.key = 1 |
| | | recordConfig.title = '是否通过' |
| | | " |
| | | >通过</a |
| | | > |
| | | </template> |
| | | </a-table> |
| | | </a-card> |
| | | <a-modal v-model:open="recordConfig.open" title="通知" @ok="handleOk"> |
| | | <div>{{ recordConfig.title }}</div> |
| | | </a-modal> |
| | | </page-header-wrapper> |
| | | </template> |
| | | <script> |
| | | import { usermanag, nextagent, userdelete, getMoney, queryApplyLever, examineApplyLever } 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 moment from 'moment' |
| | | export default { |
| | | name: 'Agentlist', |
| | | components: { |
| | | adduserdialog, |
| | | detailuserdialog, |
| | | EditUserinfodialog, |
| | | editUserbankdialog, |
| | | editCapitaluserdialog, |
| | | audituserdialog, |
| | | }, |
| | | data() { |
| | | return { |
| | | recordData: {}, |
| | | recordConfig: { |
| | | open: false, |
| | | title: '', |
| | | key: '', |
| | | }, |
| | | queryParam: { |
| | | phone: '', |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 7 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 13 }, |
| | | }, |
| | | columns: [ |
| | | { |
| | | title: '用户ID', |
| | | dataIndex: 'userId', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '杠杠', |
| | | dataIndex: 'lever', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '手机号码', |
| | | dataIndex: 'phone', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '状态', |
| | | dataIndex: 'state', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'state' }, |
| | | }, |
| | | |
| | | { |
| | | title: '操作', |
| | | key: 'action', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'action' }, |
| | | }, |
| | | ], // 表头 |
| | | dataList: [], |
| | | pagination: { |
| | | total: 0, |
| | | pageSize: 10, // 每页中显示10条数据 |
| | | current: 1, |
| | | showSizeChanger: true, |
| | | pageSizeOptions: ['10', '20', '50', '100'], // 每页中显示的数据 |
| | | onShowSizeChange: (current, pageSize) => this.onSizeChange(current, pageSize), // 改变每页数量时更新显示 |
| | | onChange: (page, pageSize) => this.onPageChange(page, pageSize), // 点击页码事件 |
| | | showTotal: (total) => `共有 ${total} 条数据`, // 分页中显示总的数据 |
| | | }, |
| | | loading: false, |
| | | agentqueryParam: { |
| | | pageNum: 1, |
| | | pageSize: 100, |
| | | }, |
| | | agentlist: [], |
| | | currentDetails: {}, |
| | | activeArr: [], |
| | | } |
| | | }, |
| | | created() { |
| | | this.getuserList() |
| | | }, |
| | | methods: { |
| | | async handleOk() { |
| | | let opt = { |
| | | state: this.recordConfig.key, |
| | | id: this.recordData.id, |
| | | } |
| | | const res = await examineApplyLever(opt) |
| | | if (res.status === 0) { |
| | | this.$message.success(this.recordConfig.key === 2 ? '驳回成功' : '审核通过') |
| | | } else { |
| | | this.$message.error(res.msg) |
| | | } |
| | | this.recordConfig.open = false |
| | | }, |
| | | getMoneyzj(record) { |
| | | getMoney({ userId: record.id }).then((res) => { |
| | | if (res.status === 0) { |
| | | const arr = res.data.filter((item) => item.accectType !== 'ALL') |
| | | this.activeArr = arr |
| | | this.$refs.editCapitaluserdialog.getEditorder(record) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | getDeluser(val) { |
| | | var that = this |
| | | this.$confirm({ |
| | | title: '提示', |
| | | content: '确认删除该用户吗?此操作不可恢复,将删除该用户所有的充值、提现与持仓记录!', |
| | | onOk() { |
| | | var data = { |
| | | userId: val.id, |
| | | } |
| | | userdelete(data).then((res) => { |
| | | if (res.status == 0) { |
| | | that.$message.success(res.msg) |
| | | that.getinit() |
| | | } else { |
| | | that.$message.error(res.msg) |
| | | } |
| | | }) |
| | | }, |
| | | onCancel() { |
| | | console.log('Cancel') |
| | | }, |
| | | }) |
| | | }, |
| | | getinit() { |
| | | this.queryParam = { |
| | | agentId: undefined, |
| | | realName: '', |
| | | phone: '', |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | accountType: 0, |
| | | } |
| | | this.pagination.current = 1 |
| | | this.getuserList() |
| | | }, |
| | | geteditinit() { |
| | | this.getuserList() |
| | | }, |
| | | getuserList() { |
| | | console.log(3333) |
| | | var that = this |
| | | this.loading = true |
| | | queryApplyLever(this.queryParam).then((res) => { |
| | | this.dataList = res.data.records |
| | | this.pagination.total = res.data.total |
| | | setTimeout(() => { |
| | | that.loading = false |
| | | }, 500) |
| | | }) |
| | | }, |
| | | getagentlist() { |
| | | nextagent(this.agentqueryParam).then((res) => { |
| | | this.agentlist = res.data.list |
| | | }) |
| | | }, |
| | | onPageChange(page, pageSize) { |
| | | this.queryParam.pageNum = page |
| | | this.pagination.current = page |
| | | this.getuserList() |
| | | }, |
| | | onSizeChange(current, pageSize) { |
| | | // console.log(current, pageSize) |
| | | this.queryParam.pageNum = current |
| | | // this.pagination.current = page |
| | | this.queryParam.pageSize = pageSize |
| | | this.getuserList() |
| | | }, |
| | | handleTableChange() {}, |
| | | }, |
| | | } |
| | | </script> |