This commit is contained in:
shijingjing
2022-05-06 17:55:25 +08:00
parent 410fec641f
commit 39bc75b0a1
2 changed files with 6 additions and 2 deletions

View File

@@ -50,7 +50,9 @@ export default {
categoryType: '1', categoryType: '1',
} }
}).then((res)=>{ }).then((res)=>{
this.list = this.current == 1? res.data.records:[...this.list,...res.data.records,] if (res?.data) {
this.list = this.current == 1? res.data.records:[...this.list,...res.data.records,]
}
}) })
}, },
toNewList(id,categoryName) { toNewList(id,categoryName) {

View File

@@ -525,8 +525,10 @@ export default {
let {name, idNumber, currentAreaId, currentAreaName} = v?.[0] || {} let {name, idNumber, currentAreaId, currentAreaName} = v?.[0] || {}
this.form = {...this.form, name, idNumber, currentAreaId, currentAreaName} this.form = {...this.form, name, idNumber, currentAreaId, currentAreaName}
this.form.sex = this.$idCardNoUtil.getIdCardInfo(idNumber)?.sex this.form.sex = this.$idCardNoUtil.getIdCardInfo(idNumber)?.sex
this.form.birthday = this.$idCardNoUtil.getIdCardInfo(idNumber)?.birthday // this.form.birthday = this.$idCardNoUtil.getIdCardInfo(idNumber)?.birthday
this.form.age = this.$calcAge(this.form.idNumber) this.form.age = this.$calcAge(this.form.idNumber)
let birth = idNumber.substr(6,8)
this.form.birthday = birth.replace(/(.{4})(.{2})/,"$1-$2-");
}, },
deep: true, deep: true,
}, },