手机号校验修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
041c23daf6
commit
55bb2493e4
|
@ -126,10 +126,7 @@ export default {
|
||||||
BankPhoneNum: [
|
BankPhoneNum: [
|
||||||
{
|
{
|
||||||
validator: (rule, value, callback) => {
|
validator: (rule, value, callback) => {
|
||||||
let reg = new RegExp(
|
let reg = new RegExp(/^\d{11}$/, 'i')
|
||||||
/^1(3[0-9]|4[01456879]|5[0-3,5-9]|6[2567]|7[0-8]|8[0-9]|9[0-3,5-9])d{8}$/,
|
|
||||||
'ig'
|
|
||||||
)
|
|
||||||
if (value && !reg.test(value)) {
|
if (value && !reg.test(value)) {
|
||||||
callback(new Error(this.$t('common:ruleMessage:pattern')))
|
callback(new Error(this.$t('common:ruleMessage:pattern')))
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -198,10 +198,7 @@ export default {
|
||||||
BankPhoneNum: [
|
BankPhoneNum: [
|
||||||
{
|
{
|
||||||
validator: (rule, value, callback) => {
|
validator: (rule, value, callback) => {
|
||||||
let reg = new RegExp(
|
let reg = new RegExp(/^\d{11}$/, 'i')
|
||||||
/^1(3[0-9]|4[01456879]|5[0-3,5-9]|6[2567]|7[0-8]|8[0-9]|9[0-3,5-9])d{8}$/,
|
|
||||||
'ig'
|
|
||||||
)
|
|
||||||
if (value && !reg.test(value)) {
|
if (value && !reg.test(value)) {
|
||||||
callback(new Error(this.$t('common:ruleMessage:pattern')))
|
callback(new Error(this.$t('common:ruleMessage:pattern')))
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -193,7 +193,7 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="date"
|
prop="Major"
|
||||||
:label="$t('curriculumVitae:EducationalExperience:table:specialy')"
|
:label="$t('curriculumVitae:EducationalExperience:table:specialy')"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -861,7 +861,11 @@ export default {
|
||||||
let res = await getDetail(id, this.trialId)
|
let res = await getDetail(id, this.trialId)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.reviewerData = res.Result
|
Object.keys(this.reviewerData).forEach((key) => {
|
||||||
|
if (res.Result[key]) {
|
||||||
|
this.reviewerData[key] = res.Result[key]
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
Loading…
Reference in New Issue