diff --git a/frontend/src/components/pure/ms-table/useTable.ts b/frontend/src/components/pure/ms-table/useTable.ts index f9b87d551d..65d5498f00 100644 --- a/frontend/src/components/pure/ms-table/useTable.ts +++ b/frontend/src/components/pure/ms-table/useTable.ts @@ -8,8 +8,6 @@ import { useAppStore } from '@/store'; import type { TableData } from '@arco-design/web-vue'; import { type MsTableProps, type MsTableData, type MsTableColumn, SpecialColumnEnum, MsTableErrorStatus } from './type'; -import { set } from 'nprogress'; -import debug from '@/utils/env'; export interface Pagination { current: number; @@ -130,7 +128,9 @@ export default function useTableProps( const setPagination = ({ current, total }: SetPaginationPrams) => { if (propsRes.value.msPagination && typeof propsRes.value.msPagination === 'object') { propsRes.value.msPagination.current = current; - propsRes.value.msPagination.total = total || 0; + if (total !== undefined) { + propsRes.value.msPagination.total = total; + } } }; @@ -190,6 +190,7 @@ export default function useTableProps( setTableErrorStatus('error'); } finally { setLoading(false); + // eslint-disable-next-line no-console if (propsRes.value.debug) console.info(propsRes.value); } }; diff --git a/frontend/src/views/setting/system/organizationAndProject/components/systemOrganization.vue b/frontend/src/views/setting/system/organizationAndProject/components/systemOrganization.vue index f8096a2862..b396e41f18 100644 --- a/frontend/src/views/setting/system/organizationAndProject/components/systemOrganization.vue +++ b/frontend/src/views/setting/system/organizationAndProject/components/systemOrganization.vue @@ -29,7 +29,7 @@ import useTable from '@/components/pure/ms-table/useTable'; import MsBaseTable from '@/components/pure/ms-table/base-table.vue'; import { useTableStore } from '@/store'; - import { ref, reactive, watchEffect, watch } from 'vue'; + import { ref, reactive, watch } from 'vue'; import type { ActionsItem } from '@/components/pure/ms-table-more-action/types'; import { postOrgTable } from '@/api/modules/setting/system/organizationAndProject'; import { TableKeyEnum } from '@/enums/tableEnum'; @@ -174,6 +174,7 @@ noDisable: false, debug: true, size: 'default', + showSetting: true, }); const fetchData = async () => { diff --git a/frontend/src/views/setting/system/organizationAndProject/index.vue b/frontend/src/views/setting/system/organizationAndProject/index.vue index 924c75aa03..61ffbe203c 100644 --- a/frontend/src/views/setting/system/organizationAndProject/index.vue +++ b/frontend/src/views/setting/system/organizationAndProject/index.vue @@ -11,9 +11,9 @@
{{ @@ -46,9 +46,12 @@ const projectCount = ref(0); const currentKeyword = ref(''); - const handleKeywordChange = (value: string) => { + const handleSearch = (value: string) => { currentKeyword.value = value; }; + const handleEnter = (eve: Event) => { + currentKeyword.value = (eve.target as HTMLInputElement).value; + }; const handleAddOrganization = () => { organizationVisible.value = true; diff --git a/frontend/src/views/setting/system/usergroup/components/authTable.vue b/frontend/src/views/setting/system/usergroup/components/authTable.vue index f90150d476..7737d076a8 100644 --- a/frontend/src/views/setting/system/usergroup/components/authTable.vue +++ b/frontend/src/views/setting/system/usergroup/components/authTable.vue @@ -93,7 +93,7 @@ if ((column as TableColumnData).dataIndex === 'ability') { if (record.isSystem) { return { - rowspan: 2, + rowspan: systemSpan.value, }; } if (record.isOrganization) { diff --git a/frontend/src/views/setting/system/usergroup/components/index.vue b/frontend/src/views/setting/system/usergroup/components/index.vue index fc81dd23da..43ff07cc57 100644 --- a/frontend/src/views/setting/system/usergroup/components/index.vue +++ b/frontend/src/views/setting/system/usergroup/components/index.vue @@ -1,7 +1,6 @@