fix: 调整首页等问题

This commit is contained in:
caiyuchao
2025-08-12 19:04:36 +08:00
parent d158a43fb4
commit c401195986
9 changed files with 49 additions and 20 deletions

View File

@@ -94,7 +94,7 @@ const [Modal, modalApi] = useVbenModal({
</script>
<template>
<Modal :title="getTitle" class="w-[800px]">
<Modal :title="getTitle" class="w-1/2">
<Form class="mx-4" />
</Modal>
</template>

View File

@@ -83,8 +83,8 @@ const formatContent = computed(() => {
</a-avatar>
</template>
<template #datetime>
<a-tooltip :title="dayjs(data.updateTime).format('YYYY-MM-DD HH:mm:ss')">
<span>{{ dayjs(data.updateTime).fromNow() }}</span>
<a-tooltip :title="dayjs(data.updateTime)">
<span>{{ dayjs(data.updateTime).format('YYYY-MM-DD HH:mm:ss') }}</span>
</a-tooltip>
</template>
<template #content>

View File

@@ -102,6 +102,7 @@ export function useFormSchema(): VbenFormSchema[] {
label: $t('project.contractCode'),
rules: 'required',
component: 'Input',
help: '没有合同的项目请填0',
},
{
fieldName: 'businessStatus',
@@ -183,6 +184,7 @@ export function useFormSchema(): VbenFormSchema[] {
fieldName: 'remark',
label: $t('project.remarks'),
component: 'Textarea',
rules: 'required',
formItemClass: 'col-span-2',
},
];

View File

@@ -31,7 +31,7 @@ const [Form, formApi] = useVbenForm({
class: 'w-full',
},
// formItemClass: 'col-span-2',
labelWidth: 80,
labelWidth: 100,
},
layout: 'horizontal',
schema: useFormSchema(),
@@ -90,7 +90,7 @@ const [Modal, modalApi] = useVbenModal({
</script>
<template>
<Modal :title="getTitle" class="w-[800px]">
<Modal :title="getTitle" class="w-1/2">
<Form class="mx-4" />
</Modal>
</template>