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();