fix(系统设置): 补充未补充ts类型

This commit is contained in:
xinxin.wu 2023-08-18 12:27:17 +08:00 committed by fit2-zhao
parent cab07f4836
commit 88f41220c8
4 changed files with 10 additions and 9 deletions

View File

@ -5,13 +5,13 @@
<script setup lang="ts">
import { ref, watchEffect, watch } from 'vue';
import PassWord from './formcreate-password.vue';
import formCreate, { Rule } from '@form-create/arco-design';
import formCreate, { FormRule } from '@form-create/arco-design';
formCreate.component('PassWord', PassWord);
const FormCreate = formCreate.$form();
const props = defineProps<{
rule: Rule[]; //
rule: FormRule | undefined; //
option: any; //
api: any; //
}>();

View File

@ -7,7 +7,7 @@ export type ServiceItem = Partial<{
config: boolean;
logo: string;
organizationId: string; // 组织id
configuration?: null; // 配置项
configuration?: Record<string, any>; // 配置项
}>;
export type ServiceList = ServiceItem[];
@ -17,9 +17,9 @@ export type ServiceList = ServiceItem[];
export type AddOrUpdateServiceModel = Partial<{
id?: string;
pluginId: string;
enable: boolean | undefined;
enable: boolean;
organizationId: string;
configuration?: any;
configuration?: Record<string, any>;
}>;
export interface SkipTitle {

View File

@ -45,10 +45,11 @@
import type { ServiceItem, AddOrUpdateServiceModel } from '@/models/setting/serviceIntegration';
import useLoading from '@/hooks/useLoading';
import { useUserStore } from '@/store';
import { FormRule } from '@form-create/arco-design';
const { t } = useI18n();
const userStore = useUserStore();
const lastOrganizationId = userStore.$state?.lastOrganizationId as string;
const lastOrganizationId = userStore.$state?.lastOrganizationId;
const emits = defineEmits<{
(event: 'update:visible', visible: boolean): void;
@ -78,9 +79,9 @@
'validate-trigger': ['change'],
},
});
const formRules = ref<any>([]);
const formRules = ref<FormRule>();
const title = ref<string>('');
const formItem = ref<any>({});
const formItem = ref<AddOrUpdateServiceModel>({});
watchEffect(() => {
detailVisible.value = props.visible;
});

View File

@ -122,7 +122,7 @@
collapseHeight: string;
}>();
const keyword = ref('');
const keyword = ref<string>('');
const filterList = ref<ServiceList>([]);
const data = ref<ServiceList>([]);
const loading = ref<boolean>(false);