From db1a323921cc905ba67b20f2414f9274c9f400b4 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 9 Jan 2025 16:39:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor(xumu):=20=E7=A7=BB=E9=99=A4=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E7=85=A7=E7=89=87=E7=9A=84=E9=AA=8C=E8=AF=81=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除了 AppDeathManage 和 AppOutManage 组件中照片上传的验证规则。这个改动统一了照片上传的规则,提高了代码的一致性和可维护性。 受影响的主要文件: - project/xumu/AppDeathManage/add.vue - project/xumu/AppOutManage/add.vue 具体改动: - 删除了 formImages 数组中每个对象的 rules 属性 - 优化了部分代码格式,如空格和换行 --- project/xumu/AppDeathManage/add.vue | 10 ++--- project/xumu/AppOutManage/add.vue | 58 ++++++++++++++--------------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/project/xumu/AppDeathManage/add.vue b/project/xumu/AppDeathManage/add.vue index f20af23c..f9114170 100644 --- a/project/xumu/AppDeathManage/add.vue +++ b/project/xumu/AppDeathManage/add.vue @@ -3,10 +3,10 @@ import {mapState} from "vuex" import AiEartagRemote from "@project/xumu/components/AiEartagRemote.vue"; const formImages = [ - {label: "身长测量照片", prop: "heightPic", rules: {required: true, message: '请上传 身长测量照片'}}, - {label: "生物芯片照片", prop: "biochipPic", rules: {required: true, message: '请上传 生物芯片照片'}}, - {label: "防疫耳标照片", prop: "preventionPic", rules: {required: true, message: '请上传 防疫耳标照片'}}, - {label: "其他说明照片", prop: "otherPic", rules: {required: true, message: '请上传 其他说明照片'}}, + {label: "身长测量照片", prop: "heightPic",}, + {label: "生物芯片照片", prop: "biochipPic",}, + {label: "防疫耳标照片", prop: "preventionPic",}, + {label: "其他说明照片", prop: "otherPic",}, ] export default { name: "deathAdd", @@ -89,7 +89,7 @@ export default {
- + diff --git a/project/xumu/AppOutManage/add.vue b/project/xumu/AppOutManage/add.vue index 75d8c364..9f3ffa57 100644 --- a/project/xumu/AppOutManage/add.vue +++ b/project/xumu/AppOutManage/add.vue @@ -1,12 +1,12 @@