refactor(xumu): 移除表单照片的验证规则
移除了 AppDeathManage 和 AppOutManage 组件中照片上传的验证规则。这个改动统一了照片上传的规则,提高了代码的一致性和可维护性。 受影响的主要文件: - project/xumu/AppDeathManage/add.vue - project/xumu/AppOutManage/add.vue 具体改动: - 删除了 formImages 数组中每个对象的 rules 属性 - 优化了部分代码格式,如空格和换行
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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: "outAdd",
|
||||
|
||||
Reference in New Issue
Block a user