fix(projects): 修复字典数据重复获取问题
This commit is contained in:
parent
650673e2db
commit
3628c2496a
@ -17,7 +17,7 @@ const { formRef, validate, restoreValidation } = useNaiveForm();
|
||||
|
||||
const model = defineModel<Api.System.PostSearchParams>('model', { required: true });
|
||||
|
||||
const { options: sysCommonStatusOptions } = useDict('sys_normal_disable');
|
||||
const { options: sysCommonStatusOptions } = useDict('sys_normal_disable', false);
|
||||
|
||||
async function reset() {
|
||||
await restoreValidation();
|
||||
|
@ -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 {
|
||||
|
@ -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,
|
||||
|
@ -33,7 +33,7 @@ const visible = defineModel<boolean>('visible', {
|
||||
default: false
|
||||
});
|
||||
|
||||
const { options: sysNormalDisableOptions } = useDict('sys_normal_disable');
|
||||
const { options: sysNormalDisableOptions } = useDict('sys_normal_disable', false);
|
||||
|
||||
const menuOptions = ref<Api.System.MenuList>([]);
|
||||
|
||||
|
@ -21,7 +21,7 @@ const dateRangeCreateTime = ref<[string, string] | null>(null);
|
||||
|
||||
const model = defineModel<Api.System.RoleSearchParams>('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) {
|
||||
|
@ -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,
|
||||
|
@ -18,7 +18,7 @@ const { formRef, validate, restoreValidation } = useNaiveForm();
|
||||
|
||||
const model = defineModel<Api.System.TenantPackageSearchParams>('model', { required: true });
|
||||
|
||||
const { options: sysNormalDisableOptions } = useDict('sys_normal_disable');
|
||||
const { options: sysNormalDisableOptions } = useDict('sys_normal_disable', false);
|
||||
|
||||
async function reset() {
|
||||
await restoreValidation();
|
||||
|
Loading…
Reference in New Issue
Block a user