手机号校验修改
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: [
|
||||
{
|
||||
validator: (rule, value, callback) => {
|
||||
let reg = new RegExp(
|
||||
/^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'
|
||||
)
|
||||
let reg = new RegExp(/^\d{11}$/, 'i')
|
||||
if (value && !reg.test(value)) {
|
||||
callback(new Error(this.$t('common:ruleMessage:pattern')))
|
||||
} else {
|
||||
|
|
|
@ -198,10 +198,7 @@ export default {
|
|||
BankPhoneNum: [
|
||||
{
|
||||
validator: (rule, value, callback) => {
|
||||
let reg = new RegExp(
|
||||
/^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'
|
||||
)
|
||||
let reg = new RegExp(/^\d{11}$/, 'i')
|
||||
if (value && !reg.test(value)) {
|
||||
callback(new Error(this.$t('common:ruleMessage:pattern')))
|
||||
} else {
|
||||
|
|
|
@ -193,7 +193,7 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="date"
|
||||
prop="Major"
|
||||
:label="$t('curriculumVitae:EducationalExperience:table:specialy')"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
|
@ -861,7 +861,11 @@ export default {
|
|||
let res = await getDetail(id, this.trialId)
|
||||
this.loading = false
|
||||
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) {
|
||||
this.loading = false
|
||||
|
|
Loading…
Reference in New Issue