diff --git a/src/components/Header.vue b/src/components/Header.vue index af3ddae..f738f53 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -30,7 +30,7 @@ export default { getUserInfo(){ this.$get(this.api.queryUserInfoDetails).then(res => { let userInfo = res.result.hrUserInfo - this.avatar = userInfo.userAvatars + if(userInfo.userAvatars) this.avatar = userInfo.userAvatars this.userName = userInfo.userName }).catch(err => {}) }, diff --git a/src/utils/api.js b/src/utils/api.js index 541ad08..470be8e 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -38,7 +38,7 @@ export default { // 用户管理 delUserAccounts: `${host3}/users/users/userAccount/delUserAccounts`, - queryUserInfoDetails: `${host3}/users/users/userAccount/queryUserInfoDetails`, + queryUserInfoDetails: `${host3}/users/userAccount/queryUserInfoDetails`, queryUserInfoList: `${host3}/users/users/userAccount/queryUserInfoList`, resetPwd: `${host3}/users/users/userAccount/resetPwd`, selectAccountDetail: `${host3}/users/users/userAccount/selectAccountDetail`, diff --git a/src/views/data/Framework.vue b/src/views/data/Framework.vue index d570805..5512b9e 100644 --- a/src/views/data/Framework.vue +++ b/src/views/data/Framework.vue @@ -94,7 +94,6 @@ export default { data() { return { - schoolId: 1001, typeList: [], defaultProps: { children: 'children', @@ -227,12 +226,6 @@ export default { }, preview(row){ this.$get(`${this.api.previewData}?tableName=${row.name}&tableId=${row.id}`).then(res => { - this.$post(this.api.saveRecord,{ - tableId: row.id, - type: 2, - schoolId: this.schoolId, - }).then(res => {}).catch(res => {}) - let comment = res.comment let previewHead = [] comment.map(n => { diff --git a/src/views/data/Product.vue b/src/views/data/Product.vue index bfad504..cf20b91 100644 --- a/src/views/data/Product.vue +++ b/src/views/data/Product.vue @@ -144,7 +144,6 @@ export default { data() { return { - schoolId: 1001, userName: this.$store.state.userName, keyword: '', searchTimer: null, @@ -483,12 +482,6 @@ export default { }, previewConfig(row){ this.$get(`${this.api.previewData}?tableName=${row.name}&tableId=${row.id}`).then(res => { - this.$post(this.api.saveRecord,{ - tableId: row.id, - type: 2, - schoolId: this.schoolId, - }).then(res => {}).catch(res => {}) - let comment = res.comment let previewHead = [] comment.map(n => { diff --git a/src/views/setting/Person.vue b/src/views/setting/Person.vue index 4e6c898..d1dcb6e 100644 --- a/src/views/setting/Person.vue +++ b/src/views/setting/Person.vue @@ -1,7 +1,7 @@