From 3628c2496aa1eaf293b17044ef5157e10044380f Mon Sep 17 00:00:00 2001 From: xlsea Date: Thu, 26 Jun 2025 17:12:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(projects):=20=E4=BF=AE=E5=A4=8D=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E6=95=B0=E6=8D=AE=E9=87=8D=E5=A4=8D=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/post/modules/post-search.vue | 2 +- src/views/system/role/index.vue | 3 +++ src/views/system/role/modules/role-auth-user-drawer.vue | 2 +- src/views/system/role/modules/role-operate-drawer.vue | 2 +- src/views/system/role/modules/role-search.vue | 2 +- src/views/system/tenant-package/index.vue | 4 ++++ .../system/tenant-package/modules/tenant-package-search.vue | 2 +- 7 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/views/system/post/modules/post-search.vue b/src/views/system/post/modules/post-search.vue index 9d1cb4e0..126ad5d0 100644 --- a/src/views/system/post/modules/post-search.vue +++ b/src/views/system/post/modules/post-search.vue @@ -17,7 +17,7 @@ const { formRef, validate, restoreValidation } = useNaiveForm(); const model = defineModel('model', { required: true }); -const { options: sysCommonStatusOptions } = useDict('sys_normal_disable'); +const { options: sysCommonStatusOptions } = useDict('sys_normal_disable', false); async function reset() { await restoreValidation(); diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index bf5ccde5..d38cd44c 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -8,6 +8,7 @@ import { useAppStore } from '@/store/modules/app'; import { useAuth } from '@/hooks/business/auth'; import { useDownload } from '@/hooks/business/download'; import { useTable, useTableOperate } from '@/hooks/common/table'; +import { useDict } from '@/hooks/business/dict'; import { $t } from '@/locales'; import ButtonIcon from '@/components/custom/button-icon.vue'; import StatusSwitch from '@/components/custom/status-switch.vue'; @@ -24,6 +25,8 @@ const appStore = useAppStore(); const { download } = useDownload(); const { hasAuth } = useAuth(); +useDict('sys_normal_disable'); + const { bool: dataScopeDrawerVisible, setTrue: openDataScopeDrawer } = useBoolean(false); const { bool: authUserDrawerVisible, setTrue: openAuthUserDrawer } = useBoolean(false); const { diff --git a/src/views/system/role/modules/role-auth-user-drawer.vue b/src/views/system/role/modules/role-auth-user-drawer.vue index 908fc8d8..75ef50cf 100644 --- a/src/views/system/role/modules/role-auth-user-drawer.vue +++ b/src/views/system/role/modules/role-auth-user-drawer.vue @@ -32,7 +32,7 @@ const appStore = useAppStore(); const title = computed(() => '分配用户权限'); -useDict('sys_normal_disable'); +useDict('sys_normal_disable', false); const { columns, data, getData, getDataByPage, loading, mobilePagination, searchParams, resetSearchParams } = useTable({ immediate: false, diff --git a/src/views/system/role/modules/role-operate-drawer.vue b/src/views/system/role/modules/role-operate-drawer.vue index 389bdce0..68a7388b 100644 --- a/src/views/system/role/modules/role-operate-drawer.vue +++ b/src/views/system/role/modules/role-operate-drawer.vue @@ -33,7 +33,7 @@ const visible = defineModel('visible', { default: false }); -const { options: sysNormalDisableOptions } = useDict('sys_normal_disable'); +const { options: sysNormalDisableOptions } = useDict('sys_normal_disable', false); const menuOptions = ref([]); diff --git a/src/views/system/role/modules/role-search.vue b/src/views/system/role/modules/role-search.vue index 7b3db1be..395ae278 100644 --- a/src/views/system/role/modules/role-search.vue +++ b/src/views/system/role/modules/role-search.vue @@ -21,7 +21,7 @@ const dateRangeCreateTime = ref<[string, string] | null>(null); const model = defineModel('model', { required: true }); -const { options: sysNormalDisableOptions } = useDict('sys_normal_disable'); +const { options: sysNormalDisableOptions } = useDict('sys_normal_disable', false); function onDateRangeCreateTimeUpdate(value: [string, string] | null) { if (value?.length) { diff --git a/src/views/system/tenant-package/index.vue b/src/views/system/tenant-package/index.vue index 6f4fd7cc..2a4e0c0d 100644 --- a/src/views/system/tenant-package/index.vue +++ b/src/views/system/tenant-package/index.vue @@ -10,12 +10,14 @@ import { useAppStore } from '@/store/modules/app'; import { useAuth } from '@/hooks/business/auth'; import { useDownload } from '@/hooks/business/download'; import { useTable, useTableOperate } from '@/hooks/common/table'; +import { useDict } from '@/hooks/business/dict'; import { $t } from '@/locales'; import ButtonIcon from '@/components/custom/button-icon.vue'; import TableHeaderOperation from '@/components/advanced/table-header-operation.vue'; import StatusSwitch from '@/components/custom/status-switch.vue'; import TenantPackageSearch from './modules/tenant-package-search.vue'; import TenantPackageOperateDrawer from './modules/tenant-package-operate-drawer.vue'; + defineOptions({ name: 'TenantPackageList' }); @@ -24,6 +26,8 @@ const appStore = useAppStore(); const { download } = useDownload(); const { hasAuth } = useAuth(); +useDict('sys_normal_disable', false); + const { columns, columnChecks, diff --git a/src/views/system/tenant-package/modules/tenant-package-search.vue b/src/views/system/tenant-package/modules/tenant-package-search.vue index 4b22df82..910aa6e8 100644 --- a/src/views/system/tenant-package/modules/tenant-package-search.vue +++ b/src/views/system/tenant-package/modules/tenant-package-search.vue @@ -18,7 +18,7 @@ const { formRef, validate, restoreValidation } = useNaiveForm(); const model = defineModel('model', { required: true }); -const { options: sysNormalDisableOptions } = useDict('sys_normal_disable'); +const { options: sysNormalDisableOptions } = useDict('sys_normal_disable', false); async function reset() { await restoreValidation();