作者 朱兆平

修改密码适配卡口用户

@@ -176,7 +176,7 @@ @@ -176,7 +176,7 @@
176 ] 176 ]
177 }, 177 },
178 editForm: { 178 editForm: {
179 - userId: '', 179 + id: '',
180 password: '', 180 password: '',
181 }, 181 },
182 } 182 }
@@ -215,7 +215,7 @@ @@ -215,7 +215,7 @@
215 submitEdit(formName){ 215 submitEdit(formName){
216 this.$refs[formName].validate((valid) => { 216 this.$refs[formName].validate((valid) => {
217 if (valid) { 217 if (valid) {
218 - this.editForm.userId=this.sysUserId; 218 + this.editForm.id=this.sysUserId;
219 this.editForm.password=this.resetForm.renewpwd; 219 this.editForm.password=this.resetForm.renewpwd;
220 editPass(this.editForm).then(res=>{ 220 editPass(this.editForm).then(res=>{
221 let response=res.data; 221 let response=res.data;
@@ -285,7 +285,7 @@ @@ -285,7 +285,7 @@
285 if (user) { 285 if (user) {
286 user = JSON.parse(user); 286 user = JSON.parse(user);
287 this.sysUserName = user.username || ''; 287 this.sysUserName = user.username || '';
288 - this.sysUserId=user.userId||''; 288 + this.sysUserId=user.id||'';
289 this.sysUserAvatar = user.userface || '/static/images/faceDefault.jpg'; 289 this.sysUserAvatar = user.userface || '/static/images/faceDefault.jpg';
290 } 290 }
291 //操作路由,判断本地存储的用户栏目列表是否存在,如果存在则加载路由 291 //操作路由,判断本地存储的用户栏目列表是否存在,如果存在则加载路由