27 files modified
2 files added
7 files deleted
| | |
| | | payadd: '/admin/pay/add.do', // 添加支付渠道 |
| | | payupdate: '/admin/pay/update.do', // 修改支付渠道 |
| | | sitegetInfo: '/api/site/getInfo.do', // 系统设置 |
| | | infoupdate: '/admin/info/update.do' // 修改系统设置 |
| | | infoupdate: '/admin/info/update.do', // 修改系统设置 |
| | | queryAll: 'admin/stockTimeSetting/queryAll.do', // 查看股票时间 |
| | | updatetime: '/admin/stockTimeSetting/update.do', // 修改股票时间 |
| | | SettingqueryAll: 'admin/stockSetting/queryAll.do', // 盘前交易列表 |
| | | stockadd: '/admin/stockSetting/add.do', // 新增盘前交易 |
| | | stockupdata: '/admin/stockSetting/update.do', // 修改盘前交易 |
| | | stockdelete: '/admin/stockSetting/delete.do'// 删除盘前 |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param parameter |
| | | * @returns {*} |
| | | */ |
| | | export function stockdelete (parameter) { |
| | | return request({ |
| | | url: userApi.stockdelete, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | }) |
| | | } |
| | | export function stockupdata (parameter) { |
| | | return request({ |
| | | url: userApi.stockupdata, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | }) |
| | | } |
| | | export function stockadd (parameter) { |
| | | return request({ |
| | | url: userApi.stockadd, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | }) |
| | | } |
| | | export function SettingqueryAll (parameter) { |
| | | return request({ |
| | | url: userApi.SettingqueryAll, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | }) |
| | | } |
| | | export function updatetime (parameter) { |
| | | return request({ |
| | | url: userApi.updatetime, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | }) |
| | | } |
| | | export function queryAll (parameter) { |
| | | return request({ |
| | | url: userApi.queryAll, |
| | | method: 'post', |
| | | data: qs.stringify(parameter) |
| | | }) |
| | | } |
| | | export function artlist (parameter) { |
| | | return request({ |
| | | url: userApi.artlist, |
| | |
| | | userdelete: '/admin/user/delete.do', // 删除用户 |
| | | czlist: '/admin/queryPayChnnel.do', // 充值方列表 |
| | | addcz: '/admin/savePayChnnel.do', // 添加充值方列表 |
| | | dlcztd: '/admin/deletePayChnnel.do', //删除充值通道 |
| | | upcztd: '/admin/updateayChnnel.do', //修改充值通道 |
| | | dlcztd: '/admin/deletePayChnnel.do', // 删除充值通道 |
| | | upcztd: '/admin/updateayChnnel.do', // 修改充值通道 |
| | | queryEcho: '/admin/queryEcho.do', // 利息宝列表 |
| | | upyeb: '/admin/updateEcho.do', // 编辑利息宝列表 |
| | | deyeb: '/admin/deleteEcho.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 queryEcho (parameter) { |
| | | return request({ |
| | | url: userApi.queryEcho, |
| | | method: 'post', |
| | | param: parameter, |
| | | param: 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) { |
| | | console.log(3333) |
| | | 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) |
| | | }) |
| | | } |
| | |
| | | |
| | | const RouteView = { |
| | | name: 'RouteView', |
| | | render: (h) => h('router-view'), |
| | | render: (h) => h('router-view') |
| | | } |
| | | |
| | | export const asyncRouterMap = [ |
| | |
| | | path: '/dashboard/workplace', |
| | | name: 'Workplace', |
| | | component: () => import('@/views/dashboard/Workplace'), |
| | | meta: { title: 'menu.dashboard.workplace', keepAlive: true, permission: ['dashboard'] }, |
| | | }, |
| | | ], |
| | | meta: { title: 'menu.dashboard.workplace', keepAlive: true, permission: ['dashboard'] } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/userlist', |
| | |
| | | path: '/userlist/index', |
| | | name: 'Userlist', |
| | | component: () => import('@/views/userlist/index'), |
| | | meta: { title: '用户列表', keepAlive: true, permission: ['userlist'] }, |
| | | meta: { title: '用户列表', keepAlive: true, permission: ['userlist'] } |
| | | }, |
| | | { |
| | | path: '/userlist/agentlist', |
| | | name: 'Agentlist', |
| | | component: () => import('@/views/userlist/agentlist'), |
| | | meta: { title: '代理列表', keepAlive: true, permission: ['agentlist'] }, |
| | | }, |
| | | ], |
| | | meta: { title: '代理列表', keepAlive: true, permission: ['agentlist'] } |
| | | } |
| | | ] |
| | | }, |
| | | // { |
| | | // path: '/allotment', |
| | |
| | | path: '/product/shares', |
| | | name: 'shares', |
| | | component: () => import('@/views/product/shares'), |
| | | meta: { title: '股票产品', keepAlive: true, permission: ['shares'] }, |
| | | meta: { title: '股票产品', keepAlive: true, permission: ['shares'] } |
| | | }, |
| | | { |
| | | path: '/product/markettrading', |
| | | name: 'markettrading', |
| | | component: () => import('@/views/product/markettrading'), |
| | | meta: { title: '盘前交易', keepAlive: true, permission: ['markettrading'] } |
| | | } |
| | | // { |
| | | // path: '/product/index', |
| | | // name: 'index', |
| | |
| | | // component: () => import('@/views/product/futures'), |
| | | // meta: { title: '期货产品', keepAlive: true, permission: ['futures'] } |
| | | // }, |
| | | ], |
| | | ] |
| | | }, |
| | | // 持仓管理 |
| | | { |
| | |
| | | path: '/position/financing', |
| | | name: 'financing', |
| | | component: () => import('@/views/position/financing'), |
| | | meta: { title: '持仓管理', keepAlive: true, permission: ['financing'] }, |
| | | meta: { title: '持仓管理', keepAlive: true, permission: ['financing'] } |
| | | }, |
| | | { |
| | | path: '/position/createfinancing', |
| | | name: 'createfinancing', |
| | | component: () => import('@/views/position/createFinancing'), |
| | | meta: { title: '创建股票持仓', keepAlive: true, permission: ['createfinancing'] }, |
| | | }, |
| | | ], |
| | | meta: { title: '创建股票持仓', keepAlive: true, permission: ['createfinancing'] } |
| | | } |
| | | ] |
| | | }, |
| | | // 新股管理 |
| | | { |
| | |
| | | path: '/newshares/newshareslist', |
| | | name: 'newshareslist', |
| | | component: () => import('@/views/newshares/newshareslist'), |
| | | meta: { title: '新股列表', keepAlive: true, permission: ['newshareslist'] }, |
| | | meta: { title: '新股列表', keepAlive: true, permission: ['newshareslist'] } |
| | | }, |
| | | { |
| | | path: '/newshares/newsharesrecord', |
| | | name: 'newsharesrecord', |
| | | component: () => import('@/views/newshares/newsharesrecord'), |
| | | meta: { title: '申购记录', keepAlive: true, permission: ['newsharesrecord'] }, |
| | | }, |
| | | meta: { title: '申购记录', keepAlive: true, permission: ['newsharesrecord'] } |
| | | } |
| | | // { |
| | | // path: '/newshares/dazonglist', |
| | | // name: 'dazonglist', |
| | | // component: () => import('@/views/newshares/dazonglist'), |
| | | // meta: { title: '大宗交易列表', keepAlive: true, permission: ['dazonglist'] }, |
| | | // }, |
| | | ], |
| | | ] |
| | | }, |
| | | // 资金管理 |
| | | { |
| | |
| | | path: '/capital/rechargelist', |
| | | name: 'rechargelist', |
| | | component: () => import('@/views/capital/rechargelist'), |
| | | meta: { title: '充值列表', keepAlive: true, permission: ['rechargelist'] }, |
| | | meta: { title: '充值列表', keepAlive: true, permission: ['rechargelist'] } |
| | | }, |
| | | { |
| | | path: '/capital/withdrawallist', |
| | | name: 'withdrawallist', |
| | | component: () => import('@/views/capital/withdrawallist'), |
| | | meta: { title: '提现列表', keepAlive: true, permission: ['withdrawallist'] }, |
| | | }, |
| | | meta: { title: '提现列表', keepAlive: true, permission: ['withdrawallist'] } |
| | | } |
| | | // { |
| | | // path: '/capital/fundrecords', |
| | | // name: 'fundrecords', |
| | |
| | | // component: () => import('@/views/capital/Withdrawal_channel'), |
| | | // meta: { title: '提现通道', keepAlive: true, permission: ['Withdrawal_channel'] }, |
| | | // }, |
| | | ], |
| | | ] |
| | | }, |
| | | // 日志管理 |
| | | { |
| | |
| | | path: '/logmanage/loginlog', |
| | | name: 'loginlog', |
| | | component: () => import('@/views/logmanage/loginlog'), |
| | | meta: { title: '登录日志', keepAlive: true, permission: ['loginlog'] }, |
| | | }, |
| | | meta: { title: '登录日志', keepAlive: true, permission: ['loginlog'] } |
| | | } |
| | | // { |
| | | // path: '/logmanage/smslog', |
| | | // name: 'smslog', |
| | |
| | | // component: () => import('@/views/logmanage/stationmessage'), |
| | | // meta: { title: '站内消息', keepAlive: true, permission: ['stationmessage'] }, |
| | | // }, |
| | | ], |
| | | ] |
| | | }, |
| | | |
| | | // 管理设置 |
| | |
| | | path: '/managesettings/managelist', |
| | | name: 'managelist', |
| | | component: () => import('@/views/managesettings/managelist'), |
| | | meta: { title: '管理列表', keepAlive: true, permission: ['managelist'] }, |
| | | }, |
| | | ], |
| | | meta: { title: '管理列表', keepAlive: true, permission: ['managelist'] } |
| | | } |
| | | ] |
| | | }, |
| | | // 风控设置 |
| | | { |
| | |
| | | path: '/risksetting/productsetting', |
| | | name: 'productsetting', |
| | | component: () => import('@/views/risksetting/productsetting'), |
| | | meta: { title: '产品配置', keepAlive: true, permission: ['productsetting'] }, |
| | | meta: { title: '产品配置', keepAlive: true, permission: ['productsetting'] } |
| | | }, |
| | | { |
| | | path: '/risksetting/sharessetting', |
| | | name: 'sharessetting', |
| | | component: () => import('@/views/risksetting/sharessetting'), |
| | | meta: { title: '股票风控', keepAlive: true, permission: ['sharessetting'] }, |
| | | meta: { title: '股票风控', keepAlive: true, permission: ['sharessetting'] } |
| | | }, |
| | | { |
| | | path: '/risksetting/timelist', |
| | | name: 'timelist', |
| | | component: () => import('@/views/risksetting/timelist'), |
| | | meta: { title: '股票时间列表', keepAlive: true, permission: ['timelist'] } |
| | | } |
| | | // { |
| | | // path: '/risksetting/indexsetting', |
| | | // name: 'indexsetting', |
| | |
| | | // component: () => import('@/views/risksetting/spreadsetting'), |
| | | // meta: { title: '点差设置', keepAlive: true, permission: ['spreadsetting'] }, |
| | | // }, |
| | | ], |
| | | ] |
| | | }, |
| | | // 系统设置 |
| | | { |
| | |
| | | path: '/allsetting/noticesetting', |
| | | name: 'noticesetting', |
| | | component: () => import('@/views/allsetting/noticesetting'), |
| | | meta: { title: '公告设置', keepAlive: true, permission: ['noticesetting'] }, |
| | | meta: { title: '公告设置', keepAlive: true, permission: ['noticesetting'] } |
| | | }, |
| | | { |
| | | path: '/allsetting/bannersetting', |
| | | name: 'bannersetting', |
| | | component: () => import('@/views/allsetting/bannersetting'), |
| | | meta: { title: '轮播图设置', keepAlive: true, permission: ['bannersetting'] }, |
| | | meta: { title: '轮播图设置', keepAlive: true, permission: ['bannersetting'] } |
| | | }, |
| | | { |
| | | path: '/allsetting/paysetting', |
| | | name: 'paysetting', |
| | | component: () => import('@/views/allsetting/paysetting'), |
| | | meta: { title: '支付渠道设置', keepAlive: true, permission: ['paysetting'] }, |
| | | }, |
| | | ], |
| | | meta: { title: '支付渠道设置', keepAlive: true, permission: ['paysetting'] } |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | // forms |
| | |
| | | path: '/account/settings/basic', |
| | | name: 'BasicSettings', |
| | | component: () => import('@/views/account/settings/BasicSetting'), |
| | | meta: { title: 'account.settings.menuMap.basic', hidden: true, permission: ['user'] }, |
| | | meta: { title: 'account.settings.menuMap.basic', hidden: true, permission: ['user'] } |
| | | }, |
| | | { |
| | | path: '/account/settings/security', |
| | |
| | | title: 'account.settings.menuMap.security', |
| | | hidden: true, |
| | | keepAlive: true, |
| | | permission: ['user'], |
| | | }, |
| | | permission: ['user'] |
| | | } |
| | | }, |
| | | { |
| | | path: '/account/settings/custom', |
| | | name: 'CustomSettings', |
| | | component: () => import('@/views/account/settings/Custom'), |
| | | meta: { title: 'account.settings.menuMap.custom', hidden: true, keepAlive: true, permission: ['user'] }, |
| | | meta: { title: 'account.settings.menuMap.custom', hidden: true, keepAlive: true, permission: ['user'] } |
| | | }, |
| | | { |
| | | path: '/account/settings/binding', |
| | |
| | | title: 'account.settings.menuMap.binding', |
| | | hidden: true, |
| | | keepAlive: true, |
| | | permission: ['user'], |
| | | }, |
| | | permission: ['user'] |
| | | } |
| | | }, |
| | | { |
| | | path: '/account/settings/notification', |
| | |
| | | title: 'account.settings.menuMap.notification', |
| | | hidden: true, |
| | | keepAlive: true, |
| | | permission: ['user'], |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | ], |
| | | permission: ['user'] |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/loanmanage', |
| | |
| | | path: '/loanmanage/index', |
| | | name: 'Loanmanage', |
| | | component: () => import('@/views/loanmanage/index'), |
| | | meta: { title: '贷款列表', keepAlive: true, permission: ['loanmanage'] }, |
| | | meta: { title: '贷款列表', keepAlive: true, permission: ['loanmanage'] } |
| | | }, |
| | | { |
| | | path: '/loanmanage/institution', |
| | | name: 'institution', |
| | | component: () => import('@/views/loanmanage/institution'), |
| | | meta: { title: '贷款机构', keepAlive: true, permission: ['institution'] }, |
| | | }, |
| | | meta: { title: '贷款机构', keepAlive: true, permission: ['institution'] } |
| | | } |
| | | // { |
| | | // path: '/loanmanage/institution', |
| | | // name: 'Institution', |
| | |
| | | // component: () => import('@/views/loanmanage/index'), |
| | | // meta: { title: '贷款机构', keepAlive: true, permission: ['loanmanage'] } |
| | | // } |
| | | ], |
| | | ] |
| | | }, |
| | | { |
| | | path: '/interesttreasure', |
| | |
| | | path: '/interesttreasure/index', |
| | | name: 'InterestTreasure', |
| | | component: () => import('@/views/interesttreasure/index'), |
| | | meta: { title: '利息宝列表', keepAlive: true, permission: ['interesttreasure'] }, |
| | | meta: { title: '利息宝列表', keepAlive: true, permission: ['interesttreasure'] } |
| | | }, |
| | | { |
| | | path: '/interesttreasure/set', |
| | | name: 'set', |
| | | component: () => import('@/views/interesttreasure/set'), |
| | | meta: { title: '利息宝设置', keepAlive: true, permission: ['set'] }, |
| | | }, |
| | | meta: { title: '利息宝设置', keepAlive: true, permission: ['set'] } |
| | | } |
| | | // { |
| | | // path: '/userlist/agentlist', |
| | | // name: 'Agentlist', |
| | | // component: () => import('@/views/userlist/agentlist'), |
| | | // meta: { title: '代理列表', keepAlive: true, permission: ['agentlist'] } |
| | | // } |
| | | ], |
| | | }, |
| | | ] |
| | | } |
| | | // other |
| | | /* |
| | | { |
| | |
| | | } |
| | | ] |
| | | } */ |
| | | ], |
| | | ] |
| | | }, |
| | | { |
| | | path: '*', |
| | | redirect: '/404', |
| | | hidden: true, |
| | | }, |
| | | hidden: true |
| | | } |
| | | ] |
| | | |
| | | /** |
| | |
| | | { |
| | | path: 'login', |
| | | name: 'login', |
| | | component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login'), |
| | | component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login') |
| | | }, |
| | | { |
| | | path: 'register', |
| | | name: 'register', |
| | | component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register'), |
| | | component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register') |
| | | }, |
| | | { |
| | | path: 'register-result', |
| | | name: 'registerResult', |
| | | component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult'), |
| | | component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult') |
| | | }, |
| | | { |
| | | path: 'recover', |
| | | name: 'recover', |
| | | component: undefined, |
| | | }, |
| | | ], |
| | | component: undefined |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | path: '/404', |
| | | component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404'), |
| | | }, |
| | | component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404') |
| | | } |
| | | ] |
| | |
| | | i18n, |
| | | // init localstorage, vuex, Logo message |
| | | created: bootstrap, |
| | | render: (h) => h(App), |
| | | render: (h) => h(App) |
| | | }).$mount('#app') |
| | |
| | | icon="search" |
| | | style="margin-left: 8px" |
| | | @click=";(queryParam.pageNum = 1), getlist()" |
| | | >查询</a-button |
| | | >查询</a-button |
| | | > |
| | | <a-button |
| | | type="primary" |
| | |
| | | import pick from 'lodash.pick' |
| | | export default { |
| | | name: 'Basecurrency', |
| | | data() { |
| | | data () { |
| | | return { |
| | | columns: [ |
| | | { |
| | | title: '通道类型', |
| | | dataIndex: 'channelType', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '图片', |
| | | dataIndex: 'channelImg', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'channelImg' }, |
| | | scopedSlots: { customRender: 'channelImg' } |
| | | }, |
| | | { |
| | | title: '通道名字', |
| | | dataIndex: 'channelName', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '账号', |
| | | dataIndex: 'channelAccount', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '描述', |
| | | dataIndex: 'channelDesc', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '最小充值金额', |
| | | dataIndex: 'channelMinLimit', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '最大充值金额', |
| | | dataIndex: 'channelMaxLimit', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '是否显示', |
| | | dataIndex: 'isShow', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'isShow' }, |
| | | scopedSlots: { customRender: 'isShow' } |
| | | }, |
| | | { |
| | | title: '操作', |
| | |
| | | align: 'center', |
| | | fixed: 'right', |
| | | width: 200, |
| | | 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, |
| | | queryParam: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | channelType: '', |
| | | channelType: '' |
| | | }, |
| | | datalist: [], |
| | | |
| | |
| | | addUserform: this.$form.createForm(this), |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 }, |
| | | sm: { span: 6 } |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 18 }, |
| | | sm: { span: 18 } |
| | | }, |
| | | fields: [ |
| | | 'channelType', |
| | |
| | | 'assetsType', |
| | | 'channelImg', |
| | | 'code', |
| | | 'formUrl', |
| | | 'formUrl' |
| | | ], |
| | | currentDetails: '', |
| | | channelImg: '', |
| | | imgloading: false, |
| | | imgloading: false |
| | | } |
| | | }, |
| | | created() { |
| | | created () { |
| | | this.getlist() |
| | | }, |
| | | methods: { |
| | | deletebaseCurrency(val) { |
| | | deletebaseCurrency (val) { |
| | | var that = this |
| | | this.$confirm({ |
| | | title: '提示', |
| | | content: '确认删除该支付渠道?此操作不可恢复', |
| | | onOk() { |
| | | onOk () { |
| | | var data = { |
| | | cId: val, |
| | | cId: val |
| | | } |
| | | paydel(data).then((res) => { |
| | | if (res.status == 0) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | onCancel() { |
| | | onCancel () { |
| | | console.log('Cancel') |
| | | }, |
| | | } |
| | | }) |
| | | }, |
| | | customRequest(data) { |
| | | customRequest (data) { |
| | | this.imgloading = true |
| | | var formData = new FormData() |
| | | formData.append('upload_file', data.file) |
| | |
| | | if (res.status == 0) { |
| | | this.channelImg = res.data.url |
| | | this.addUserform.setFieldsValue({ |
| | | channelImg: res.data.url, |
| | | channelImg: res.data.url |
| | | }) |
| | | } else { |
| | | this.$message.error({ content: '上传失败请检查图片类型!' }) |
| | |
| | | this.imgloading = false |
| | | }) |
| | | }, |
| | | geteditbaseCurrency(val) { |
| | | geteditbaseCurrency (val) { |
| | | this.currentDetails = val |
| | | this.channelImg = val.channelImg |
| | | this.addUserdialog = true |
| | | this.fields.forEach((v) => this.addUserform.getFieldDecorator(v)) |
| | | this.addUserform.setFieldsValue(pick(val, this.fields)) |
| | | }, |
| | | CanceladdUserdialog() { |
| | | CanceladdUserdialog () { |
| | | this.addUserdialog = false |
| | | const form = this.$refs.addUserform.form |
| | | form.resetFields() |
| | | this.channelImg = '' |
| | | }, |
| | | OkaddUserdialog() { |
| | | OkaddUserdialog () { |
| | | const form = this.$refs.addUserform.form |
| | | form.validateFields((errors, values) => { |
| | | if (!errors) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | getqueryParam() { |
| | | getqueryParam () { |
| | | this.queryParam = { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | channelType: '', |
| | | channelType: '' |
| | | } |
| | | }, |
| | | getlist() { |
| | | getlist () { |
| | | this.loading = true |
| | | paylist(this.queryParam).then((res) => { |
| | | this.datalist = res.data.list |
| | |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | onPageChange(page, pageSize) { |
| | | onPageChange (page, pageSize) { |
| | | this.queryParam.pageNum = page |
| | | this.getlist() |
| | | }, |
| | | onSizeChange(current, pageSize) { |
| | | onSizeChange (current, pageSize) { |
| | | this.queryParam.pageNum = current |
| | | this.queryParam.pageSize = pageSize |
| | | this.getlist() |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | |
| | | slot="action" |
| | | href="javascript:;" |
| | | @click="$refs.EditAgentinfodialog.getEditorder(record)">修改通道</a> |
| | | <a-divider type="vertical" /> |
| | | <a-divider type="vertical" /> |
| | | <a slot="action" href="javascript:;" @click="getDelagent(record)">删除通道</a> |
| | | |
| | | |
| | | </template> |
| | | </a-table> |
| | | </a-card> |
| | | <!-- <editCapitalAgentdialog ref="editCapitalAgentdialog" :getinit="geteditinit"></editCapitalAgentdialog> --> |
| | | <!-- <editCapitalAgentdialog ref="editCapitalAgentdialog" :getinit="geteditinit"></editCapitalAgentdialog> --> |
| | | <EditAgentinfodialog ref="EditAgentinfodialog" :getinit="geteditinit"></EditAgentinfodialog> |
| | | <addagentdialog ref="addagentdialog" :getinit="getinit"></addagentdialog> |
| | | </page-header-wrapper> |
| | |
| | | // import editCapitalAgentdialog from './agentcomponents/editCapitalAgentdialog' |
| | | import EditAgentinfodialog from './agentcomponents/EditAgentinfodialog' |
| | | import addagentdialog from './agentcomponents/addagentdialog' |
| | | import { nextagent, dlcztd,czlist } from '@/api/home' |
| | | import { nextagent, dlcztd, czlist } from '@/api/home' |
| | | import moment from 'moment' |
| | | export default { |
| | | // name: 'AgentList', |
| | |
| | | title: '显示状态', |
| | | dataIndex: 'isShow', |
| | | align: 'center', |
| | | customRender: (text, record, index) => text?(text == 0 ? '隐藏' : '显示'):'--', |
| | | customRender: (text, record, index) => text ? (text == 0 ? '隐藏' : '显示') : '--' |
| | | }, |
| | | { |
| | | title: '排序', |
| | | dataIndex: 'sort', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '通道备注', |
| | |
| | | id: undefined, |
| | | phone: '', |
| | | channelName: '', |
| | | channelType:'1', |
| | | channelDesc:'', |
| | | channelMethod:'', |
| | | channelType: '1', |
| | | channelDesc: '', |
| | | channelMethod: '', |
| | | pageNum: 1, |
| | | pageSize: 10 |
| | | }, |
| | |
| | | content: '确认删除通道?此操作不可恢复', |
| | | onOk () { |
| | | var data = { |
| | | id: val.id, |
| | | id: val.id |
| | | } |
| | | dlcztd(data).then(res => { |
| | | if (res.status == 0) { |
| | |
| | | var that = this |
| | | this.loading = true |
| | | // dklist(this.agentqueryParam).then(res => { |
| | | var data = {"chnnelType":'1'} |
| | | var data = { 'chnnelType': '1' } |
| | | czlist(data).then(res => { |
| | | this.agentlist = res.data |
| | | // this.pagination.total = res.data.total |
| | |
| | | slot="action" |
| | | href="javascript:;" |
| | | @click="$refs.EditAgentinfodialog.getEditorder(record)">修改通道</a> |
| | | <a-divider type="vertical" /> |
| | | <a-divider type="vertical" /> |
| | | <a slot="action" href="javascript:;" @click="getDelagent(record)">删除通道</a> |
| | | |
| | | |
| | | </template> |
| | | </a-table> |
| | | </a-card> |
| | | <!-- <editCapitalAgentdialog ref="editCapitalAgentdialog" :getinit="geteditinit"></editCapitalAgentdialog> --> |
| | | <!-- <editCapitalAgentdialog ref="editCapitalAgentdialog" :getinit="geteditinit"></editCapitalAgentdialog> --> |
| | | <EditAgentinfodialog ref="EditAgentinfodialog" :getinit="geteditinit"></EditAgentinfodialog> |
| | | <addagentdialog ref="addagentdialog" :getinit="getinit"></addagentdialog> |
| | | </page-header-wrapper> |
| | |
| | | // import editCapitalAgentdialog from './agentcomponents/editCapitalAgentdialog' |
| | | import EditAgentinfodialog from './agentcomponents/EditAgentinfodialog' |
| | | import addagentdialog from './agentcomponents/addagentdialogtj' |
| | | import { nextagent, dlcztd,czlist } from '@/api/home' |
| | | import { nextagent, dlcztd, czlist } from '@/api/home' |
| | | import moment from 'moment' |
| | | export default { |
| | | // name: 'AgentList', |
| | |
| | | var that = this |
| | | this.loading = true |
| | | // dklist(this.agentqueryParam).then(res => { |
| | | var data = {"chnnelType":'2'} |
| | | var data = { 'chnnelType': '2' } |
| | | czlist(data).then(res => { |
| | | this.agentlist = res.data |
| | | // this.pagination.total = res.data.total |
| | |
| | | @ok="OkeditUserdialog" |
| | | @cancel="CanceleditUserdialog"> |
| | | <a-form :form="editUserform" ref="editUserform"> |
| | | <a-form-item label="通道ID" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-form-item label="通道ID" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请输入通道ID" disabled v-decorator="['id', {}]" /> |
| | | </a-form-item> |
| | | <a-form-item label="通道名称" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请输入通道名称" v-decorator="['channelName', {rules: [{ required: true, message: '请输入通道名称', }] }]" /> |
| | | <a-input placeholder="请输入通道名称" v-decorator="['channelName', {rules: [{ required: true, message: '请输入通道名称', }] }]" /> |
| | | </a-form-item> |
| | | <a-form-item label="通道备注" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请输入通道备注" v-decorator="['channelDesc', {rules: [{ required: true, message: '请输入通道备注', }] }]" /> |
| | | <a-input placeholder="请输入通道备注" v-decorator="['channelDesc', {rules: [{ required: true, message: '请输入通道备注', }] }]" /> |
| | | </a-form-item> |
| | | <a-form-item label="通道状态" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-select |
| | |
| | | </a-select> |
| | | </a-form-item> |
| | | <a-form-item label="通道排序" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请输入通道排序" v-decorator="['sort', {rules: [{ required: true, message: '请输入通道备注', }] }]" /> |
| | | <a-input placeholder="请输入通道排序" v-decorator="['sort', {rules: [{ required: true, message: '请输入通道备注', }] }]" /> |
| | | </a-form-item> |
| | | </a-form> |
| | | </a-modal> |
| | |
| | | editUserform: this.$form.createForm(this), |
| | | editUserdialog: false, |
| | | editUserDialogloading: false, |
| | | fields: ['id','channelName','channelDesc','isShow','sort'], |
| | | fields: ['id', 'channelName', 'channelDesc', 'isShow', 'sort'], |
| | | currentDetails: {} |
| | | } |
| | | }, |
| | |
| | | @ok="OkeditUserdialog" |
| | | @cancel="CanceleditUserdialog"> |
| | | <a-form :form="editUserform" ref="editUserform"> |
| | | <a-form-item label="通道ID" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-form-item label="通道ID" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请输入通道ID" disabled v-decorator="['id', {}]" /> |
| | | </a-form-item> |
| | | <a-form-item label="通道名称" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请输入通道名称" v-decorator="['channelName', {rules: [{ required: true, message: '请输入通道名称', }] }]" /> |
| | | <a-input placeholder="请输入通道名称" v-decorator="['channelName', {rules: [{ required: true, message: '请输入通道名称', }] }]" /> |
| | | </a-form-item> |
| | | <a-form-item label="通道备注" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请输入通道备注" v-decorator="['channelDesc', {rules: [{ required: true, message: '请输入通道备注', }] }]" /> |
| | | <a-input placeholder="请输入通道备注" v-decorator="['channelDesc', {rules: [{ required: true, message: '请输入通道备注', }] }]" /> |
| | | </a-form-item> |
| | | </a-form> |
| | | </a-modal> |
| | |
| | | editUserform: this.$form.createForm(this), |
| | | editUserdialog: false, |
| | | editUserDialogloading: false, |
| | | fields: ['id','channelName','channelDesc'], |
| | | fields: ['id', 'channelName', 'channelDesc'], |
| | | currentDetails: {} |
| | | } |
| | | }, |
| | |
| | | </template> |
| | | </a-table> |
| | | </a-card> |
| | | <!-- <a-modal |
| | | <!-- <a-modal |
| | | title="修改订单状态" |
| | | :width="500" |
| | | :visible="editOrderdialog" |
| | |
| | | @ok="OkeditOrderdialog" |
| | | @cancel="CanceleditOrderdialog" |
| | | > --> |
| | | <a-modal |
| | | title="修改提现状态" |
| | | :width="500" |
| | | :visible="editOrderdialog" |
| | | :confirmLoading="editOrderDialogloading" |
| | | @cancel="CanceleditOrderdialog" |
| | | > |
| | | <a-modal |
| | | title="修改提现状态" |
| | | :width="500" |
| | | :visible="editOrderdialog" |
| | | :confirmLoading="editOrderDialogloading" |
| | | @cancel="CanceleditOrderdialog" |
| | | > |
| | | <a-form :form="editOrderform" ref="editOrderform"> |
| | | <a-form-item label="金额"> |
| | | <a-input |
| | |
| | | disabled /> |
| | | </a-form-item> |
| | | <!-- <a-form-item label="提现状态"> --> |
| | | <!-- <a-select |
| | | <!-- <a-select |
| | | placeholder="请选择提现状态" |
| | | v-decorator="['state', { rules: [{ required: true, message: '请选择提现状态', }] }]"> |
| | | <a-select-option value="1">提现成功</a-select-option> |
| | |
| | | <!-- <a-input v-decorator="['authMsg', { rules: [{ required: true, message: '请输入驳回原因!', }] }]" /> --> |
| | | <a-input v-decorator="['authMsg']" /> |
| | | </a-form-item> |
| | | |
| | | |
| | | </a-form> |
| | | <template slot='footer' style="display: flex;justify-content: center;align-items: center;"> |
| | | <a-button type='primary' style="background-color: ;" @click="OkeditOrderdialog(3)">驳回</a-button> |
| | | <a-button type='primary' @click="OkeditOrderdialog(1)">通过</a-button> |
| | | <template slot="footer" style="display: flex;justify-content: center;align-items: center;"> |
| | | <a-button type="primary" style="background-color: ;" @click="OkeditOrderdialog(3)">驳回</a-button> |
| | | <a-button type="primary" @click="OkeditOrderdialog(1)">通过</a-button> |
| | | </template> |
| | | |
| | | </a-modal> |
| | |
| | | }}</span> |
| | | </a> |
| | | </a-col> |
| | | |
| | | |
| | | <a-col :span="12"> |
| | | <a> |
| | | <span>当日注册人数</span> |
| | |
| | | }}</span> |
| | | </a> |
| | | </a-col> |
| | | |
| | | |
| | | <a-col :span="12"> |
| | | <a> |
| | | <span>当日首充人数</span> |
| | |
| | | }}</span> |
| | | </a> |
| | | </a-col> |
| | | |
| | | |
| | | <a-col :span="12"> |
| | | <a> |
| | | <span>当日首充金额</span> |
| | |
| | | }}</span> |
| | | </a> |
| | | </a-col> |
| | | |
| | | |
| | | <a-col :span="12"> |
| | | <a> |
| | | <span>当日充值总人数</span> |
| | |
| | | @ok="OkeditUserdialog" |
| | | @cancel="CanceleditUserdialog"> |
| | | <a-form :form="editUserform" ref="editUserform"> |
| | | <a-form-item label="ID" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-form-item label="ID" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请输入ID" disabled v-decorator="['id', {}]" /> |
| | | </a-form-item> |
| | | <a-form-item label="标题" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | |
| | | editUserform: this.$form.createForm(this), |
| | | editUserdialog: false, |
| | | editUserDialogloading: false, |
| | | fields: ['id','title','returnOfRate','edesc','returnTime'], |
| | | fields: ['id', 'title', 'returnOfRate', 'edesc', 'returnTime'], |
| | | currentDetails: {} |
| | | } |
| | | }, |
| | |
| | | form.validateFields((errors, values) => { |
| | | if (!errors) { |
| | | this.editUserDialogloading = true |
| | | values.isOpen = 1 |
| | | values.isOpen = 1 |
| | | upyeb(values).then(res => { |
| | | if (res.status == 0) { |
| | | this.editUserdialog = false |
| | |
| | | </div> |
| | | </template> |
| | | </span> |
| | | <!-- <span slot="title" slot-scope="text,record"> |
| | | <!-- <span slot="title" slot-scope="text,record"> |
| | | <template> |
| | | <div> |
| | | <span>{{ record.title }}</span> |
| | |
| | | @click="$refs.EditAgentinfodialog.getEditorder(record)">修改机构</a> |
| | | <a-divider type="vertical" /> |
| | | <a slot="action" href="javascript:;" @click="getDelagent(record)">删除机构</a> |
| | | |
| | | |
| | | </template> --> |
| | | </a-table> |
| | | </a-card> |
| | | <!-- <editCapitalAgentdialog ref="editCapitalAgentdialog" :getinit="geteditinit"></editCapitalAgentdialog> --> |
| | | <!-- <editCapitalAgentdialog ref="editCapitalAgentdialog" :getinit="geteditinit"></editCapitalAgentdialog> --> |
| | | <EditAgentinfodialog ref="EditAgentinfodialog" :getinit="geteditinit"></EditAgentinfodialog> |
| | | <addagentdialog ref="addagentdialog" :getinit="getinit"></addagentdialog> |
| | | </page-header-wrapper> |
| | |
| | | // import editCapitalAgentdialog from './agentcomponents/editCapitalAgentdialog' |
| | | import EditAgentinfodialog from './agentcomponents/EditAgentinfodialog' |
| | | import addagentdialog from './agentcomponents/addagentdialog' |
| | | import { nextagent, dldkjg,yeblist } from '@/api/home' |
| | | import { nextagent, dldkjg, yeblist } from '@/api/home' |
| | | import moment from 'moment' |
| | | export default { |
| | | // name: 'AgentList', |
| | |
| | | { |
| | | title: '状态', |
| | | dataIndex: 'state', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '内容', |
| | | dataIndex: 'title', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '周期', |
| | | dataIndex: 'returnTime', |
| | | align: 'center', |
| | | }, |
| | | align: 'center' |
| | | } |
| | | // { |
| | | // title: '操作', |
| | | // key: 'action', |
| | |
| | | slot="action" |
| | | href="javascript:;" |
| | | @click="$refs.EditAgentinfodialog.getEditorder(record)">修改</a> |
| | | <a-divider type="vertical" /> |
| | | <a-divider type="vertical" /> |
| | | <a slot="action" href="javascript:;" @click="getDelagent(record)">删除</a> |
| | | |
| | | |
| | | </template> |
| | | </a-table> |
| | | </a-card> |
| | | <!-- <editCapitalAgentdialog ref="editCapitalAgentdialog" :getinit="geteditinit"></editCapitalAgentdialog> --> |
| | | <!-- <editCapitalAgentdialog ref="editCapitalAgentdialog" :getinit="geteditinit"></editCapitalAgentdialog> --> |
| | | <EditAgentinfodialog ref="EditAgentinfodialog" :getinit="geteditinit"></EditAgentinfodialog> |
| | | <addagentdialog ref="addagentdialog" :getinit="getinit"></addagentdialog> |
| | | </page-header-wrapper> |
| | |
| | | // import editCapitalAgentdialog from './agentcomponents/editCapitalAgentdialog' |
| | | import EditAgentinfodialog from './agentcomponents/EditAgentinfodialog' |
| | | import addagentdialog from './agentcomponents/addagentdialog' |
| | | import { nextagent, deyeb,queryEcho } from '@/api/home' |
| | | import { nextagent, deyeb, queryEcho } from '@/api/home' |
| | | import moment from 'moment' |
| | | export default { |
| | | // name: 'AgentList', |
| | |
| | | { |
| | | title: '描述', |
| | | dataIndex: 'edesc', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '标题', |
| | | dataIndex: 'title', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '周期', |
| | | dataIndex: 'returnTime', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '操作', |
| | |
| | | @ok="OkeditUserdialog" |
| | | @cancel="CanceleditUserdialog"> |
| | | <a-form :form="editUserform" ref="editUserform"> |
| | | <a-form-item label="代理ID" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-form-item label="代理ID" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请输入代理ID" disabled v-decorator="['id', {}]" /> |
| | | </a-form-item> |
| | | <a-form-item label="机构名称" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="请输入机构名称" v-decorator="['name', {rules: [{ required: true, message: '请输入机构名称', }] }]" /> |
| | | <a-input placeholder="请输入机构名称" v-decorator="['name', {rules: [{ required: true, message: '请输入机构名称', }] }]" /> |
| | | </a-form-item> |
| | | </a-form> |
| | | </a-modal> |
| | |
| | | editUserform: this.$form.createForm(this), |
| | | editUserdialog: false, |
| | | editUserDialogloading: false, |
| | | fields: ['id','dkJg'], |
| | | fields: ['id', 'dkJg'], |
| | | currentDetails: {} |
| | | } |
| | | }, |
| | |
| | | @click="$refs.EditAgentinfodialog.getEditorder(record)">修改机构</a> |
| | | <a-divider type="vertical" /> |
| | | <a slot="action" href="javascript:;" @click="getDelagent(record)">删除机构</a> |
| | | |
| | | |
| | | </template> --> |
| | | </a-table> |
| | | </a-card> |
| | | <!-- <editCapitalAgentdialog ref="editCapitalAgentdialog" :getinit="geteditinit"></editCapitalAgentdialog> --> |
| | | <!-- <editCapitalAgentdialog ref="editCapitalAgentdialog" :getinit="geteditinit"></editCapitalAgentdialog> --> |
| | | <!-- <EditAgentinfodialog ref="EditAgentinfodialog" :getinit="geteditinit"></EditAgentinfodialog> --> |
| | | <!-- <addagentdialog ref="addagentdialog" :getinit="getinit"></addagentdialog> --> |
| | | </page-header-wrapper> |
| | |
| | | // import editCapitalAgentdialog from './agentcomponents/editCapitalAgentdialog' |
| | | import EditAgentinfodialog from './agentcomponents/EditAgentinfodialog' |
| | | import addagentdialog from './agentcomponents/addagentdialog' |
| | | import { onedklist } from '@/api/home' |
| | | import { onedklist } from '@/api/home' |
| | | import moment from 'moment' |
| | | export default { |
| | | // name: 'AgentList', |
| | |
| | | title: '机构名称', |
| | | dataIndex: 'dkJgName', |
| | | align: 'center' |
| | | },{ |
| | | }, { |
| | | title: '贷款人Id', |
| | | dataIndex: 'dkUserId', |
| | | align: 'center' |
| | |
| | | customRender: (text, row, index) => { |
| | | return moment(text).format('YYYY-MM-DD HH:mm:ss') |
| | | } |
| | | },{ |
| | | }, { |
| | | title: '贷款金额', |
| | | dataIndex: 'dkMoney', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'dkMoney' } |
| | | }, |
| | | } |
| | | // { |
| | | // title: '贷款状态', |
| | | // dataIndex: 'dkState', |
| | |
| | | // dataIndex: 'agentPhone', |
| | | // align: 'center' |
| | | // }, |
| | | |
| | | |
| | | // { |
| | | // title: '总资金', |
| | | // dataIndex: 'totalMoney', |
| | |
| | | slot="action" |
| | | href="javascript:;" |
| | | @click="$refs.EditAgentinfodialog.getEditorder(record)">修改机构</a> |
| | | <a-divider type="vertical" /> |
| | | <a-divider type="vertical" /> |
| | | <a slot="action" href="javascript:;" @click="getDelagent(record)">删除机构</a> |
| | | |
| | | |
| | | </template> |
| | | </a-table> |
| | | </a-card> |
| | | <!-- <editCapitalAgentdialog ref="editCapitalAgentdialog" :getinit="geteditinit"></editCapitalAgentdialog> --> |
| | | <!-- <editCapitalAgentdialog ref="editCapitalAgentdialog" :getinit="geteditinit"></editCapitalAgentdialog> --> |
| | | <EditAgentinfodialog ref="EditAgentinfodialog" :getinit="geteditinit"></EditAgentinfodialog> |
| | | <addagentdialog ref="addagentdialog" :getinit="getinit"></addagentdialog> |
| | | </page-header-wrapper> |
| | |
| | | // import editCapitalAgentdialog from './agentcomponents/editCapitalAgentdialog' |
| | | import EditAgentinfodialog from './agentcomponents/EditAgentinfodialog' |
| | | import addagentdialog from './agentcomponents/addagentdialog' |
| | | import { nextagent, dldkjg,dklist } from '@/api/home' |
| | | import { nextagent, dldkjg, dklist } from '@/api/home' |
| | | import moment from 'moment' |
| | | export default { |
| | | // name: 'AgentList', |
| | |
| | | <a-tag |
| | | :color="record.stockType == 'sh' ? 'purple' : record.stockType == 'sz' ? 'blue' : 'orange'"> |
| | | <!-- {{ record.stockType == 'sz' ? '深股' : record.stockType == 'sh' ? '沪股' : '京股' }} --> |
| | | {{ record.stockGid}} |
| | | {{ record.stockGid }} |
| | | </a-tag> |
| | | </div> |
| | | </template> |
| | |
| | | </a-date-picker> |
| | | </a-form-item> |
| | | </a-col> |
| | | <!-- <a-col :md="12" :lg="12" :sm="12"> |
| | | <!-- <a-col :md="12" :lg="12" :sm="12"> |
| | | <a-form-item label="预估价格" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input |
| | | placeholder="请输入预估价格" |
| | |
| | | customRender: (text, row, index) => { |
| | | return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : '' |
| | | } |
| | | },{ |
| | | }, { |
| | | title: '上市时间', |
| | | dataIndex: 'listDate', |
| | | align: 'center', |
| | |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | disabledDate:true, |
| | | disabledDate: true, |
| | | // 表头 |
| | | pagination: { |
| | | total: 0, |
| | |
| | | addUserdialog: false, |
| | | addUserDialogloading: false, |
| | | |
| | | fields: ['name', 'code', 'price', 'orderNumber', 'zt', 'subscribeTime', 'subscriptionTime', 'type', 'stockType', 'code','pe','listDate'], |
| | | fields: ['name', 'code', 'price', 'orderNumber', 'zt', 'subscribeTime', 'subscriptionTime', 'type', 'stockType', 'code', 'pe', 'listDate'], |
| | | currentdetail: '', |
| | | subscribeTime: '', |
| | | subscriptionTime: '' |
| | |
| | | geteditStock (val) { |
| | | this.currentdetail = val |
| | | this.addUserdialog = true |
| | | var currentTime = new Date(); |
| | | var currentTime = new Date() |
| | | this.fields.forEach(v => this.addUserform.getFieldDecorator(v)) |
| | | this.addUserform.setFieldsValue(pick(val, this.fields)) |
| | | this.addUserform.setFieldsValue({ subscriptionTime: moment(val.subscriptionTime?val.subscriptionTime:currentTime).format('YYYY-MM-DD HH:mm:ss') }) |
| | | this.addUserform.setFieldsValue({ subscribeTime: moment(val.subscribeTime?val.subscribeTime:currentTime).format('YYYY-MM-DD HH:mm:ss') }) |
| | | this.addUserform.setFieldsValue({ subscriptionTime: moment(val.subscriptionTime ? val.subscriptionTime : currentTime).format('YYYY-MM-DD HH:mm:ss') }) |
| | | this.addUserform.setFieldsValue({ subscribeTime: moment(val.subscribeTime ? val.subscribeTime : currentTime).format('YYYY-MM-DD HH:mm:ss') }) |
| | | // this.subscribeTime = moment(val.subscribeTime).format('YYYY-MM-DD HH:mm:ss') |
| | | // this.subscriptionTime = moment(val.subscriptionTime).format('YYYY-MM-DD HH:mm:ss') |
| | | |
| | | }, |
| | | CanceladdUserdialog () { |
| | | this.addUserdialog = false |
| | |
| | | }, |
| | | OkaddUserdialog () { |
| | | const form = this.$refs.addUserform.form |
| | | |
| | | |
| | | form.validateFields((errors, values) => { |
| | | if (!errors) { |
| | | if (this.currentdetail != '') { |
| 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-select v-model="queryParam.type" placeholder="请选择盘前模式"> |
| | | <a-select-option :value="1">盘前申购</a-select-option> |
| | | <a-select-option :value="2">线下配售</a-select-option> |
| | | </a-select> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | <a-col :md="12" :lg="6" :sm="24"> |
| | | <a-form-item label="显示状态"> |
| | | <a-select v-model="queryParam.zt" placeholder="请选择显示状态"> |
| | | <a-select-option :value="0">显示</a-select-option> |
| | | <a-select-option :value="1">隐藏</a-select-option> |
| | | </a-select> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="12" :lg="6" :sm="24"> |
| | | <a-form-item label="盘前代码"> |
| | | <a-input v-model="queryParam.code" style="width: 100%" placeholder="请输入盘前代码" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="12" :lg="6" :sm="24"> |
| | | <a-form-item label="盘前名称"> |
| | | <a-input v-model="queryParam.name" 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 type="primary" icon="plus" style="margin-left: 8px" |
| | | @click="addUserdialog = true, currentdetail = ''"> |
| | | 添加盘前</a-button> |
| | | |
| | | </span> |
| | | </a-form-item> --> |
| | | <a-button |
| | | type="primary" |
| | | icon="plus" |
| | | style="margin-left: 8px" |
| | | @click="addUserdialog = true, currentdetail = ''"> |
| | | 添加盘前</a-button> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | </a-card> |
| | | |
| | | <a-card :bordered="false"> |
| | | <a-table |
| | | bordered |
| | | :loading="loading" |
| | | :pagination="pagination" |
| | | :columns="columns" |
| | | :data-source="datalist" |
| | | rowKey="newlistId"> |
| | | |
| | | <span slot="type" slot-scope="text,record"> |
| | | <template> |
| | | <div> |
| | | <a-tag> |
| | | {{ record.type == '0' ? '价格' : '百分比' }} |
| | | </a-tag> |
| | | </div> |
| | | </template> |
| | | </span> |
| | | |
| | | <template slot="action" slot-scope="text,record"> |
| | | <a slot="action" href="javascript:;" @click="geteditStock(record)">{{ '修改盘前' }}</a> |
| | | <a-divider type="vertical" /> |
| | | <a slot="action" href="javascript:;" @click="getdeleteStock(record)">{{ '删除盘前' }}</a> |
| | | </template> |
| | | </a-table> |
| | | </a-card> |
| | | |
| | | <a-modal |
| | | :title="currentdetail ? '修改盘前' : '添加盘前'" |
| | | :width="700" |
| | | :visible="addUserdialog" |
| | | :confirmLoading="addUserDialogloading" |
| | | @ok="OkaddUserdialog" |
| | | @cancel="CanceladdUserdialog"> |
| | | <a-form :form="addUserform" ref="addUserform"> |
| | | <a-row :gutter="48"> |
| | | <a-col :md="12" :lg="12" :sm="12"> |
| | | <a-form-item label="股票code" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input |
| | | placeholder="请输入股票code" |
| | | v-decorator="['stockCode', { rules: [{ required: true, message: '请输入股票code', }] }]" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="12" :lg="12" :sm="12"> |
| | | <a-form-item label="股票名称" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input |
| | | placeholder="请输入股票名称" |
| | | v-decorator="['stockName', { rules: [{ required: true, message: '请输入股票名称', }] }]" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="48"> |
| | | <a-col :md="12" :lg="12" :sm="12"> |
| | | <a-form-item label="盘前价格" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input |
| | | placeholder="请输入盘前价格" |
| | | v-decorator="['price', { rules: [{ required: true, message: '请输入盘前价格', }] }]" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="12" :lg="12" :sm="12"> |
| | | <a-form-item label="金额模式" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-select |
| | | placeholder="请选择金额模式" |
| | | v-decorator="['type', { rules: [{ required: true, message: '请选择金额模式', }] }]" |
| | | > |
| | | <a-select-option :value="0">价格</a-select-option> |
| | | <a-select-option :value="1">百分比</a-select-option> |
| | | </a-select> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="48"> |
| | | <a-col :md="12" :lg="12" :sm="12"> |
| | | <a-form-item label="股票开始时间" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input |
| | | placeholder="请输入股票调价开始时间" |
| | | v-decorator="['startTime', { rules: [{ required: true, message: '请输入股票调价开始时间', }] }]" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="12" :lg="12" :sm="12"> |
| | | <a-form-item label="股票结束时间" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input |
| | | placeholder="请输入股票结束时间" |
| | | v-decorator="['endTime', { rules: [{ required: true, message: '请输入股票结束时间', }] }]" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </a-modal> |
| | | </page-header-wrapper> |
| | | </template> |
| | | <script> |
| | | import { |
| | | subscribelist, |
| | | subscribeadd, |
| | | subscribeupdate, |
| | | subscribedel |
| | | } from '@/api/newshares' |
| | | import { |
| | | paylist, |
| | | payupdate, |
| | | payadd, |
| | | paydel, |
| | | adminupload, |
| | | queryAll, |
| | | updatetime, |
| | | SettingqueryAll, |
| | | stockupdata, |
| | | stockadd, |
| | | stockdelete |
| | | } from '@/api/allsetting' |
| | | import moment from 'moment' |
| | | import pick from 'lodash.pick' |
| | | export default { |
| | | name: 'Shares', |
| | | data () { |
| | | return { |
| | | columns: [ |
| | | { |
| | | title: '股票代码', |
| | | dataIndex: 'stockCode', |
| | | align: 'center' |
| | | |
| | | }, |
| | | { |
| | | title: '股票名称', |
| | | dataIndex: 'stockName', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '股票开始时间', |
| | | dataIndex: 'startTime', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '股票结束时间', |
| | | dataIndex: 'endTime', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '类型', |
| | | dataIndex: 'type', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'type' } |
| | | }, |
| | | { |
| | | title: '金额/百分比', |
| | | dataIndex: 'price', |
| | | align: 'center' |
| | | }, |
| | | |
| | | { |
| | | title: '操作', |
| | | key: 'action', |
| | | align: 'center', |
| | | scopedSlots: { |
| | | customRender: 'action' |
| | | } |
| | | } |
| | | ], |
| | | disabledDate: true, |
| | | // 表头 |
| | | pagination: { |
| | | total: 0, |
| | | current: 1, |
| | | pageSize: 10, // 每页中显示10条数据 |
| | | 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, |
| | | queryParam: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | code: '', |
| | | name: '', |
| | | zt: undefined, |
| | | type: undefined |
| | | }, |
| | | datalist: [], |
| | | labelCol: { |
| | | xs: { |
| | | span: 8 |
| | | }, |
| | | sm: { |
| | | span: 8 |
| | | }, |
| | | md: { |
| | | span: 8 |
| | | } |
| | | }, |
| | | wrapperCol: { |
| | | xs: { |
| | | span: 14 |
| | | }, |
| | | sm: { |
| | | span: 14 |
| | | }, |
| | | md: { |
| | | span: 14 |
| | | } |
| | | }, |
| | | addUserform: this.$form.createForm(this), |
| | | addUserdialog: false, |
| | | addUserDialogloading: false, |
| | | |
| | | fields: ['stockCode', 'stockName', 'startTime', 'endTime', 'type', 'price' ], |
| | | currentdetail: '', |
| | | subscribeTime: '', |
| | | subscriptionTime: '' |
| | | |
| | | } |
| | | }, |
| | | created () { |
| | | this.getlist() |
| | | }, |
| | | methods: { |
| | | getdeleteStock (val) { |
| | | var that = this |
| | | this.$confirm({ |
| | | title: '提示', |
| | | content: '确认删除该盘前吗?此操作不可恢复!', |
| | | onOk () { |
| | | var data = { |
| | | id: val.id |
| | | } |
| | | stockdelete(data).then(res => { |
| | | if (res.status == 0) { |
| | | that.$message.success({ |
| | | content: res.msg, |
| | | duration: 2 |
| | | }) |
| | | that.getinit() |
| | | } else { |
| | | that.$message.error({ |
| | | content: res.msg |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | onCancel () { |
| | | console.log('Cancel') |
| | | } |
| | | }) |
| | | }, |
| | | getsubscribeTime (date, dateString) { |
| | | this.subscribeTime = dateString |
| | | }, |
| | | getsubscriptionTime (date, dateString) { |
| | | this.subscriptionTime = dateString |
| | | }, |
| | | geteditStock (val) { |
| | | this.currentdetail = val |
| | | this.addUserdialog = true |
| | | var currentTime = new Date() |
| | | this.fields.forEach(v => this.addUserform.getFieldDecorator(v)) |
| | | this.addUserform.setFieldsValue(pick(val, this.fields)) |
| | | this.addUserform.setFieldsValue({ |
| | | subscriptionTime: moment(val.subscriptionTime ? val.subscriptionTime : currentTime).format( |
| | | 'YYYY-MM-DD HH:mm:ss') |
| | | }) |
| | | this.addUserform.setFieldsValue({ |
| | | subscribeTime: moment(val.subscribeTime ? val.subscribeTime : currentTime).format('YYYY-MM-DD HH:mm:ss') |
| | | }) |
| | | // this.subscribeTime = moment(val.subscribeTime).format('YYYY-MM-DD HH:mm:ss') |
| | | // this.subscriptionTime = moment(val.subscriptionTime).format('YYYY-MM-DD HH:mm:ss') |
| | | }, |
| | | CanceladdUserdialog () { |
| | | this.addUserdialog = false |
| | | const form = this.$refs.addUserform.form |
| | | form.resetFields() |
| | | }, |
| | | OkaddUserdialog () { |
| | | const form = this.$refs.addUserform.form |
| | | |
| | | form.validateFields((errors, values) => { |
| | | if (!errors) { |
| | | if (this.currentdetail != '') { |
| | | this.addUserDialogloading = true |
| | | values.id = this.currentdetail.id |
| | | // values.subscriptionTime = this.subscriptionTime |
| | | // values.subscribeTime = this.subscribeTime |
| | | stockupdata(values).then(res => { |
| | | if (res.status == 0) { |
| | | this.addUserdialog = false |
| | | this.$message.success({ |
| | | content: res.msg, |
| | | duration: 2 |
| | | }) |
| | | form.resetFields() |
| | | this.getlist() |
| | | } else { |
| | | this.$message.error({ |
| | | content: res.msg |
| | | }) |
| | | } |
| | | this.addUserDialogloading = false |
| | | }) |
| | | } else { |
| | | this.addUserDialogloading = true |
| | | stockadd(values).then(res => { |
| | | if (res.status == 0) { |
| | | this.addUserdialog = false |
| | | this.$message.success({ |
| | | content: res.msg, |
| | | duration: 2 |
| | | }) |
| | | form.resetFields() |
| | | this.getinit() |
| | | } else { |
| | | this.$message.error({ |
| | | content: res.msg |
| | | }) |
| | | } |
| | | this.addUserDialogloading = false |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | getqueryParam () { |
| | | this.queryParam = { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | code: '', |
| | | name: '', |
| | | zt: undefined, |
| | | type: undefined |
| | | } |
| | | }, |
| | | getinit () { |
| | | this.getqueryParam() |
| | | this.pagination.current = 1 |
| | | this.getlist() |
| | | }, |
| | | getlist () { |
| | | this.loading = true |
| | | SettingqueryAll(this.queryParam).then(res => { |
| | | this.datalist = res.data |
| | | this.pagination.total = res.data.total |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | onPageChange (page, pageSize) { |
| | | this.queryParam.pageNum = page |
| | | this.pagination.current = page |
| | | this.getlist() |
| | | }, |
| | | onSizeChange (current, pageSize) { |
| | | this.queryParam.pageNum = current |
| | | this.pagination.current = page |
| | | this.queryParam.pageSize = pageSize |
| | | this.getlist() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | </a-select> |
| | | </a-form-item> |
| | | </a-col> --> |
| | | <!-- <a-col :md="12" :lg="6" :sm="24"> |
| | | <!-- <a-col :md="12" :lg="6" :sm="24"> |
| | | <a-form-item label="沪深股"> |
| | | <a-select v-model="queryParam.stockType" placeholder="请选择显示状态"> |
| | | <a-select-option value="sh">沪股</a-select-option> |
| | |
| | | @click="queryParam.pageNum = 1, pagination.current = 1,getlist()">查询 |
| | | </a-button> |
| | | |
| | | <!-- <a-button |
| | | <!-- <a-button |
| | | type="primary" |
| | | icon="plus" |
| | | style="margin-left: 8px" |
| | |
| | | fields: ['buyFee', 'sellFee', 'stayFee', 'dutyFee', 'stayMaxDays', 'buyMinAmt', 'chargeMinAmt', 'buyMinNum', 'forceStopFee', 'buyMaxAmtPercent', 'forceStopPercent', 'hightAndLow', 'withMinAmt', 'creaseMaxPercent', 'kcCreaseMaxPercent', 'buyMaxNum', 'cantSellTimes', 'buySameTimes', 'buySameNums', 'buyNumTimes', 'buyNumLots', 'stockDays', 'stockRate', 'withTimeBegin', 'withTimeEnd', |
| | | 'transAmBegin', 'transAmEnd', 'transPmBegin', 'transPmEnd', |
| | | 'transAmBeginUs', 'transAmEndUs', 'transPmBeginUs', 'transPmEndUs', |
| | | 'transAmBeginhk', 'transAmEndhk', 'transPmBeginhk', 'transPmEndhk','withdraw','exchangeRate', |
| | | 'transAmBeginhk', 'transAmEndhk', 'transPmBeginhk', 'transPmEndhk', 'withdraw', 'exchangeRate', |
| | | 'withFeeSingle', 'withFeePercent', 'siteLever', 'forceStopRemindRatio', 'vipPassword', 'dzSongP', 'dzMinByCount'], |
| | | labelCol: { |
| | | xs: { span: 10 }, |
| New file |
| | |
| | | <template> |
| | | <page-header-wrapper> |
| | | <a-card :bordered="false"> |
| | | <a-table |
| | | bordered |
| | | :loading="loading" |
| | | :pagination="pagination" |
| | | :columns="columns" |
| | | :data-source="datalist" |
| | | rowKey="id"> |
| | | |
| | | <template slot="action" slot-scope="text, record"> |
| | | <a slot="action" href="javascript:;" @click="geteditbaseCurrency(record)">修改通道</a> |
| | | </template> |
| | | </a-table> |
| | | </a-card> |
| | | |
| | | <a-modal |
| | | title="修改股票时间" |
| | | :width="1000" |
| | | :visible="addUserdialog" |
| | | :confirmLoading="addUserDialogloading" |
| | | @ok="OkaddUserdialog" |
| | | @cancel="CanceladdUserdialog"> |
| | | <a-form :form="addUserform" ref="addUserform"> |
| | | <a-row :gutter="48"> |
| | | <a-col :md="19" :lg="12" :sm="19"> |
| | | <a-form-item label="股票类型" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input |
| | | placeholder="请输入股票类型" |
| | | v-decorator="['accetsType', { rules: [{ required: true, message: '请输入通道名称' }] }]" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="19" :lg="12" :sm="19"> |
| | | <a-form-item label="股票类型" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input |
| | | placeholder="请输入股票类型" |
| | | v-decorator="['accetsDesc', { rules: [{ required: true, message: '请输入股票类型' }] }]" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="48"> |
| | | <a-col :md="19" :lg="12" :sm="19"> |
| | | <a-form-item label="上午开始时间" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input |
| | | placeholder="请输入上午开始时间" |
| | | v-decorator="['amStartTime', { rules: [{ required: true, message: '请输入时间如(14:20)' }] }]" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="19" :lg="12" :sm="19"> |
| | | <a-form-item label="上午结束时间" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input |
| | | placeholder="请输入上午结束时间" |
| | | v-decorator="['amEndTime', { rules: [{ required: true, message: '请输入时间如(14:20)' }] }]" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="48"> |
| | | <a-col :md="19" :lg="12" :sm="19"> |
| | | <a-form-item label="下午开始时间" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input |
| | | placeholder="请输入下午开始时间" |
| | | v-decorator="['pmStartTime', { rules: [{ required: true, message: '请输入时间如(14:20)' }] }]" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="19" :lg="12" :sm="19"> |
| | | <a-form-item label="下午结束时间" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input |
| | | placeholder="请输入下午结束时间" |
| | | v-decorator="['pmEndTime', { rules: [{ required: true, message: '请输入时间如(14:20)' }] }]" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-row> |
| | | </a-form> |
| | | </a-modal> |
| | | </page-header-wrapper> |
| | | </template> |
| | | <script> |
| | | import { |
| | | paylist, |
| | | payupdate, |
| | | payadd, |
| | | paydel, |
| | | adminupload, |
| | | queryAll, |
| | | updatetime |
| | | } from '@/api/allsetting' |
| | | import pick from 'lodash.pick' |
| | | export default { |
| | | name: 'Basecurrency', |
| | | data () { |
| | | return { |
| | | columns: [{ |
| | | title: '股票类型', |
| | | dataIndex: 'accetsType', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '股票类型', |
| | | dataIndex: 'accetsDesc', |
| | | align: 'center' |
| | | // scopedSlots: { customRender: 'channelImg' }, |
| | | }, |
| | | { |
| | | title: '上午开始时间', |
| | | dataIndex: 'amStartTime', |
| | | align: 'center' |
| | | |
| | | }, |
| | | { |
| | | title: '上午结束时间', |
| | | dataIndex: 'amEndTime', |
| | | align: 'center' |
| | | |
| | | }, |
| | | { |
| | | title: '下午开始时间', |
| | | dataIndex: 'pmStartTime', |
| | | align: 'center' |
| | | |
| | | }, |
| | | { |
| | | title: '下午结束时间', |
| | | dataIndex: 'pmEndTime', |
| | | align: 'center' |
| | | |
| | | }, |
| | | { |
| | | title: '日期', |
| | | dataIndex: 'weekDay', |
| | | align: 'center' |
| | | }, |
| | | |
| | | { |
| | | title: '操作', |
| | | key: 'action', |
| | | align: 'center', |
| | | fixed: 'right', |
| | | width: 200, |
| | | scopedSlots: { |
| | | customRender: 'action' |
| | | } |
| | | } |
| | | ], |
| | | // 表头 |
| | | pagination: { |
| | | total: 0, |
| | | pageSize: 10, // 每页中显示10条数据 |
| | | 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, |
| | | queryParam: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | channelType: '' |
| | | }, |
| | | datalist: [], |
| | | |
| | | addUserdialog: false, |
| | | addUserDialogloading: false, |
| | | addUserform: this.$form.createForm(this), |
| | | labelCol: { |
| | | xs: { |
| | | span: 24 |
| | | }, |
| | | sm: { |
| | | span: 6 |
| | | } |
| | | }, |
| | | wrapperCol: { |
| | | xs: { |
| | | span: 24 |
| | | }, |
| | | sm: { |
| | | span: 18 |
| | | } |
| | | }, |
| | | fields: [ |
| | | 'accetsType', |
| | | 'accetsDesc', |
| | | 'amStartTime', |
| | | 'amEndTime', |
| | | 'pmStartTime', |
| | | 'pmEndTime', |
| | | 'weekDay' |
| | | ], |
| | | currentDetails: '', |
| | | channelImg: '', |
| | | imgloading: false |
| | | } |
| | | }, |
| | | created () { |
| | | this.getlist() |
| | | }, |
| | | methods: { |
| | | deletebaseCurrency (val) { |
| | | var that = this |
| | | this.$confirm({ |
| | | title: '提示', |
| | | content: '确认删除该支付渠道?此操作不可恢复', |
| | | onOk () { |
| | | var data = { |
| | | cId: val |
| | | } |
| | | paydel(data).then((res) => { |
| | | if (res.status == 0) { |
| | | that.$message.success({ |
| | | content: res.msg, |
| | | duration: 2 |
| | | }) |
| | | that.getlist() |
| | | } else { |
| | | that.$message.error({ |
| | | content: res.msg |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | onCancel () { |
| | | console.log('Cancel') |
| | | } |
| | | }) |
| | | }, |
| | | customRequest (data) { |
| | | this.imgloading = true |
| | | var formData = new FormData() |
| | | formData.append('upload_file', data.file) |
| | | adminupload(formData).then((res) => { |
| | | if (res.status == 0) { |
| | | this.channelImg = res.data.url |
| | | this.addUserform.setFieldsValue({ |
| | | channelImg: res.data.url |
| | | }) |
| | | } else { |
| | | this.$message.error({ |
| | | content: '上传失败请检查图片类型!' |
| | | }) |
| | | } |
| | | this.imgloading = false |
| | | }) |
| | | }, |
| | | geteditbaseCurrency (val) { |
| | | this.currentDetails = val |
| | | this.channelImg = val.channelImg |
| | | this.addUserdialog = true |
| | | this.fields.forEach((v) => this.addUserform.getFieldDecorator(v)) |
| | | this.addUserform.setFieldsValue(pick(val, this.fields)) |
| | | }, |
| | | CanceladdUserdialog () { |
| | | this.addUserdialog = false |
| | | const form = this.$refs.addUserform.form |
| | | form.resetFields() |
| | | this.channelImg = '' |
| | | }, |
| | | OkaddUserdialog () { |
| | | const form = this.$refs.addUserform.form |
| | | form.validateFields((errors, values) => { |
| | | if (!errors) { |
| | | this.addUserDialogloading = true |
| | | values.id = this.currentDetails.id |
| | | values.ctype = 1 |
| | | updatetime(values).then((res) => { |
| | | if (res.status == 0) { |
| | | this.addUserdialog = false |
| | | this.$message.success({ |
| | | content: '修改成功', |
| | | duration: 2 |
| | | }) |
| | | form.resetFields() |
| | | this.getlist() |
| | | } else { |
| | | this.$message.error({ |
| | | content: res.msg |
| | | }) |
| | | } |
| | | this.addUserDialogloading = false |
| | | }) |
| | | |
| | | this.channelImg = '' |
| | | } |
| | | }) |
| | | }, |
| | | getqueryParam () { |
| | | this.queryParam = { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | channelType: '' |
| | | } |
| | | }, |
| | | getlist () { |
| | | this.loading = true |
| | | queryAll(this.queryParam).then((res) => { |
| | | this.datalist = res.data |
| | | this.pagination.total = res.data.total |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | onPageChange (page, pageSize) { |
| | | this.queryParam.pageNum = page |
| | | this.getlist() |
| | | }, |
| | | onSizeChange (current, pageSize) { |
| | | this.queryParam.pageNum = current |
| | | this.queryParam.pageSize = pageSize |
| | | this.getlist() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .greens { |
| | | color: #52c41a; |
| | | } |
| | | |
| | | .reds { |
| | | color: #f5222d; |
| | | } |
| | | </style> |
| | |
| | | editUserform: this.$form.createForm(this), |
| | | editUserdialog: false, |
| | | editUserDialogloading: false, |
| | | fields: ['id', 'agentPhone', 'agentRealName', 'agentPwd','onLineServices', 'siteLever', 'isLock'], |
| | | fields: ['id', 'agentPhone', 'agentRealName', 'agentPwd', 'onLineServices', 'siteLever', 'isLock'], |
| | | currentDetails: {} |
| | | } |
| | | }, |
| | |
| | | type="primary" |
| | | icon="search" |
| | | @click=";(agentqueryParam.pageNum = 1), (pagination.current = 1), getagentlist()" |
| | | >查询 |
| | | >查询 |
| | | </a-button> |
| | | <a-button style="margin-left: 8px" @click="() => (this.agentqueryParam = {})" icon="redo" |
| | | >重置</a-button |
| | | <a-button |
| | | style="margin-left: 8px" |
| | | @click="() => (this.agentqueryParam = {})" |
| | | icon="redo" |
| | | >重置</a-button |
| | | > |
| | | </span> |
| | | </a-form-item> |
| | |
| | | components: { |
| | | editCapitalAgentdialog, |
| | | EditAgentinfodialog, |
| | | addagentdialog, |
| | | addagentdialog |
| | | }, |
| | | data() { |
| | | data () { |
| | | return { |
| | | columns: [ |
| | | { |
| | | 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() { |
| | | created () { |
| | | this.getagentlist() |
| | | }, |
| | | methods: { |
| | | getDelagent(val) { |
| | | getDelagent (val) { |
| | | var that = this |
| | | this.$confirm({ |
| | | title: '提示', |
| | | content: '确认删除代理?此操作不可恢复', |
| | | onOk() { |
| | | onOk () { |
| | | var data = { |
| | | agentId: val.id, |
| | | agentId: val.id |
| | | } |
| | | agentdelAgent(data).then((res) => { |
| | | if (res.status == 0) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | onCancel() { |
| | | onCancel () { |
| | | console.log('Cancel') |
| | | }, |
| | | } |
| | | }) |
| | | }, |
| | | getinit() { |
| | | getinit () { |
| | | this.queryParam = { |
| | | id: undefined, |
| | | phone: '', |
| | | realName: '', |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | pageSize: 10 |
| | | } |
| | | this.pagination.current = 1 |
| | | this.getagentlist() |
| | | }, |
| | | geteditinit() { |
| | | geteditinit () { |
| | | this.getagentlist() |
| | | }, |
| | | getagentlist() { |
| | | getagentlist () { |
| | | var that = this |
| | | this.loading = true |
| | | nextagent(this.agentqueryParam).then((res) => { |
| | |
| | | }, 500) |
| | | }) |
| | | }, |
| | | getclickagentlist() { |
| | | getclickagentlist () { |
| | | var that = this |
| | | this.agentloading = true |
| | | var data = { |
| | | pageNum: 1, |
| | | pageSize: 100, |
| | | pageSize: 100 |
| | | } |
| | | nextagent(data).then((res) => { |
| | | this.clickagentlist = res.data.list |
| | |
| | | }, 500) |
| | | }) |
| | | }, |
| | | onPageChange(page, pageSize) { |
| | | onPageChange (page, pageSize) { |
| | | this.agentqueryParam.pageNum = page |
| | | this.pagination.current = page |
| | | this.getagentlist() |
| | | }, |
| | | onSizeChange(current, pageSize) { |
| | | onSizeChange (current, pageSize) { |
| | | this.agentqueryParam.pageNum = current |
| | | this.pagination.current = page |
| | | this.agentqueryParam.pageSize = pageSize |
| | | this.getagentlist() |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | currentDetails.isActive == 0 || currentDetails.isActive == 1 |
| | | ? 'blue' |
| | | : currentDetails.isActive == 2 |
| | | ? 'green' |
| | | : 'red' |
| | | ? 'green' |
| | | : 'red' |
| | | " |
| | | > |
| | | {{ |
| | | currentDetails.isActive == 0 |
| | | ? '待认证' |
| | | : currentDetails.isActive == 1 |
| | | ? '待审核' |
| | | : currentDetails.isActive == 2 |
| | | ? '认证成功' |
| | | : '驳回' |
| | | ? '待审核' |
| | | : currentDetails.isActive == 2 |
| | | ? '认证成功' |
| | | : '驳回' |
| | | }} |
| | | </a-tag> |
| | | </a-descriptions-item> |
| | |
| | | components: {}, |
| | | props: { |
| | | currentDetails: { |
| | | type: Object, |
| | | type: Object |
| | | }, |
| | | getinit: { |
| | | type: Function, |
| | | default: function () {}, |
| | | }, |
| | | default: function () {} |
| | | } |
| | | }, |
| | | data() { |
| | | data () { |
| | | return { |
| | | userDialog: false, |
| | | bohuidialog: false, |
| | | bohuidialogloading: false, |
| | | bohuiform: this.$form.createForm(this), |
| | | bohuiform: this.$form.createForm(this) |
| | | } |
| | | }, |
| | | methods: { |
| | | Okbohuidialog() { |
| | | Okbohuidialog () { |
| | | const form = this.$refs.bohuiform.form |
| | | form.validateFields((errors, values) => { |
| | | if (!errors) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | Cancelbohuidialog() { |
| | | Cancelbohuidialog () { |
| | | this.bohuidialog = false |
| | | const form = this.$refs.bohuiform.form |
| | | form.resetFields() |
| | | }, |
| | | gettongguo(val) { |
| | | gettongguo (val) { |
| | | var data = { |
| | | userId: this.currentDetails.id, |
| | | state: val, |
| | | state: val |
| | | } |
| | | userauthByAdmin(data).then((res) => { |
| | | if (res.status == 0) { |
| | |
| | | } |
| | | this.userDialog = false |
| | | }) |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | components: {}, |
| | | props: { |
| | | currentDetails: { |
| | | type: Object, |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | userDialog: false, |
| | | type: Object |
| | | } |
| | | }, |
| | | methods: {}, |
| | | data () { |
| | | return { |
| | | userDialog: false |
| | | } |
| | | }, |
| | | methods: {} |
| | | } |
| | | </script> |
| | |
| | | export default { |
| | | components: {}, |
| | | filters: { |
| | | formatDate(value) { |
| | | formatDate (value) { |
| | | switch (value.accectType) { |
| | | case 'US': |
| | | return `美元(${value.symbol} ${value.availableBalance})` |
| | |
| | | default: |
| | | break |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | | props: { |
| | | getinit: { |
| | | type: Function, |
| | | default: function () {}, |
| | | default: function () {} |
| | | }, |
| | | activeArr: { |
| | | type: Array, |
| | | default: [], |
| | | }, |
| | | default: [] |
| | | } |
| | | }, |
| | | data() { |
| | | data () { |
| | | return { |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 7 }, |
| | | sm: { span: 7 } |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 13 }, |
| | | sm: { span: 13 } |
| | | }, |
| | | editUserform: this.$form.createForm(this), |
| | | editUserdialog: false, |
| | | editUserDialogloading: false, |
| | | fields: ['amt', 'direction', 'userId'], |
| | | currentDetails: {}, |
| | | currentDetails: {} |
| | | } |
| | | }, |
| | | methods: { |
| | | getEditorder(val) { |
| | | getEditorder (val) { |
| | | this.currentDetails = val |
| | | this.editUserdialog = true |
| | | this.fields.forEach((v) => this.editUserform.getFieldDecorator(v)) |
| | | this.editUserform.setFieldsValue(pick(val, this.fields)) |
| | | this.editUserform.setFieldsValue(pick({ userId: val.id }, this.fields)) |
| | | }, |
| | | CanceleditUserdialog() { |
| | | CanceleditUserdialog () { |
| | | this.editUserdialog = false |
| | | const form = this.$refs.editUserform.form |
| | | form.resetFields() |
| | | }, |
| | | OkeditUserdialog() { |
| | | OkeditUserdialog () { |
| | | const form = this.$refs.editUserform.form |
| | | form.validateFields((errors, values) => { |
| | | console.log(values, 'from') |
| | | const arr = this.activeArr.filter((item) => item.accectType === values.accectType) |
| | | let amt = values.direction == '1' ? 0 - Number(values.amt) : Number(values.amt) |
| | | const amt = values.direction == '1' ? 0 - Number(values.amt) : Number(values.amt) |
| | | if (!errors) { |
| | | this.editUserDialogloading = true |
| | | updateMoney({ id: arr[0].id, amt: amt }).then((res) => { |
| | |
| | | console.log(3333) |
| | | } |
| | | }) |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | </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> |
| | |
| | | icon="search" |
| | | style="margin-left: 8px" |
| | | @click=";(queryParam.pageNum = 1), (pagination.current = 1), getuserList()" |
| | | >查询</a-button |
| | | >查询</a-button |
| | | > |
| | | <a-button |
| | | type="primary" |
| | | icon="plus" |
| | | style="margin-left: 8px" |
| | | @click="$refs.adduserdialog.addUserdialog = true" |
| | | >添加账户</a-button |
| | | >添加账户</a-button |
| | | > |
| | | </span> |
| | | </a-form-item> |
| | |
| | | currentDetails = record |
| | | $refs.detailuserdialog.userDialog = true |
| | | " |
| | | >用户详情</a |
| | | >用户详情</a |
| | | > |
| | | <a-divider type="vertical" /> |
| | | <a slot="action" href="javascript:;" @click="$refs.EditUserinfodialog.getEditorder(record)">编辑</a> |
| | |
| | | currentDetails = record |
| | | $refs.audituserdialog.userDialog = true |
| | | " |
| | | >实名审核</a |
| | | >实名审核</a |
| | | > |
| | | <a-divider type="vertical" /> |
| | | <a slot="action" href="javascript:;" @click="getDeluser(record)">删除</a> |
| | |
| | | EditUserinfodialog, |
| | | editUserbankdialog, |
| | | editCapitaluserdialog, |
| | | 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: '注册时间', |
| | |
| | | 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' } |
| | | } |
| | | ], // 表头 |
| | | 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: [], |
| | | currentDetails: {}, |
| | | activeArr: [], |
| | | activeArr: [] |
| | | } |
| | | }, |
| | | created() { |
| | | created () { |
| | | this.getuserList() |
| | | |
| | | this.getagentlist() |
| | | }, |
| | | methods: { |
| | | getMoneyzj(record) { |
| | | getMoneyzj (record) { |
| | | console.log(record.id) |
| | | getMoney({ userId: 391 }).then((res) => { |
| | | getMoney({ userId: record.id }).then((res) => { |
| | | if (res.status === 0) { |
| | | const arr = res.data.filter((item) => item.accectType !== 'ALL') |
| | | this.activeArr = arr |
| | |
| | | }) |
| | | }, |
| | | |
| | | getDeluser(val) { |
| | | getDeluser (val) { |
| | | var that = this |
| | | this.$confirm({ |
| | | title: '提示', |
| | | content: '确认删除该用户吗?此操作不可恢复,将删除该用户所有的充值、提现与持仓记录!', |
| | | onOk() { |
| | | onOk () { |
| | | var data = { |
| | | userId: val.id, |
| | | userId: val.id |
| | | } |
| | | userdelete(data).then((res) => { |
| | | if (res.status == 0) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | onCancel() { |
| | | onCancel () { |
| | | console.log('Cancel') |
| | | }, |
| | | } |
| | | }) |
| | | }, |
| | | getinit() { |
| | | getinit () { |
| | | this.queryParam = { |
| | | agentId: undefined, |
| | | realName: '', |
| | | phone: '', |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | accountType: 0, |
| | | accountType: 0 |
| | | } |
| | | this.pagination.current = 1 |
| | | this.getuserList() |
| | | }, |
| | | geteditinit() { |
| | | geteditinit () { |
| | | this.getuserList() |
| | | }, |
| | | getuserList() { |
| | | getuserList () { |
| | | var that = this |
| | | this.loading = true |
| | | usermanag(this.queryParam).then((res) => { |
| | |
| | | }, 500) |
| | | }) |
| | | }, |
| | | getagentlist() { |
| | | getagentlist () { |
| | | nextagent(this.agentqueryParam).then((res) => { |
| | | this.agentlist = res.data.list |
| | | }) |
| | | }, |
| | | onPageChange(page, pageSize) { |
| | | onPageChange (page, pageSize) { |
| | | this.queryParam.pageNum = page |
| | | this.pagination.current = page |
| | | this.getuserList() |
| | | }, |
| | | onSizeChange(current, pageSize) { |
| | | onSizeChange (current, pageSize) { |
| | | this.queryParam.pageNum = current |
| | | this.pagination.current = page |
| | | this.queryParam.pageSize = pageSize |
| | | this.getuserList() |
| | | }, |
| | | handleTableChange() {}, |
| | | }, |
| | | handleTableChange () {} |
| | | } |
| | | } |
| | | </script> |