|
@@ -325,7 +325,7 @@
|
|
|
this.checkFullData()
|
|
this.checkFullData()
|
|
|
this.submitRegisterData()
|
|
this.submitRegisterData()
|
|
|
} else {
|
|
} else {
|
|
|
- this.initEnterpriseData()
|
|
|
|
|
|
|
+ this.initEnterpriseData(val)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -363,7 +363,10 @@
|
|
|
this.data.fax = val.fax || ''
|
|
this.data.fax = val.fax || ''
|
|
|
this.data.logoUrl = val.logoImage || ''
|
|
this.data.logoUrl = val.logoImage || ''
|
|
|
this.data.profession = val.profession || ''
|
|
this.data.profession = val.profession || ''
|
|
|
- this.data.tagsData = val.tags || []
|
|
|
|
|
|
|
+// this.data.tagsData = val.tags || []
|
|
|
|
|
+ if (typeof val.tags === 'string' || !val.tags) {
|
|
|
|
|
+ this.data.tagsData = val.tags.split(',') || []
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
initSelfData: function (val) {
|
|
initSelfData: function (val) {
|
|
|
this.data.name = val.name || ''
|
|
this.data.name = val.name || ''
|
|
@@ -378,7 +381,11 @@
|
|
|
this.data.fax = val.fax || ''
|
|
this.data.fax = val.fax || ''
|
|
|
this.data.logoUrl = val.logoUrl || ''
|
|
this.data.logoUrl = val.logoUrl || ''
|
|
|
this.data.profession = val.profession || ''
|
|
this.data.profession = val.profession || ''
|
|
|
- this.data.tagsData = val.tagsData || []
|
|
|
|
|
|
|
+ if (typeof val.tagsData === 'string' || !val.tagsData) {
|
|
|
|
|
+ this.data.tagsData = val.tagsData.split(',') || []
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.data.tagsData = val.tagsData || []
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
sectionChange: function (type) {
|
|
sectionChange: function (type) {
|
|
|
if (this.loginData.isSelf && !this.isValid) {
|
|
if (this.loginData.isSelf && !this.isValid) {
|