diff --git a/src/api/system/bankInfo.js b/src/api/system/bankInfo.js new file mode 100644 index 0000000..7915f00 --- /dev/null +++ b/src/api/system/bankInfo.js @@ -0,0 +1,34 @@ +import request from '@/plugin/axios' +// 创建银行账户信息 +export function createBankInfo(data) { + return request({ + url: "/system/bank-info/create", + method: "post", + data: data, + }); +} + +// 更新银行账户信息 +export function updateBankInfo(data) { + return request({ + url: "/system/bank-info/update", + method: "put", + data: data, + }); +} + +// 删除银行账户信息 +export function deleteBankAccountInfo(id) { + return request({ + url: "/system/bank-info/delete?id=" + id, + method: "delete", + }); +} + +// 获取银行账户信息详情 +export function getDetail(id) { + return request({ + url: "/system/bank-info/get?id=" + id, + method: "get", + }); +} diff --git a/src/api/system/user.js b/src/api/system/user.js index 5dc5d18..475610e 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -36,14 +36,21 @@ export function addUser(data) { } // 修改用户 -export function updateUser(data) { +// export function updateUser(data) { +// return request({ +// url: '/system/user/update', +// method: 'put', +// data: data +// }) +// } +// 修改用户个人信息 +export function updateUserProfile(data) { return request({ - url: '/system/user/update', + url: '/system/user/profile/update', method: 'put', data: data }) } - // 删除用户 export function delUser(userId) { return request({ @@ -96,14 +103,14 @@ export function getUserProfile() { }) } -// 修改用户个人信息 -export function updateUserProfile(data) { - return request({ - url: '/system/user/profile/update', - method: 'put', - data: data - }) -} +// // 修改用户个人信息 +// export function updateUserProfile(data) { +// return request({ +// url: '/system/user/profile/update', +// method: 'put', +// data: data +// }) +// } // 用户密码重置 export function updateUserPwd(oldPassword, newPassword) { @@ -135,3 +142,4 @@ export function importTemplate() { responseType: 'blob' }) } + diff --git a/src/router/modules/reportForms.js b/src/router/modules/reportForms.js index 9406b01..ac2817a 100644 --- a/src/router/modules/reportForms.js +++ b/src/router/modules/reportForms.js @@ -10,5 +10,6 @@ export default { component: layoutHome, children: (pre => [ { path: '/myReportForms', name: `${pre}myReportForms`, component: () => import('@/views/reportForms/myReportForms'), meta: { cache: true, title: '我的报表' } }, + { path: '/userInfo', name: `${pre}UserInfo`, component: () => import('@/views/reportForms/userInfo'), meta: { cache: true, title: '个人信息' } }, ])('reportForms-') } diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 3084a3e..cafb3e9 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -55,78 +55,76 @@ diff --git a/src/views/login/index.vue b/src/views/login/index.vue index e6effea..467bbd7 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -90,12 +90,12 @@ export default { loginForm: { loginType: '', username: '', // admin - password: '', // admin123 + password: '', // Abc123456. captchaVerification: '', mobile: '', mobileCode: '', rememberMe: false, - tenantName: '', // 芋道源码 + tenantName: '链友融科技' // 芋道源码 }, systemInfo: {}, checked: false, @@ -103,20 +103,19 @@ export default { captchaEnable: false, isRemeber: false, code: '', - state: '', + state: '' } }, components: { // Verify }, computed: { - ...mapGetters(['devSystemList', 'devUserList']), + ...mapGetters(['devSystemList', 'devUserList']) }, created() { // 是否禁止网页登录 isProhibited().then((res) => { if (res.data) { - console.log(res.data, 'isProhibited') if (/wxwork/i.test(navigator.userAgent)) { // 在企业微信中打开 } else { @@ -159,7 +158,7 @@ export default { 'common/user/setAuthorization', res.data.accessToken, { - root: true, + root: true } ) await setAccessToken(res.data.accessToken).then(async () => { @@ -180,7 +179,7 @@ export default { Toast({ duration: 3000, // 持续展示 toast forbidClick: false, - message: '请输入账号密码首次绑定', + message: '请输入账号密码首次绑定' }) this.$nextTick(() => { return @@ -197,7 +196,7 @@ export default { // scope: 'snsapi_privateinfo', // agentid: '1000002', // type: 30, - redirectUri: process.env.VUE_APP_BASE_API + '/#/login', + redirectUri: process.env.VUE_APP_BASE_API + '/#/login' }).then((res) => { // 构造重定向的 URL window.location.href = res.data @@ -212,7 +211,7 @@ export default { this.loginForm = { tenantName, username, - password, + password } } else { window.localStorage.removeItem('loginInfo') @@ -270,7 +269,7 @@ export default { this.developLogin({ vm: this, username: this.loginForm.username, - password: this.loginForm.password, + password: this.loginForm.password }) .then(() => { // 判断是否记住密码 @@ -278,7 +277,7 @@ export default { let obj = { tenantName: this.loginForm.tenantName, username: this.loginForm.username, - password: this.loginForm.password, + password: this.loginForm.password } window.localStorage.setItem('loginInfo', JSON.stringify(obj)) } @@ -308,8 +307,8 @@ export default { }, handleDevUser(val) { this.loginForm.devUserTitle = val.title - }, - }, + } + } } diff --git a/src/views/reportForms/userInfo/bankInfo.vue b/src/views/reportForms/userInfo/bankInfo.vue new file mode 100644 index 0000000..5427181 --- /dev/null +++ b/src/views/reportForms/userInfo/bankInfo.vue @@ -0,0 +1,210 @@ + + + + + diff --git a/src/views/reportForms/userInfo/index.vue b/src/views/reportForms/userInfo/index.vue new file mode 100644 index 0000000..f4151d0 --- /dev/null +++ b/src/views/reportForms/userInfo/index.vue @@ -0,0 +1,196 @@ + + + + +