1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-06 07:21:24 +08:00

New Home screen calendar and clock in function

This commit is contained in:
ggb
2023-06-08 01:13:16 +08:00
parent 0c06d1e4d5
commit e7d7faba67
6 changed files with 73 additions and 9 deletions

View File

@@ -52,6 +52,7 @@
v-model="form.birth"
size="default"
placeholder="请选择日期"
value-format="YYYY-MM-DD"
/>
</el-form-item>
</el-col>
@@ -239,7 +240,7 @@ export default {
this.visible = false
},
checkEmail(rule, value, callback) {
const mailReg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/
const mailReg = /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/
if (mailReg.test(value)) {
callback()
} else {