修改使用字符串比较国籍编码问题

This commit is contained in:
mengxiaolong
2020-12-16 15:55:26 +08:00
parent 5bb72f5046
commit cb9f342a2c

View File

@@ -711,7 +711,10 @@ export default {
},
setMarriageStatus() {
this.isMarriageStatusShow = true
this.columns = [{ id: 1, text: '已婚' }, { id: 2, text: '单身' }]
this.columns = [
{ id: 1, text: '已婚' },
{ id: 2, text: '单身' }
]
},
//监听名字变化
nameChange(name) {
@@ -772,7 +775,10 @@ export default {
} /*else if (pickerType == '3') {
this.columns = DataDictionary.degree
} */ else if (pickerType == '4') {
this.columns = [{ id: 0, text: '有' }, { id: 1, text: '无' }]
this.columns = [
{ id: 0, text: '有' },
{ id: 1, text: '无' }
]
} else if (pickerType == '5') {
this.columns = DataDictionary.taxIdentity
} /* else if (pickerType == '6') {
@@ -1392,7 +1398,7 @@ export default {
// 通过国籍判断 证件是否符合要求
// 如果是国籍选择中国大陆
if (this.userInfo.nativeplace <= '4') {
if (Number(this.userInfo.nativeplace) <= 4) {
// “身份证”或“台湾居民来往大陆通行证”或“港澳居民来往内地通行证”
let obj = {
'1': true,