功能优化

This commit is contained in:
jiayu 2025-07-29 17:53:58 +08:00
parent 5fa60f28e7
commit 68e6be693e
2 changed files with 12 additions and 0 deletions

View File

@ -127,6 +127,10 @@
title: '所属乡村',
dataIndex: 'villageName',
},
{
title: '土地名称',
dataIndex: 'name',
},
{
title: '土地类型',
dataIndex: 'typeName',

View File

@ -14,6 +14,11 @@
<a-col :span="24">
<a-page-header style="padding: 0 0 10px 0" title="基本信息" />
</a-col>
<a-col :span="8">
<a-form-item label="土地名称" name="name">
<a-input v-model:value="form.name" placeholder="请输入土地名称" />
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item label="土地类型" name="type">
<DictSelect v-model:value="form.type" key-code="LAND_TYPE" width="100%" placeholder="请选择土地类型" />
@ -62,6 +67,7 @@
let form = ref({
landId: '',
name: '',
type: undefined,
area: '',
descInfo: '',
@ -71,6 +77,7 @@
});
const defaultForm = {
landId: '',
name: '',
type: undefined,
area: '',
descInfo: '',
@ -79,6 +86,7 @@
mapData: [],
};
const rules = ref({
name: [{ required: true, message: '请输入土地名称' }],
type: [{ required: true, message: '请选择土地类型' }],
});
const polygonMapRef = ref(null);