个人中心

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

@ -866,6 +866,7 @@ export default {
userId: form.userId,
}],
hrUserInfo: {
provinceId: form.provinceId,
cityId: form.cityId,
countries: form.countries,
dateBirth: form.dateBirth,
@ -965,17 +966,16 @@ export default {
sendPhoneCode(){
if(!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,
phone: this.phone,
types: 2
}
this.$post(this.api.sendPhoneCode,data).then(res => {
if(res.errmessage == 'success'){
}).then(res => {
if(res.status == 200){
this.phoneCountdown()
this.phoneOpener = res.data
}
}).catch(res => {});
}).catch(res => {})
},
phoneSubmit(){
if(!this.phone) return this.$message.warning('请输入手机号')

Loading…
Cancel
Save