fix(系统设置): 补充未补充ts类型
This commit is contained in:
parent
cab07f4836
commit
88f41220c8
|
@ -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; // 收集表单的值
|
||||
}>();
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue