fix(系统设置): 补充未补充ts类型
This commit is contained in:
parent
cab07f4836
commit
88f41220c8
|
@ -5,13 +5,13 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, watchEffect, watch } from 'vue';
|
import { ref, watchEffect, watch } from 'vue';
|
||||||
import PassWord from './formcreate-password.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);
|
formCreate.component('PassWord', PassWord);
|
||||||
const FormCreate = formCreate.$form();
|
const FormCreate = formCreate.$form();
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
rule: Rule[]; // 表单的规则
|
rule: FormRule | undefined; // 表单的规则
|
||||||
option: any; // 全局配置项
|
option: any; // 全局配置项
|
||||||
api: any; // 收集表单的值
|
api: any; // 收集表单的值
|
||||||
}>();
|
}>();
|
||||||
|
|
|
@ -7,7 +7,7 @@ export type ServiceItem = Partial<{
|
||||||
config: boolean;
|
config: boolean;
|
||||||
logo: string;
|
logo: string;
|
||||||
organizationId: string; // 组织id
|
organizationId: string; // 组织id
|
||||||
configuration?: null; // 配置项
|
configuration?: Record<string, any>; // 配置项
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type ServiceList = ServiceItem[];
|
export type ServiceList = ServiceItem[];
|
||||||
|
@ -17,9 +17,9 @@ export type ServiceList = ServiceItem[];
|
||||||
export type AddOrUpdateServiceModel = Partial<{
|
export type AddOrUpdateServiceModel = Partial<{
|
||||||
id?: string;
|
id?: string;
|
||||||
pluginId: string;
|
pluginId: string;
|
||||||
enable: boolean | undefined;
|
enable: boolean;
|
||||||
organizationId: string;
|
organizationId: string;
|
||||||
configuration?: any;
|
configuration?: Record<string, any>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export interface SkipTitle {
|
export interface SkipTitle {
|
||||||
|
|
|
@ -45,10 +45,11 @@
|
||||||
import type { ServiceItem, AddOrUpdateServiceModel } from '@/models/setting/serviceIntegration';
|
import type { ServiceItem, AddOrUpdateServiceModel } from '@/models/setting/serviceIntegration';
|
||||||
import useLoading from '@/hooks/useLoading';
|
import useLoading from '@/hooks/useLoading';
|
||||||
import { useUserStore } from '@/store';
|
import { useUserStore } from '@/store';
|
||||||
|
import { FormRule } from '@form-create/arco-design';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const lastOrganizationId = userStore.$state?.lastOrganizationId as string;
|
const lastOrganizationId = userStore.$state?.lastOrganizationId;
|
||||||
|
|
||||||
const emits = defineEmits<{
|
const emits = defineEmits<{
|
||||||
(event: 'update:visible', visible: boolean): void;
|
(event: 'update:visible', visible: boolean): void;
|
||||||
|
@ -78,9 +79,9 @@
|
||||||
'validate-trigger': ['change'],
|
'validate-trigger': ['change'],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const formRules = ref<any>([]);
|
const formRules = ref<FormRule>();
|
||||||
const title = ref<string>('');
|
const title = ref<string>('');
|
||||||
const formItem = ref<any>({});
|
const formItem = ref<AddOrUpdateServiceModel>({});
|
||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
detailVisible.value = props.visible;
|
detailVisible.value = props.visible;
|
||||||
});
|
});
|
||||||
|
|
|
@ -122,7 +122,7 @@
|
||||||
collapseHeight: string;
|
collapseHeight: string;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const keyword = ref('');
|
const keyword = ref<string>('');
|
||||||
const filterList = ref<ServiceList>([]);
|
const filterList = ref<ServiceList>([]);
|
||||||
const data = ref<ServiceList>([]);
|
const data = ref<ServiceList>([]);
|
||||||
const loading = ref<boolean>(false);
|
const loading = ref<boolean>(false);
|
||||||
|
|
Loading…
Reference in New Issue