mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +08:00
Merge remote-tracking branch 'origin/third'
This commit is contained in:
@@ -48,6 +48,14 @@ const getOrgHrbpInfo = function(orgId) {
|
|||||||
return ajax.postJson(baseURL,'/org/orgHrbpInfo',{orgId});
|
return ajax.postJson(baseURL,'/org/orgHrbpInfo',{orgId});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改密码,不再使用,已转化为userbasic接口
|
||||||
|
* {newPassword:'',oldPassword:''}
|
||||||
|
*/
|
||||||
|
const modifyPassword = function(data) {
|
||||||
|
return ajax.postJson(baseURL,'/user/resetPassword',data);
|
||||||
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
userParentOrg,
|
userParentOrg,
|
||||||
findOrgsByKeyword,
|
findOrgsByKeyword,
|
||||||
@@ -55,5 +63,6 @@ export default {
|
|||||||
findOrgTreeByOrgId,
|
findOrgTreeByOrgId,
|
||||||
getUserInfoById,
|
getUserInfoById,
|
||||||
getUserCrowds,
|
getUserCrowds,
|
||||||
getOrgHrbpInfo
|
getOrgHrbpInfo,
|
||||||
|
modifyPassword
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -242,6 +242,7 @@
|
|||||||
import userApi from "@/api/system/user";
|
import userApi from "@/api/system/user";
|
||||||
import accountApi from "@/api/account";
|
import accountApi from "@/api/account";
|
||||||
import apiPassword from '@/api/boe/login.js'
|
import apiPassword from '@/api/boe/login.js'
|
||||||
|
import apiUserBasic from '@/api/boe/userbasic.js'
|
||||||
import imageUpload from '@/components/ImageUpload/index.vue';
|
import imageUpload from '@/components/ImageUpload/index.vue';
|
||||||
import apiUserhobby from "@/api/phase2/userhobby.js"
|
import apiUserhobby from "@/api/phase2/userhobby.js"
|
||||||
import apiBoeTeahcer from "@/api/boe/teacher.js"
|
import apiBoeTeahcer from "@/api/boe/teacher.js"
|
||||||
@@ -665,7 +666,15 @@
|
|||||||
updatePassword(){
|
updatePassword(){
|
||||||
this.$refs.form.validate((valid) => {
|
this.$refs.form.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
apiPassword.modifyPassword({oldPassword:this.passwordForm.oldPass,newPassword:this.passwordForm.newPass,confirmPassword:this.passwordForm.confirmPass}).then(res=>{
|
// apiPassword.modifyPassword({oldPassword:this.passwordForm.oldPass,newPassword:this.passwordForm.newPass,confirmPassword:this.passwordForm.confirmPass}).then(res=>{
|
||||||
|
// if(res.status==200){
|
||||||
|
// this.$message.success('修改密码成功')
|
||||||
|
// this.dialogVisiblePassword = false;
|
||||||
|
// }else{
|
||||||
|
// this.$message.error(res.message);
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
apiUserBasic.modifyPassword({oldPassword:this.passwordForm.oldPass,newPassword:this.passwordForm.newPass,confirmPassword:this.passwordForm.confirmPass}).then(res=>{
|
||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
this.$message.success('修改密码成功')
|
this.$message.success('修改密码成功')
|
||||||
this.dialogVisiblePassword = false;
|
this.dialogVisiblePassword = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user