|
@@ -538,42 +538,62 @@ var vm = new Vue({
|
|
|
}
|
|
|
var result = checkRequiredKeys(checkKeys, res.info)
|
|
|
res.info.interest = interest
|
|
|
- if (result) {
|
|
|
- callback && callback()
|
|
|
- _this.formAjax(_this.source, res.info)
|
|
|
- } else if (res.data) {
|
|
|
- _this.isForce = res.data.fource
|
|
|
- if (res.data.retainedCapital) {
|
|
|
- _this.showForm = true
|
|
|
- // 当前头部背景图
|
|
|
- _this.isSelfHeader()
|
|
|
- // _this.changeTop()
|
|
|
- if (res.info) {
|
|
|
- echoRequiredValues(_this.form, res.info, ['name', 'phone', 'mail', 'branch'])
|
|
|
- // 原有赋值回显逻辑
|
|
|
- _this.form.oldPhone = res.info.phone ? res.info.phone : ''
|
|
|
- _this.form.companyName = res.info.company ? res.info.company : ''
|
|
|
- _this.form.companyType = res.info.companyType ? res.info.companyType.split(',') : []
|
|
|
- if (res.info.position) {
|
|
|
- if (jobJson.indexOf(res.info.position) == -1) {
|
|
|
- // _this.form.job = '其他'
|
|
|
- // _this.form.otherJob = res.data.position.replace('其他/', '')
|
|
|
- _this.form.job = ''
|
|
|
- _this.form.otherJob = ''
|
|
|
- } else {
|
|
|
- _this.form.job = res.info.position
|
|
|
- }
|
|
|
- } else {
|
|
|
- _this.form.job = ''
|
|
|
- }
|
|
|
+ _this.showForm = true
|
|
|
+ // 当前头部背景图
|
|
|
+ _this.isSelfHeader()
|
|
|
+ if (res.info) {
|
|
|
+ echoRequiredValues(_this.form, res.info, ['name', 'phone', 'mail', 'branch'])
|
|
|
+ // 原有赋值回显逻辑
|
|
|
+ _this.form.oldPhone = res.info.phone ? res.info.phone : ''
|
|
|
+ _this.form.companyName = res.info.company ? res.info.company : ''
|
|
|
+ _this.form.companyType = res.info.companyType ? res.info.companyType.split(',') : []
|
|
|
+ if (res.info.position) {
|
|
|
+ if (jobJson.indexOf(res.info.position) == -1) {
|
|
|
+ _this.form.job = ''
|
|
|
+ _this.form.otherJob = ''
|
|
|
+ } else {
|
|
|
+ _this.form.job = res.info.position
|
|
|
}
|
|
|
} else {
|
|
|
- callback && callback()
|
|
|
- // 缺陷出现场景为:在其他页面留过资,但没有邮箱信息(user表也没有存邮箱字段),当前source也已留过资(是否需要留资字段返回为false)
|
|
|
- // 如出现改场景 则会一直提交(更新)不了留资信息, 引次此处也需要再次提交
|
|
|
- // _this.formAjax(_this.source, res.info)
|
|
|
+ _this.form.job = ''
|
|
|
}
|
|
|
}
|
|
|
+ // if (result) {
|
|
|
+ // callback && callback()
|
|
|
+ // _this.formAjax(_this.source, res.info)
|
|
|
+ // } else if (res.data) {
|
|
|
+ // _this.isForce = res.data.fource
|
|
|
+ // if (res.data.retainedCapital) {
|
|
|
+ // _this.showForm = true
|
|
|
+ // // 当前头部背景图
|
|
|
+ // _this.isSelfHeader()
|
|
|
+ // // _this.changeTop()
|
|
|
+ // if (res.info) {
|
|
|
+ // echoRequiredValues(_this.form, res.info, ['name', 'phone', 'mail', 'branch'])
|
|
|
+ // // 原有赋值回显逻辑
|
|
|
+ // _this.form.oldPhone = res.info.phone ? res.info.phone : ''
|
|
|
+ // _this.form.companyName = res.info.company ? res.info.company : ''
|
|
|
+ // _this.form.companyType = res.info.companyType ? res.info.companyType.split(',') : []
|
|
|
+ // if (res.info.position) {
|
|
|
+ // if (jobJson.indexOf(res.info.position) == -1) {
|
|
|
+ // // _this.form.job = '其他'
|
|
|
+ // // _this.form.otherJob = res.data.position.replace('其他/', '')
|
|
|
+ // _this.form.job = ''
|
|
|
+ // _this.form.otherJob = ''
|
|
|
+ // } else {
|
|
|
+ // _this.form.job = res.info.position
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // _this.form.job = ''
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // callback && callback()
|
|
|
+ // // 缺陷出现场景为:在其他页面留过资,但没有邮箱信息(user表也没有存邮箱字段),当前source也已留过资(是否需要留资字段返回为false)
|
|
|
+ // // 如出现改场景 则会一直提交(更新)不了留资信息, 引次此处也需要再次提交
|
|
|
+ // // _this.formAjax(_this.source, res.info)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -697,7 +717,7 @@ var vm = new Vue({
|
|
|
brightKeyword: function (val) {
|
|
|
var name = this.form.companyName
|
|
|
if (val.indexOf(name) !== -1) {
|
|
|
- return val.replace(name, "<span style='color:#2ABED1;'>" + name + "</span")
|
|
|
+ return val.replace(name, "<span style='color:#2ABED1;'>" + name + "</span>")
|
|
|
} else {
|
|
|
return val
|
|
|
}
|