队伍和人员必填项

main
15036302109 10 months ago
parent ac3d2c5726
commit bda87ce57d

@ -340,9 +340,24 @@ export default {
{ required: true, message: "队伍名称不能为空", trigger: "blur" } { required: true, message: "队伍名称不能为空", trigger: "blur" }
], ],
phone: [ phone: [
{ required: true, message: "电话不能为空", trigger: "blur" }, { required: true, message: "电话不能为空", trigger: "blur" }
/*{ pattern:/^((0\d{2,3}-\d{7,8})|(1[345678]\d{9}))$/, message: "联系方式必须是手机或固话(区号-固话)", trigger: "change" }*/ /*{ pattern:/^((0\d{2,3}-\d{7,8})|(1[345678]\d{9}))$/, message: "联系方式必须是手机或固话(区号-固话)", trigger: "change" }*/
], ],
teamLevel: [
{ required: true, message: "队伍级别不能为空", trigger: "blur" }
],
dutyer: [
{ required: true, message: "负责人不能为空", trigger: "blur" }
],
unit: [
{ required: true, message: "所属单位不能为空", trigger: "blur" }
],
teamProperty: [
{ required: true, message: "队伍属性不能为空", trigger: "blur" }
],
station: [
{ required: true, message: "驻地不能为空", trigger: "blur" }
]
} }
}; };
}, },

@ -354,6 +354,18 @@ export default {
{ required: true, message: "电话不能为空", trigger: "blur" }, { required: true, message: "电话不能为空", trigger: "blur" },
/*{ pattern:/^((0\d{2,3}-\d{7,8})|(1[345678]\d{9}))$/, message: "联系方式必须是手机或固话(区号-固话)", trigger: "change" }*/ /*{ pattern:/^((0\d{2,3}-\d{7,8})|(1[345678]\d{9}))$/, message: "联系方式必须是手机或固话(区号-固话)", trigger: "change" }*/
], ],
gender: [
{ required: true, message: "性别不能为空", trigger: "blur" }
],
workerAge: [
{ required: true, message: "年龄不能为空", trigger: "blur" }
],
teamPost: [
{ required: true, message: "队内职务不能为空", trigger: "blur" }
],
workYear: [
{ required: true, message: "工作年限不能为空", trigger: "blur" }
]
} }
}; };
}, },

Loading…
Cancel
Save