diff --git a/src/views/userManage/register.vue b/src/views/userManage/register.vue index 347de78..2113a86 100644 --- a/src/views/userManage/register.vue +++ b/src/views/userManage/register.vue @@ -639,7 +639,6 @@ export default { onSubmit(formName) { // this.formVisible = true; - this.$refs[formName].validate((valid) => { if (valid) { if (this.registerConfigMap.companyCheckStatus) { @@ -734,8 +733,15 @@ export default { }, 1000); }, handleChange(value) { - this.inputQuery.area = - CodeToText[value[0]] + CodeToText[value[1]] + CodeToText[value[2]]; + this.inputQuery.area = CodeToText[value[0]]; + if (CodeToText[value[1]] != null && CodeToText[value[1]] != "" + && CodeToText[value[1]] != "undefined") { + this.inputQuery.area += CodeToText[value[1]]; + } + if (CodeToText[value[2]] != null && CodeToText[value[2]] != "" + && CodeToText[value[2]] != "undefined") { + this.inputQuery.area += CodeToText[value[2]]; + } this.inputQuery.areaCode = value.toString(); }, copy() {