From d28226bbf0ec71b79412392c58220a1159c5fc26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Sat, 7 Feb 2026 18:44:07 +0800 Subject: [PATCH] =?UTF-8?q?feat(shop):=20=E4=BC=98=E5=8C=96=E7=94=B5?= =?UTF-8?q?=E5=AD=90=E5=9B=B4=E6=A0=8F=E7=BC=96=E8=BE=91=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=92=8C=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加确认加载状态防止重复提交 - 设置弹窗最大高度和滚动条改善用户体验 - 将表单设置为只读状态时禁用输入 - 使用单选框替换类型输入框提升易用性 - 优化定位和区域字段提示文字 - 使用文本域替代输入框用于围栏范围输入 - 添加动态帮助文本和占位符指导用户输入 - 移除状态字段在列表中的显示 - 重构表单验证逻辑和数据处理流程 - 添加表单重置和填充方法 - 优化经纬度和围栏点数据的验证规则 --- .../components/shopStoreFenceEdit.vue | 244 ++++++++++-------- src/views/shop/shopStoreFence/index.vue | 12 +- 2 files changed, 141 insertions(+), 115 deletions(-) diff --git a/src/views/shop/shopStoreFence/components/shopStoreFenceEdit.vue b/src/views/shop/shopStoreFence/components/shopStoreFenceEdit.vue index 8e828cf..949a733 100644 --- a/src/views/shop/shopStoreFence/components/shopStoreFenceEdit.vue +++ b/src/views/shop/shopStoreFence/components/shopStoreFenceEdit.vue @@ -5,8 +5,9 @@ :visible="visible" :maskClosable="false" :maxable="maxable" + :confirm-loading="loading" :title="isUpdate ? '编辑电子围栏' : '添加电子围栏'" - :body-style="{ paddingBottom: '28px' }" + :body-style="{ paddingBottom: '28px', maxHeight: '70vh', overflow: 'auto' }" @update:visible="updateVisible" @ok="save" > @@ -14,7 +15,8 @@ ref="formRef" :model="form" :rules="rules" - :label-col="styleResponsive ? { md: 4, sm: 5, xs: 24 } : { flex: '90px' }" + :disabled="loading" + :label-col="styleResponsive ? { md: 5, sm: 5, xs: 24 } : { flex: '90px' }" :wrapper-col=" styleResponsive ? { md: 19, sm: 19, xs: 24 } : { flex: '1' } " @@ -26,48 +28,43 @@ v-model:value="form.name" /> - + + + + + + 圆形 + 方形/多边形 + + + + + + - - - - + + - - - - - - - - + + - - - 显示 - 隐藏 - - +