Commit f98cb432 authored by 高滢's avatar 高滢

feat(月度统计公司下拉框): 延迟

parent 0f06f487
......@@ -198,9 +198,6 @@ export const seach: FormSchema[] = [
componentProps: {
options: [],
placeholder: '请选择所属公司',
// onChange: (e) => {
// params.value.deptId = e;
// },
},
colProps: { span: 4 },
},
......
......@@ -14,7 +14,7 @@
bordered
:loading="loadingRef"
:rowClassName="setRowClassName"
:scroll="{ x: 1300,y: 350 }"
:scroll="{ x: 1300, y: 350 }"
>
<template #sourceType="{ text, record }">
<a @click="showDetails(record)"> {{ text }}</a>
......@@ -35,22 +35,22 @@
import PageCard from '@/components/Page/src/PageCard.vue';
import { downloadByData } from '@/utils/file/download';
import { seach } from '@/views/monthlyPlan/data';
import { useUserStore } from '@/store/modules/user';
const deptId = ref('');
onMounted(async () => {
deptId.value = useUserStore().userInfo.deptParentId;
if (deptId.value == '100') {
const data = await getSelectDeptById();
seach[1].componentProps.options = data;
}
const data = await getSelectDeptById();
updateSchema({
field: 'deptId',
componentProps: {
options: data,
placeholder: '请选择所属公司',
},
});
params.value.monthYear = getCurrentDateFormatted();
getStatisticList();
});
defineOptions({ name: 'MonthlyPlan' });
const [register, { openModal: openModal }] = useModal();
const formElRef = ref<Nullable<FormActionType>>(null);
const [registerForm, { getFieldsValue }] = useForm({
const [registerForm, { getFieldsValue, updateSchema }] = useForm({
labelWidth: 90,
baseColProps: { span: 24 },
schemas: seach,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment