|
@@ -46,7 +46,7 @@ export default {
|
|
|
...market(['fetch', 'update']),
|
|
|
...expertsuser({ expertsuserFetch: 'fetch', expertsuserUpdate: 'update', expertsuserUpgrade: 'upgrade' }),
|
|
|
async searchInfo() {
|
|
|
- if (this.user.role == '2' || this.user.role == '3' || this.user.role == '7') {
|
|
|
+ if (this.user.role == '4' || this.user.role == '5' || this.user.role == '7') {
|
|
|
let res = await this.fetch(this.user.userid);
|
|
|
if (res.errcode === 0) {
|
|
|
this.$set(this, `form`, res.data);
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async onSubmit({ data }) {
|
|
|
- if (data.role == '2' || data.role == '3' || data.role == '7') {
|
|
|
+ if (data.role == '4' || data.role == '5' || data.role == '7') {
|
|
|
let res;
|
|
|
let msg;
|
|
|
res = await this.update(data);
|
|
@@ -68,11 +68,11 @@ export default {
|
|
|
let msg;
|
|
|
res = await this.expertsuserUpdate(data);
|
|
|
}
|
|
|
- this.$message({
|
|
|
+ this.$notify({
|
|
|
message: '个人信息修改成功',
|
|
|
type: 'success',
|
|
|
});
|
|
|
- this.searchInfo();
|
|
|
+ this.$router.push({ path: '/user/index' });
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|