From 61344a1943dc436ed1d2b67f3335cdf751a5ec8d Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 18 Dec 2025 16:08:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E7=AE=A1=E7=90=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ComSearchForm/FormItem/ItemInput.vue | 2 +- .../ComSearchForm/FormItem/ItemIpt.vue | 1 - src/components/ComSearchForm/index.vue | 8 +- .../personManage/Person/addAndEditForm.vue | 64 +++---- src/views/personManage/Person/config.js | 156 ++++++++++++------ src/views/personManage/Person/index.vue | 45 ++++- 6 files changed, 179 insertions(+), 97 deletions(-) delete mode 100644 src/components/ComSearchForm/FormItem/ItemIpt.vue diff --git a/src/components/ComSearchForm/FormItem/ItemInput.vue b/src/components/ComSearchForm/FormItem/ItemInput.vue index 0438f15..905d318 100644 --- a/src/components/ComSearchForm/FormItem/ItemInput.vue +++ b/src/components/ComSearchForm/FormItem/ItemInput.vue @@ -37,7 +37,7 @@ const props = defineProps({ }, style: { type: Object, - default: () => ({ width: '200px' }), + default: () => ({ width: '180px' }), }, }) diff --git a/src/components/ComSearchForm/FormItem/ItemIpt.vue b/src/components/ComSearchForm/FormItem/ItemIpt.vue deleted file mode 100644 index 988f867..0000000 --- a/src/components/ComSearchForm/FormItem/ItemIpt.vue +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/components/ComSearchForm/index.vue b/src/components/ComSearchForm/index.vue index 4cf30af..911a5af 100644 --- a/src/components/ComSearchForm/index.vue +++ b/src/components/ComSearchForm/index.vue @@ -49,7 +49,7 @@ const props = defineProps({ // 表单标签宽度 labelWidth: { type: String, - default: '100px', + default: 'auto', }, // 默认表单数据 defaultFormData: { @@ -96,7 +96,7 @@ const getComponentProps = (item) => { clearable: item.clearable !== false, disabled: item.disabled || false, style: item.style || { - width: '240px', + width: '200px', }, } @@ -166,4 +166,8 @@ watch( .search-form-card :deep(.el-card__body) { padding: 18px 20px 0; } + +.el-form--inline .el-form-item { + margin-right: 10px; +} diff --git a/src/views/personManage/Person/addAndEditForm.vue b/src/views/personManage/Person/addAndEditForm.vue index a1e22f1..2fa572b 100644 --- a/src/views/personManage/Person/addAndEditForm.vue +++ b/src/views/personManage/Person/addAndEditForm.vue @@ -28,6 +28,7 @@ @@ -44,6 +45,7 @@ @@ -104,59 +106,43 @@