Skip to content

Commit

Permalink
feat: ldap用户批量修改状态与续期
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 25505
  • Loading branch information
JoJohw committed Dec 2, 2024
1 parent c8e1819 commit 4a4a031
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pages/src/views/organization/components/table-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
:details-info="editDetailsInfo"
@updateUsers="updateUsers"
@handleCancelEdit="handleCancelEdit" />
<ViewUser :user-data="detailsInfo" :detail="editDetailsInfo" @updateUsers="updateUsers" :isShowBtn="!isCollaborativeUsers && isLocalDataSource" v-else />
<ViewUser :user-data="detailsInfo" :detail="editDetailsInfo" @updateUsers="updateUsers" :isShowBtn="!isCollaborativeUsers && (isLocalDataSource || isLdapDataSource)" v-else />
</bk-sideslider>
<!-- 导入弹框 -->
<ImportDialog
Expand Down Expand Up @@ -289,6 +289,9 @@
const isLocalDataSource = computed(() => {
return appStore.currentTenant?.data_source?.plugin_id === 'local';
});
const isLdapDataSource = computed(() => {
return appStore.currentTenant?.data_source?.plugin_id === 'ldap';
});
const dataSourceId = computed(() => {
return appStore.currentTenant?.data_source?.id;
});
Expand Down Expand Up @@ -537,7 +540,7 @@
const hasOperationColumns = [...columns, ...operationColumns]
/** 判断当前表格需要展示的列 */
const columnsRender = computed(() => {
return isLocalDataSource.value ? [...selectionColumns, ...hasOperationColumns] : hasOperationColumns;
return isLocalDataSource.value || isLdapDataSource.value ? [...selectionColumns, ...hasOperationColumns] : hasOperationColumns;
});
const tableColumns = computed(() => {
return isCollaborativeUsers.value ? columns : columnsRender.value;
Expand Down

0 comments on commit 4a4a031

Please sign in to comment.