Skip to content

Commit

Permalink
fix: 修复职务显示问题 #820
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri0528 authored and EmilyMei committed Dec 5, 2022
1 parent 110006d commit 003ae19
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/src/views/organization/details/UserMaterial.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export default {
this.activeFieldsList.forEach((item) => {
if (item.options.length > 0) {
item.options.map((key) => {
if (key.id === this.currentProfile[item.key]) {
if (key.id === this.currentProfile[item.key] || key.id === Number(this.currentProfile[item.key])) {
item.value = key.value;
}
});
Expand Down
1 change: 1 addition & 0 deletions src/pages/src/views/organization/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ export default {
this.filterTreeData(catalog, this.treeDataList);
catalog.children = catalog.departments;
catalog.children.forEach((department) => {
this.$set(department, 'category_id', catalog.id);
this.filterTreeData(department, catalog, catalog.type === 'local');
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/pages/src/views/organization/table/UserTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export default {
return '';
}
for (let i = 0; i < options.length; i++) {
if (options[i].id === value) {
if (options[i].id === value || options[i].id === Number(value)) {
if (this.$i18n.locale === 'en') {
return value;
}
Expand Down

0 comments on commit 003ae19

Please sign in to comment.