系统字段不要展示修改

main
zhufu 2025-05-19 08:42:08 +08:00
parent 8539157a94
commit c4526eeb28
1 changed files with 11 additions and 10 deletions

View File

@ -115,15 +115,17 @@
:label-col="labelCol"
:wrapper-col="wrapperCol"
>
<a-form-item
v-for="(item, index) in headData"
:ref="item"
:label="item.title"
:name="item"
:key="index"
>
<a-input v-model:value="formState[item.dataIndex]" />
</a-form-item>
<template v-for="(item, index) in headData">
<a-form-item
v-if="!['Id','Lng','Lat','UpdateTime'].includes(item.dataIndex)"
:ref="item"
:label="item.title"
:name="item"
:key="index"
>
<a-input v-model:value="formState[item.dataIndex]" />
</a-form-item>
</template>
</a-form>
<div class="data-button">
<a-button type="primary" @click="onSubmit"></a-button>
@ -400,7 +402,6 @@
});
} else if (showTable.value == 'add') {
params.list = [];
headData.value?.forEach((item, index) => {
params.list.push({
name: item.dataIndex,