diff --git a/src/api/modules/dashboard.ts b/src/api/modules/dashboard.ts index b0b652e..12ea0f8 100644 --- a/src/api/modules/dashboard.ts +++ b/src/api/modules/dashboard.ts @@ -10,3 +10,8 @@ export async function getWalletCapital(): Promise { return await request.get('/user/getWalletCapital') } +//重置密码 +export const editAccountPass = (params: any) => { + return request.post('/user/editAccountPass', { ...params }) +} + diff --git a/src/components/layout/Header.vue b/src/components/layout/Header.vue index 930991c..8a76bc0 100644 --- a/src/components/layout/Header.vue +++ b/src/components/layout/Header.vue @@ -42,7 +42,7 @@ const userInfo = getStorage('userInfo') const activeUserName = ref(userInfo?.username || '') const activeItem = ref('currentUser') const dropdownItems = [ - { label: '切换账户', command: 'account' }, + // { label: '切换账户', command: 'account' }, { label: '修改密码', command: 'password' }, { label: '退出登录', command: 'logout' } ] diff --git a/src/views/agent/user/index.vue b/src/views/agent/user/index.vue index b725fdc..e1734ed 100644 --- a/src/views/agent/user/index.vue +++ b/src/views/agent/user/index.vue @@ -1,52 +1,95 @@ - diff --git a/src/views/mould/risk/options.ts b/src/views/mould/risk/options.ts index e138309..08eb26f 100644 --- a/src/views/mould/risk/options.ts +++ b/src/views/mould/risk/options.ts @@ -11,9 +11,9 @@ export const tableColumnsSwitch = [ }, ] export const tableColumnsContent = [ - // 内容 - {label: '内容', prop: 'content', align: 'center' as const,slotName: 'contentName'}, - ] + // 内容 + { label: '内容', prop: 'text', align: 'center' as const }, +] export const formItem = [ // 名称 {label: '名称', prop: 'name', type: 'input' as const, placeholder: '请输入名称',labelWidth: '150px'}, diff --git a/src/views/profile/agent/index.vue b/src/views/profile/agent/index.vue index a94116e..fa19bf8 100644 --- a/src/views/profile/agent/index.vue +++ b/src/views/profile/agent/index.vue @@ -238,8 +238,8 @@ const getCustomerList = async () => { userId: item.id, status: item.status === 1 ? '正常' : '禁用', role: item.role.title || '未知', - accountQty: item.son_user[0].son_user_count, - commissionRatio: item.wallet_capital.fee_handling_percent, + accountQty: item.son_user[0]?.son_user_count, + commissionRatio: item?.wallet_capital?.fee_handling_percent, createTime: item.created_at, role_id: item.role_id, })) diff --git a/src/views/profile/kyc/index.vue b/src/views/profile/kyc/index.vue index 7480538..bca4112 100644 --- a/src/views/profile/kyc/index.vue +++ b/src/views/profile/kyc/index.vue @@ -10,9 +10,6 @@
身份信息
-
- 联系信息 -

diff --git a/src/views/profile/kyc/options.ts b/src/views/profile/kyc/options.ts index f80122c..237fb67 100644 --- a/src/views/profile/kyc/options.ts +++ b/src/views/profile/kyc/options.ts @@ -1,14 +1,15 @@ export const identityFormItems = [ - // 国籍 - { prop: 'nationality', label: '国籍', type: 'select' as const ,width: "200px"}, - // 证件类型 - { prop: 'idType', label: '证件类型', type: 'select' as const ,width: "200px"}, - // 上传证件 - { prop: 'idCard', slotName: 'upload', label: '上传证件' ,type: 'upload' as const}, - ] + // 联系电话 + { prop: 'phone', label: '联系电话', type: 'input' as const, width: '200px' }, + // 国籍 + { prop: 'nationality', label: '国籍', type: 'select' as const, width: '200px' }, + // 证件类型 + { prop: 'idType', label: '证件类型', type: 'select' as const, width: '200px' }, + // 上传证件 + { prop: 'idCard', slotName: 'upload', label: '上传证件', type: 'upload' as const }, +] export const contactFormItems = [ - // 联系电话 - { prop: 'phone', label: '联系电话', type: 'input' as const ,width: "200px"}, + ] diff --git a/src/views/profile/user/index.vue b/src/views/profile/user/index.vue index 0b08c4b..435c494 100644 --- a/src/views/profile/user/index.vue +++ b/src/views/profile/user/index.vue @@ -13,7 +13,7 @@