个人中心

dev
yujialong 3 years ago
parent a482c64b2a
commit dc52c0c514
  1. 11
      src/utils/api.js
  2. 10
      src/views/setting/Person.vue

@ -6,10 +6,8 @@ let host3 = 'http://192.168.31.140:9000'//7
export default { export default {
logins: `${host}/liuwanr/userInfo/adminLogins`, //登录 logins: `${host}/liuwanr/userInfo/adminLogins`, //登录
addUser: `${host}/liuwanr/userInfo/addUser`, //增加用户新版
queryUser: `${host}/liuwanr/userInfo/queryUserInfo`, //查询用户新版 queryUser: `${host}/liuwanr/userInfo/queryUserInfo`, //查询用户新版
deleteUser: `${host}/liuwanr/userInfo/deleteUserInfo`, //删除用户新版 deleteUser: `${host}/liuwanr/userInfo/deleteUserInfo`, //删除用户新版
updateUser: `${host}/liuwanr/user/updateUser`, //编辑用户
queryAccountIsExist: `${host}/liuwanr/userInfo/queryServerAccountIsExist`, //查询账号是否存在 queryAccountIsExist: `${host}/liuwanr/userInfo/queryServerAccountIsExist`, //查询账号是否存在
queryUserOR: `${host}/liuwanr/userInfo/queryUserOR`, //查询系统列表详情 queryUserOR: `${host}/liuwanr/userInfo/queryUserOR`, //查询系统列表详情
queryWorkNumberIsExist:`${host}/liuwanr/userInfo/queryWorkNumberIsExist`,//查询学号、工号是否存在 queryWorkNumberIsExist:`${host}/liuwanr/userInfo/queryWorkNumberIsExist`,//查询学号、工号是否存在
@ -19,12 +17,7 @@ export default {
queryStuPro: `${host}/liuwanr/stuProfessionalArchitecture/queryStuProfessionalArchitecture`, //查询学生专业 queryStuPro: `${host}/liuwanr/stuProfessionalArchitecture/queryStuProfessionalArchitecture`, //查询学生专业
queryStuGrade: `${host}/liuwanr/stuProfessionalArchitecture/queryStuGrade`, //查询学生年级 queryStuGrade: `${host}/liuwanr/stuProfessionalArchitecture/queryStuGrade`, //查询学生年级
queryStuClass: `${host}/liuwanr/stuProfessionalArchitecture/queryStuClass`, //查询学生班级 queryStuClass: `${host}/liuwanr/stuProfessionalArchitecture/queryStuClass`, //查询学生班级
userQueryCustomer: `${host}/liuwanr/userInfo/queryCustomer`, //查询客户列表
updateUserInfo: `${host}/liuwanr/userInfo/updateUserInfo`, //查询更新用户
updateUserProfiles: `${host}/liuwanr/userInfo/updateUserProfiles`, //更新用户个人档案
updateOR: `${host}/liuwanr/userInfo/updateOR`, //更新用户组织架构 updateOR: `${host}/liuwanr/userInfo/updateOR`, //更新用户组织架构
deletePlatform: `${host}/liuwanr/userInfo/deletePlatform`, //更新用户组织架构
updateUserRoleId: `${host}/liuwanr/userInfo/updateUserRoleId`, //更新用户角色id接口
// 客户管理 // 客户管理
delCustomers: `${host3}/nakadai/customer/delCustomers`, delCustomers: `${host3}/nakadai/customer/delCustomers`,
@ -51,8 +44,8 @@ export default {
updatePersonCenter: `${host3}/users/userAccount/updatePersonCenter`, updatePersonCenter: `${host3}/users/userAccount/updatePersonCenter`,
updateUserAvatars: `${host3}/users/userAccount/updateUserAvatars`, updateUserAvatars: `${host3}/users/userAccount/updateUserAvatars`,
userInfo: `${host3}/users/userAccount/userInfo`, userInfo: `${host3}/users/userAccount/userInfo`,
checkCode: `${host3}/users/userAccount/checkCode`, bindPhone: `${host3}/users/userAccount/bindPhone`,
findPasswordByEmail: `${host3}/users/userAccount/findPasswordByEmail`, sendPhoneCode: `${host3}/users/userAccount/sendPhoneCode`,
findPasswordByPhone: `${host3}/users/userAccount/findPasswordByPhone`, findPasswordByPhone: `${host3}/users/userAccount/findPasswordByPhone`,
updateAccountEnable: `${host3}/users/userAccount/updateAccountEnable`, updateAccountEnable: `${host3}/users/userAccount/updateAccountEnable`,
updateAccountAllEnable: `${host3}/users/userAccount/updateAccountAllEnable`, updateAccountAllEnable: `${host3}/users/userAccount/updateAccountAllEnable`,

@ -866,6 +866,7 @@ export default {
userId: form.userId, userId: form.userId,
}], }],
hrUserInfo: { hrUserInfo: {
provinceId: form.provinceId,
cityId: form.cityId, cityId: form.cityId,
countries: form.countries, countries: form.countries,
dateBirth: form.dateBirth, dateBirth: form.dateBirth,
@ -965,17 +966,16 @@ export default {
sendPhoneCode(){ sendPhoneCode(){
if(!this.phone) return this.$message.warning('请输入手机号') if(!this.phone) return this.$message.warning('请输入手机号')
if(!/^1[3456789]\d{9}$/.test(this.phone)) return this.$message.warning('请输入正确的手机号') if(!/^1[3456789]\d{9}$/.test(this.phone)) return this.$message.warning('请输入正确的手机号')
let data = { this.$post(this.api.sendPhoneCode,{
userId: this.userId, userId: this.userId,
phone: this.phone, phone: this.phone,
types: 2 types: 2
} }).then(res => {
this.$post(this.api.sendPhoneCode,data).then(res => { if(res.status == 200){
if(res.errmessage == 'success'){
this.phoneCountdown() this.phoneCountdown()
this.phoneOpener = res.data this.phoneOpener = res.data
} }
}).catch(res => {}); }).catch(res => {})
}, },
phoneSubmit(){ phoneSubmit(){
if(!this.phone) return this.$message.warning('请输入手机号') if(!this.phone) return this.$message.warning('请输入手机号')

Loading…
Cancel
Save