Parcourir la source

手机号与健康证传参

wgl il y a 4 ans
Parent
commit
243a74d492
2 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 3 1
      src/projects/business/views/Common/Health/Cert.vue
  2. 1 1
      src/utils/index.js

+ 3 - 1
src/projects/business/views/Common/Health/Cert.vue

@@ -360,7 +360,9 @@
 			doRightLink() {
 				this.$router.push({
 					name: 'CommonHealthTemperatureRecord',
-					query: {}
+					query: {
+						personId: this.subForm.personId
+					}
 				})
 			},
 			//更新绿码

+ 1 - 1
src/utils/index.js

@@ -223,7 +223,7 @@ export const checkPhone = (value) => {
 	if (!value) {
 		return '手机号不能为空';
 	} else {
-		const reg = /^1(3[0-9]|4[5,7]|5[0,1,2,3,5,6,7,8,9]|6[2,5,6,7]|7[0,1,3,6,7,8]|8[0-9]|9[1,8,9])\d{8}$/
+		const reg = /^1(3[0-9]|4[5,7]|5[0,1,2,3,5,6,7,8,9]|6[2,5,6,7]|7[0,1,3,5,6,7,8]|8[0-9]|9[1,8,9])\d{8}$/
 		var result = reg.test(value);
 
 		if (result) {