|
@@ -25,13 +25,21 @@ export default {
|
|
|
submitFormSingle(){
|
|
|
if(this.click){
|
|
|
this.click = false
|
|
|
+ const regEmail = /^([A-Za-z0-9_\-.])+@([A-Za-z0-9_\-.])+\.([A-Za-z]{2,4})$/
|
|
|
if (this.formData.memberEmail.trim() === '' || this.formData.teamId.trim() === '') {
|
|
|
this.$message.error('Missing required information')
|
|
|
//限制点击
|
|
|
setTimeout(() => {
|
|
|
this.click = true
|
|
|
}, 3000)
|
|
|
- } else {
|
|
|
+ } else if(!regEmail.test(this.formData.memberEmail)){
|
|
|
+ this.$message.error('Incorrect email format')
|
|
|
+ //限制点击
|
|
|
+ setTimeout(() => {
|
|
|
+ this.click = true
|
|
|
+ }, 3000)
|
|
|
+ }
|
|
|
+ else {
|
|
|
post('/pdf-tech/vppTeam/addTeamMember',this.formData).then((res)=>{
|
|
|
//限制点击
|
|
|
setTimeout(() => {
|
|
@@ -238,7 +246,7 @@ export default {
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<span slot="label" class="label leading-20px text-[#1460F3] hover:opacity-70 cursor-pointer">
|
|
|
- <a href="/download/团队成员导入模板.xlsx" download="团队成员导入模板.xlsx">
|
|
|
+ <a href="/public/download/团队成员导入模板.xlsx" download="团队成员导入模板.xlsx">
|
|
|
Download sample XLSX <img src="@/assets/images/downLoadBlue.svg" class="inline-block ">
|
|
|
</a>
|
|
|
</span>
|