From 8477322adb238a81c46ffdc1fbf83628713aa389 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Sun, 07 Apr 2024 11:23:49 +0800
Subject: [PATCH] 提交页面备注
---
src/views/newshares/dazonglist.vue | 2
src/views/userlist/index.vue | 87 +-
src/api/allsetting.js | 50 +
src/views/capital/agentcomponents/EditAgentinfodialogtj.vue | 8
src/views/capital/withdrawallist.vue | 26
src/views/loanmanage/agentcomponents/EditAgentinfodialog.vue | 6
src/views/newshares/newshareslist.vue | 17
src/views/capital/Recharge_channel.vue | 22
src/views/capital/Withdrawal_channel.vue | 10
src/views/product/shares.vue | 4
src/views/userlist/components/audituserdialog.vue | 34
src/config/router.config.js | 148 ++--
src/views/product/markettrading.vue | 417 +++++++++++++++
src/views/interesttreasure/index.vue | 16
src/views/risksetting/sharessetting.vue | 2
src/views/risksetting/timelist.vue | 323 +++++++++++
src/views/userlist/components/detailuserdialog.vue | 14
src/api/home.js | 138 ++--
src/views/userlist/components/editCapitaluserdialog.vue | 30
src/views/userlist/agentcomponents/EditAgentinfodialog.vue | 2
src/views/allsetting/paysetting.vue | 72 +-
src/views/interesttreasure/set.vue | 14
/dev/null | 0
src/main.js | 2
src/views/dashboard/Workplace.vue | 8
src/views/loanmanage/index.vue | 14
src/views/loanmanage/institution.vue | 8
src/views/interesttreasure/agentcomponents/EditAgentinfodialog.vue | 6
src/views/capital/agentcomponents/EditAgentinfodialog.vue | 10
src/views/userlist/agentlist.vue | 73 +-
30 files changed, 1,184 insertions(+), 379 deletions(-)
diff --git a/admin_prudentcapitals.rar b/admin_prudentcapitals.rar
deleted file mode 100644
index f951e96..0000000
--- a/admin_prudentcapitals.rar
+++ /dev/null
Binary files differ
diff --git "a/dabao_admin \0502\051.rar" "b/dabao_admin \0502\051.rar"
deleted file mode 100644
index 30516bd..0000000
--- "a/dabao_admin \0502\051.rar"
+++ /dev/null
Binary files differ
diff --git a/dabao_admin.rar b/dabao_admin.rar
deleted file mode 100644
index f2bf235..0000000
--- a/dabao_admin.rar
+++ /dev/null
Binary files differ
diff --git a/jumptalk.rar b/jumptalk.rar
deleted file mode 100644
index 088a988..0000000
--- a/jumptalk.rar
+++ /dev/null
Binary files differ
diff --git a/ojwuf.rar b/ojwuf.rar
deleted file mode 100644
index 5b79d0b..0000000
--- a/ojwuf.rar
+++ /dev/null
Binary files differ
diff --git a/prudentcapitals.rar b/prudentcapitals.rar
deleted file mode 100644
index b4f8b75..0000000
--- a/prudentcapitals.rar
+++ /dev/null
Binary files differ
diff --git a/rksv.rar b/rksv.rar
deleted file mode 100644
index 00ffce4..0000000
--- a/rksv.rar
+++ /dev/null
Binary files differ
diff --git a/src/api/allsetting.js b/src/api/allsetting.js
index 4854215..7859351 100644
--- a/src/api/allsetting.js
+++ b/src/api/allsetting.js
@@ -15,7 +15,13 @@
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'// 删除盘前
}
/**
@@ -29,6 +35,48 @@
* @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,
diff --git a/src/api/home.js b/src/api/home.js
index 7889444..1153219 100644
--- a/src/api/home.js
+++ b/src/api/home.js
@@ -13,8 +13,8 @@
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', // 删除利息宝列表
@@ -33,7 +33,7 @@
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' // 获取网站风格
}
/**
@@ -48,249 +48,249 @@
* @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)
})
}
diff --git a/src/config/router.config.js b/src/config/router.config.js
index 03745f2..107d14b 100644
--- a/src/config/router.config.js
+++ b/src/config/router.config.js
@@ -4,7 +4,7 @@
const RouteView = {
name: 'RouteView',
- render: (h) => h('router-view'),
+ render: (h) => h('router-view')
}
export const asyncRouterMap = [
@@ -39,9 +39,9 @@
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',
@@ -53,15 +53,15 @@
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',
@@ -124,8 +124,14 @@
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',
@@ -144,7 +150,7 @@
// component: () => import('@/views/product/futures'),
// meta: { title: '期货产品', keepAlive: true, permission: ['futures'] }
// },
- ],
+ ]
},
// 持仓管理
{
@@ -157,15 +163,15 @@
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'] }
+ }
+ ]
},
// 新股管理
{
@@ -178,21 +184,21 @@
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'] },
// },
- ],
+ ]
},
// 资金管理
{
@@ -205,14 +211,14 @@
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',
@@ -237,7 +243,7 @@
// component: () => import('@/views/capital/Withdrawal_channel'),
// meta: { title: '提现通道', keepAlive: true, permission: ['Withdrawal_channel'] },
// },
- ],
+ ]
},
// 日志管理
{
@@ -250,8 +256,8 @@
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',
@@ -270,7 +276,7 @@
// component: () => import('@/views/logmanage/stationmessage'),
// meta: { title: '站内消息', keepAlive: true, permission: ['stationmessage'] },
// },
- ],
+ ]
},
// 管理设置
@@ -284,9 +290,9 @@
path: '/managesettings/managelist',
name: 'managelist',
component: () => import('@/views/managesettings/managelist'),
- meta: { title: '管理列表', keepAlive: true, permission: ['managelist'] },
- },
- ],
+ meta: { title: '管理列表', keepAlive: true, permission: ['managelist'] }
+ }
+ ]
},
// 风控设置
{
@@ -299,14 +305,20 @@
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',
@@ -320,7 +332,7 @@
// component: () => import('@/views/risksetting/spreadsetting'),
// meta: { title: '点差设置', keepAlive: true, permission: ['spreadsetting'] },
// },
- ],
+ ]
},
// 系统设置
{
@@ -333,21 +345,21 @@
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
@@ -535,7 +547,7 @@
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',
@@ -545,14 +557,14 @@
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',
@@ -562,8 +574,8 @@
title: 'account.settings.menuMap.binding',
hidden: true,
keepAlive: true,
- permission: ['user'],
- },
+ permission: ['user']
+ }
},
{
path: '/account/settings/notification',
@@ -573,12 +585,12 @@
title: 'account.settings.menuMap.notification',
hidden: true,
keepAlive: true,
- permission: ['user'],
- },
- },
- ],
- },
- ],
+ permission: ['user']
+ }
+ }
+ ]
+ }
+ ]
},
{
path: '/loanmanage',
@@ -590,14 +602,14 @@
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',
@@ -610,7 +622,7 @@
// component: () => import('@/views/loanmanage/index'),
// meta: { title: '贷款机构', keepAlive: true, permission: ['loanmanage'] }
// }
- ],
+ ]
},
{
path: '/interesttreasure',
@@ -622,22 +634,22 @@
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
/*
{
@@ -699,13 +711,13 @@
}
]
} */
- ],
+ ]
},
{
path: '*',
redirect: '/404',
- hidden: true,
- },
+ hidden: true
+ }
]
/**
@@ -722,28 +734,28 @@
{
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')
+ }
]
diff --git a/src/main.js b/src/main.js
index b402f68..a6dd56f 100644
--- a/src/main.js
+++ b/src/main.js
@@ -38,5 +38,5 @@
i18n,
// init localstorage, vuex, Logo message
created: bootstrap,
- render: (h) => h(App),
+ render: (h) => h(App)
}).$mount('#app')
diff --git a/src/views/allsetting/paysetting.vue b/src/views/allsetting/paysetting.vue
index fa5a7e9..88bc4ee 100644
--- a/src/views/allsetting/paysetting.vue
+++ b/src/views/allsetting/paysetting.vue
@@ -18,7 +18,7 @@
icon="search"
style="margin-left: 8px"
@click=";(queryParam.pageNum = 1), getlist()"
- >查询</a-button
+ >查询</a-button
>
<a-button
type="primary"
@@ -234,50 +234,50 @@
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: '操作',
@@ -285,8 +285,8 @@
align: 'center',
fixed: 'right',
width: 200,
- scopedSlots: { customRender: 'action' },
- },
+ scopedSlots: { customRender: 'action' }
+ }
],
// 表头
pagination: {
@@ -296,13 +296,13 @@
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: [],
@@ -311,11 +311,11 @@
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',
@@ -330,25 +330,25 @@
'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) {
@@ -359,12 +359,12 @@
}
})
},
- onCancel() {
+ onCancel () {
console.log('Cancel')
- },
+ }
})
},
- customRequest(data) {
+ customRequest (data) {
this.imgloading = true
var formData = new FormData()
formData.append('upload_file', data.file)
@@ -372,7 +372,7 @@
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: '上传失败请检查图片类型!' })
@@ -380,20 +380,20 @@
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) {
@@ -431,14 +431,14 @@
}
})
},
- 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
@@ -446,16 +446,16 @@
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>
diff --git a/src/views/capital/Recharge_channel.vue b/src/views/capital/Recharge_channel.vue
index fbbe6e3..714a604 100644
--- a/src/views/capital/Recharge_channel.vue
+++ b/src/views/capital/Recharge_channel.vue
@@ -38,13 +38,13 @@
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>
@@ -54,7 +54,7 @@
// 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',
@@ -96,12 +96,12 @@
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: '通道备注',
@@ -153,9 +153,9 @@
id: undefined,
phone: '',
channelName: '',
- channelType:'1',
- channelDesc:'',
- channelMethod:'',
+ channelType: '1',
+ channelDesc: '',
+ channelMethod: '',
pageNum: 1,
pageSize: 10
},
@@ -175,7 +175,7 @@
content: '确认删除通道?此操作不可恢复',
onOk () {
var data = {
- id: val.id,
+ id: val.id
}
dlcztd(data).then(res => {
if (res.status == 0) {
@@ -209,7 +209,7 @@
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
diff --git a/src/views/capital/Withdrawal_channel.vue b/src/views/capital/Withdrawal_channel.vue
index 13a14c9..a3912e2 100644
--- a/src/views/capital/Withdrawal_channel.vue
+++ b/src/views/capital/Withdrawal_channel.vue
@@ -38,13 +38,13 @@
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>
@@ -54,7 +54,7 @@
// 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',
@@ -195,7 +195,7 @@
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
diff --git a/src/views/capital/agentcomponents/EditAgentinfodialog.vue b/src/views/capital/agentcomponents/EditAgentinfodialog.vue
index 080bb70..0adf2de 100644
--- a/src/views/capital/agentcomponents/EditAgentinfodialog.vue
+++ b/src/views/capital/agentcomponents/EditAgentinfodialog.vue
@@ -8,14 +8,14 @@
@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
@@ -26,7 +26,7 @@
</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>
@@ -60,7 +60,7 @@
editUserform: this.$form.createForm(this),
editUserdialog: false,
editUserDialogloading: false,
- fields: ['id','channelName','channelDesc','isShow','sort'],
+ fields: ['id', 'channelName', 'channelDesc', 'isShow', 'sort'],
currentDetails: {}
}
},
diff --git a/src/views/capital/agentcomponents/EditAgentinfodialogtj.vue b/src/views/capital/agentcomponents/EditAgentinfodialogtj.vue
index 0319353..4813df7 100644
--- a/src/views/capital/agentcomponents/EditAgentinfodialogtj.vue
+++ b/src/views/capital/agentcomponents/EditAgentinfodialogtj.vue
@@ -8,14 +8,14 @@
@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>
@@ -49,7 +49,7 @@
editUserform: this.$form.createForm(this),
editUserdialog: false,
editUserDialogloading: false,
- fields: ['id','channelName','channelDesc'],
+ fields: ['id', 'channelName', 'channelDesc'],
currentDetails: {}
}
},
diff --git a/src/views/capital/withdrawallist.vue b/src/views/capital/withdrawallist.vue
index 6796879..4efab13 100644
--- a/src/views/capital/withdrawallist.vue
+++ b/src/views/capital/withdrawallist.vue
@@ -105,7 +105,7 @@
</template>
</a-table>
</a-card>
- <!-- <a-modal
+ <!-- <a-modal
title="修改订单状态"
:width="500"
:visible="editOrderdialog"
@@ -113,13 +113,13 @@
@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
@@ -127,7 +127,7 @@
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>
@@ -138,11 +138,11 @@
<!-- <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>
diff --git a/src/views/dashboard/Workplace.vue b/src/views/dashboard/Workplace.vue
index a639787..5b2d9ab 100644
--- a/src/views/dashboard/Workplace.vue
+++ b/src/views/dashboard/Workplace.vue
@@ -176,7 +176,7 @@
}}</span>
</a>
</a-col>
-
+
<a-col :span="12">
<a>
<span>当日注册人数</span>
@@ -185,7 +185,7 @@
}}</span>
</a>
</a-col>
-
+
<a-col :span="12">
<a>
<span>当日首充人数</span>
@@ -194,7 +194,7 @@
}}</span>
</a>
</a-col>
-
+
<a-col :span="12">
<a>
<span>当日首充金额</span>
@@ -203,7 +203,7 @@
}}</span>
</a>
</a-col>
-
+
<a-col :span="12">
<a>
<span>当日充值总人数</span>
diff --git a/src/views/interesttreasure/agentcomponents/EditAgentinfodialog.vue b/src/views/interesttreasure/agentcomponents/EditAgentinfodialog.vue
index 95d69aa..03a7e7a 100644
--- a/src/views/interesttreasure/agentcomponents/EditAgentinfodialog.vue
+++ b/src/views/interesttreasure/agentcomponents/EditAgentinfodialog.vue
@@ -8,7 +8,7 @@
@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">
@@ -55,7 +55,7 @@
editUserform: this.$form.createForm(this),
editUserdialog: false,
editUserDialogloading: false,
- fields: ['id','title','returnOfRate','edesc','returnTime'],
+ fields: ['id', 'title', 'returnOfRate', 'edesc', 'returnTime'],
currentDetails: {}
}
},
@@ -79,7 +79,7 @@
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
diff --git a/src/views/interesttreasure/index.vue b/src/views/interesttreasure/index.vue
index ecf3217..7159f51 100644
--- a/src/views/interesttreasure/index.vue
+++ b/src/views/interesttreasure/index.vue
@@ -59,7 +59,7 @@
</div>
</template>
</span>
- <!-- <span slot="title" slot-scope="text,record">
+ <!-- <span slot="title" slot-scope="text,record">
<template>
<div>
<span>{{ record.title }}</span>
@@ -81,11 +81,11 @@
@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>
@@ -95,7 +95,7 @@
// 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',
@@ -141,18 +141,18 @@
{
title: '状态',
dataIndex: 'state',
- align: 'center',
+ align: 'center'
},
{
title: '内容',
dataIndex: 'title',
- align: 'center',
+ align: 'center'
},
{
title: '周期',
dataIndex: 'returnTime',
- align: 'center',
- },
+ align: 'center'
+ }
// {
// title: '操作',
// key: 'action',
diff --git a/src/views/interesttreasure/set.vue b/src/views/interesttreasure/set.vue
index 75d503d..a440e86 100644
--- a/src/views/interesttreasure/set.vue
+++ b/src/views/interesttreasure/set.vue
@@ -38,13 +38,13 @@
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>
@@ -54,7 +54,7 @@
// 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',
@@ -100,17 +100,17 @@
{
title: '描述',
dataIndex: 'edesc',
- align: 'center',
+ align: 'center'
},
{
title: '标题',
dataIndex: 'title',
- align: 'center',
+ align: 'center'
},
{
title: '周期',
dataIndex: 'returnTime',
- align: 'center',
+ align: 'center'
},
{
title: '操作',
diff --git a/src/views/loanmanage/agentcomponents/EditAgentinfodialog.vue b/src/views/loanmanage/agentcomponents/EditAgentinfodialog.vue
index c9076a0..a171347 100644
--- a/src/views/loanmanage/agentcomponents/EditAgentinfodialog.vue
+++ b/src/views/loanmanage/agentcomponents/EditAgentinfodialog.vue
@@ -8,11 +8,11 @@
@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>
@@ -46,7 +46,7 @@
editUserform: this.$form.createForm(this),
editUserdialog: false,
editUserDialogloading: false,
- fields: ['id','dkJg'],
+ fields: ['id', 'dkJg'],
currentDetails: {}
}
},
diff --git a/src/views/loanmanage/index.vue b/src/views/loanmanage/index.vue
index 98c5c46..b528dec 100644
--- a/src/views/loanmanage/index.vue
+++ b/src/views/loanmanage/index.vue
@@ -72,11 +72,11 @@
@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>
@@ -86,7 +86,7 @@
// 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',
@@ -107,7 +107,7 @@
title: '机构名称',
dataIndex: 'dkJgName',
align: 'center'
- },{
+ }, {
title: '贷款人Id',
dataIndex: 'dkUserId',
align: 'center'
@@ -129,12 +129,12 @@
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',
@@ -146,7 +146,7 @@
// dataIndex: 'agentPhone',
// align: 'center'
// },
-
+
// {
// title: '总资金',
// dataIndex: 'totalMoney',
diff --git a/src/views/loanmanage/institution.vue b/src/views/loanmanage/institution.vue
index 757d226..2724903 100644
--- a/src/views/loanmanage/institution.vue
+++ b/src/views/loanmanage/institution.vue
@@ -38,13 +38,13 @@
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>
@@ -54,7 +54,7 @@
// 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',
diff --git a/src/views/newshares/dazonglist.vue b/src/views/newshares/dazonglist.vue
index a6ae0ef..b014ea0 100644
--- a/src/views/newshares/dazonglist.vue
+++ b/src/views/newshares/dazonglist.vue
@@ -55,7 +55,7 @@
<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>
diff --git a/src/views/newshares/newshareslist.vue b/src/views/newshares/newshareslist.vue
index b47e6f7..c4acec4 100644
--- a/src/views/newshares/newshareslist.vue
+++ b/src/views/newshares/newshareslist.vue
@@ -214,7 +214,7 @@
</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="请输入预估价格"
@@ -290,7 +290,7 @@
customRender: (text, row, index) => {
return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : ''
}
- },{
+ }, {
title: '上市时间',
dataIndex: 'listDate',
align: 'center',
@@ -305,7 +305,7 @@
scopedSlots: { customRender: 'action' }
}
],
- disabledDate:true,
+ disabledDate: true,
// 表头
pagination: {
total: 0,
@@ -341,7 +341,7 @@
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: ''
@@ -384,14 +384,13 @@
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
@@ -400,7 +399,7 @@
},
OkaddUserdialog () {
const form = this.$refs.addUserform.form
-
+
form.validateFields((errors, values) => {
if (!errors) {
if (this.currentdetail != '') {
diff --git a/src/views/product/markettrading.vue b/src/views/product/markettrading.vue
new file mode 100644
index 0000000..c596ce8
--- /dev/null
+++ b/src/views/product/markettrading.vue
@@ -0,0 +1,417 @@
+<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>
diff --git a/src/views/product/shares.vue b/src/views/product/shares.vue
index a5d0f38..e303d97 100644
--- a/src/views/product/shares.vue
+++ b/src/views/product/shares.vue
@@ -12,7 +12,7 @@
</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>
@@ -64,7 +64,7 @@
@click="queryParam.pageNum = 1, pagination.current = 1,getlist()">查询
</a-button>
- <!-- <a-button
+ <!-- <a-button
type="primary"
icon="plus"
style="margin-left: 8px"
diff --git a/src/views/risksetting/sharessetting.vue b/src/views/risksetting/sharessetting.vue
index 6ee4a2c..c3347ae 100644
--- a/src/views/risksetting/sharessetting.vue
+++ b/src/views/risksetting/sharessetting.vue
@@ -407,7 +407,7 @@
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 },
diff --git a/src/views/risksetting/timelist.vue b/src/views/risksetting/timelist.vue
new file mode 100644
index 0000000..3eddcc6
--- /dev/null
+++ b/src/views/risksetting/timelist.vue
@@ -0,0 +1,323 @@
+<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>
diff --git a/src/views/userlist/agentcomponents/EditAgentinfodialog.vue b/src/views/userlist/agentcomponents/EditAgentinfodialog.vue
index b6476a3..24bf876 100644
--- a/src/views/userlist/agentcomponents/EditAgentinfodialog.vue
+++ b/src/views/userlist/agentcomponents/EditAgentinfodialog.vue
@@ -68,7 +68,7 @@
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: {}
}
},
diff --git a/src/views/userlist/agentlist.vue b/src/views/userlist/agentlist.vue
index eb9613c..c06d5c2 100644
--- a/src/views/userlist/agentlist.vue
+++ b/src/views/userlist/agentlist.vue
@@ -36,10 +36,13 @@
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>
@@ -104,42 +107,42 @@
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: '总资金',
@@ -147,13 +150,13 @@
align: 'center',
customRender: (text, row, index) => {
return text
- },
+ }
},
{
title: '代理状态',
dataIndex: 'isLock',
align: 'center',
- scopedSlots: { customRender: 'isLock' },
+ scopedSlots: { customRender: 'isLock' }
},
{
title: '注册时间',
@@ -161,14 +164,14 @@
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: {
@@ -179,7 +182,7 @@
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: {
@@ -187,25 +190,25 @@
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) {
@@ -216,26 +219,26 @@
}
})
},
- 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) => {
@@ -246,12 +249,12 @@
}, 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
@@ -260,17 +263,17 @@
}, 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>
diff --git a/src/views/userlist/components/audituserdialog.vue b/src/views/userlist/components/audituserdialog.vue
index 4210fa5..e20506f 100644
--- a/src/views/userlist/components/audituserdialog.vue
+++ b/src/views/userlist/components/audituserdialog.vue
@@ -15,18 +15,18 @@
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>
@@ -96,23 +96,23 @@
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) {
@@ -133,15 +133,15 @@
}
})
},
- 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) {
@@ -152,7 +152,7 @@
}
this.userDialog = false
})
- },
- },
+ }
+ }
}
</script>
diff --git a/src/views/userlist/components/detailuserdialog.vue b/src/views/userlist/components/detailuserdialog.vue
index a572bbc..53713d7 100644
--- a/src/views/userlist/components/detailuserdialog.vue
+++ b/src/views/userlist/components/detailuserdialog.vue
@@ -85,14 +85,14 @@
components: {},
props: {
currentDetails: {
- type: Object,
- },
- },
- data() {
- return {
- userDialog: false,
+ type: Object
}
},
- methods: {},
+ data () {
+ return {
+ userDialog: false
+ }
+ },
+ methods: {}
}
</script>
diff --git a/src/views/userlist/components/editCapitaluserdialog.vue b/src/views/userlist/components/editCapitaluserdialog.vue
index 79be9db..5efa897 100644
--- a/src/views/userlist/components/editCapitaluserdialog.vue
+++ b/src/views/userlist/components/editCapitaluserdialog.vue
@@ -47,7 +47,7 @@
export default {
components: {},
filters: {
- formatDate(value) {
+ formatDate (value) {
switch (value.accectType) {
case 'US':
return `美元(${value.symbol} ${value.availableBalance})`
@@ -57,54 +57,54 @@
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) => {
@@ -122,7 +122,7 @@
console.log(3333)
}
})
- },
- },
+ }
+ }
}
</script>
diff --git a/src/views/userlist/index.vue b/src/views/userlist/index.vue
index 7d5a519..358408c 100644
--- a/src/views/userlist/index.vue
+++ b/src/views/userlist/index.vue
@@ -16,8 +16,11 @@
<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>
@@ -45,14 +48,14 @@
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>
@@ -104,7 +107,7 @@
currentDetails = record
$refs.detailuserdialog.userDialog = true
"
- >用户详情</a
+ >用户详情</a
>
<a-divider type="vertical" />
<a slot="action" href="javascript:;" @click="$refs.EditUserinfodialog.getEditorder(record)">编辑</a>
@@ -120,7 +123,7 @@
currentDetails = record
$refs.audituserdialog.userDialog = true
"
- >实名审核</a
+ >实名审核</a
>
<a-divider type="vertical" />
<a slot="action" href="javascript:;" @click="getDeluser(record)">删除</a>
@@ -156,9 +159,9 @@
EditUserinfodialog,
editUserbankdialog,
editCapitaluserdialog,
- audituserdialog,
+ audituserdialog
},
- data() {
+ data () {
return {
queryParam: {
agentId: undefined,
@@ -166,36 +169,36 @@
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: '总资金',
@@ -203,7 +206,7 @@
align: 'center',
customRender: (text, row, index) => {
return text.toFixed(2)
- },
+ }
},
{
title: '认证信息',
@@ -211,19 +214,19 @@
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: '注册时间',
@@ -231,14 +234,14 @@
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: {
@@ -249,27 +252,27 @@
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
@@ -278,14 +281,14 @@
})
},
- 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) {
@@ -296,27 +299,27 @@
}
})
},
- 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) => {
@@ -327,23 +330,23 @@
}, 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>
--
Gitblit v1.9.3