项目初始化

This commit is contained in:
2026-03-23 12:13:10 +08:00
parent 1c8bdb6ce0
commit 876b3800b4
5 changed files with 38 additions and 35 deletions

View File

@@ -54,7 +54,7 @@
colProps: { md: 24, lg: 24 },
},
{
label: t('标题'),
label: t('便签标题'),
field: 'title',
component: 'Input',
componentProps: {
@@ -64,14 +64,14 @@
colProps: { md: 24, lg: 24 },
},
{
label: t('内容'),
label: t('便签内容'),
field: 'content',
component: 'InputTextArea',
required: true,
colProps: { md: 24, lg: 24 },
},
{
label: t('级别'),
label: t('便签级别'),
field: 'priority',
component: 'Select',
componentProps: {
@@ -80,16 +80,16 @@
},
required: true,
},
{
label: t('状态'),
field: 'ustatus',
component: 'Select',
componentProps: {
dictType: 'note_status',
allowClear: true,
},
required: true,
},
{
label: t('便签类型'),
field: 'type',
component: 'Select',
componentProps: {
dictType: 'note_type',
allowClear: true,
},
required: true,
},
{
label: t('开始时间'),
field: 'startTime',
@@ -108,16 +108,6 @@
showTime: { format: 'HH:mm' },
},
},
{
label: t('便签类型'),
field: 'type',
component: 'Select',
componentProps: {
dictType: 'note_type',
allowClear: true,
},
required: true,
},
{
label: t('截至时间'),
field: 'deadline',
@@ -128,6 +118,16 @@
},
required: true,
},
{
label: t('便签状态'),
field: 'ustatus',
component: 'Select',
componentProps: {
dictType: 'note_status',
allowClear: true,
},
required: true,
},
];
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm<MyNotes>({

View File

@@ -100,15 +100,6 @@
allowClear: true,
},
},
{
label: t('状态'),
field: 'ustatus',
component: 'Select',
componentProps: {
dictType: 'note_status',
allowClear: true,
},
},
{
label: t('类型'),
field: 'type',
@@ -118,6 +109,15 @@
allowClear: true,
},
},
{
label: t('状态'),
field: 'ustatus',
component: 'Select',
componentProps: {
dictType: 'note_status',
allowClear: true,
},
},
],
};

View File

@@ -203,6 +203,9 @@
const res = await myProjectInfoForm(data);
record.value = (res.myProjectInfo || {}) as MyProjectInfo;
record.value.__t = new Date().getTime();
if (record.value.areaLevel) {
areaListParams.value.areaLevel = record.value.areaLevel;
}
await setFieldsValue(record.value);
setDrawerProps({ loading: false });
});

View File

@@ -1,8 +1,8 @@
<template>
<div v-if="getShow">
<LoginFormTitle class="enter-x" />
<Form class="enter-x p-4" :model="formData" :rules="getFormRules" ref="formRef" @keypress.enter="handleLogin">
<div class="font-size mb-5 text-center font-size-4 text-red">
</div>
<div class="font-size mb-5 text-center font-size-4 text-red"> </div>
<FormItem name="account" class="enter-x">
<Input
size="large"

View File

@@ -57,7 +57,7 @@ export default {
subTitle500: 'Sorry, the server is reporting an error.',
noDataTitle: 'No data on the current page.',
networkErrorTitle: 'Network Error',
networkErrorSubTitle: 'SorryYour network connection has been disconnected, please check your network!',
networkErrorSubTitle: 'Sorry network connection has been disconnected, please check your network!',
},
lock: {
unlock: 'Click to unlock',