体验官修改
This commit is contained in:
@@ -50,11 +50,10 @@ Page({
|
||||
*/
|
||||
eitInfo(id) {
|
||||
wx.$api.recruit.Edit(id).then(res => {
|
||||
console.log(res)
|
||||
let typeValue = res.data.types.findIndex(val=> val.experience_type_id == res.data.enroll.experience_type.experience_type_id)
|
||||
let areasValue = res.data.provinces.findIndex(val=> val.name == res.data.province.name),
|
||||
cityValue = res.data.cities.findIndex(val=> val.name == res.data.city.name),
|
||||
regiValue = res.data.districts.findIndex(val=> val.name == res.data.district.name)
|
||||
let areasValue = res.data.provinces.findIndex(val=> val.name == res.data.express.province.name),
|
||||
cityValue = res.data.cities.findIndex(val=> val.name == res.data.express.city.name),
|
||||
regiValue = res.data.districts.findIndex(val=> val.name == res.data.express.district.name)
|
||||
this.setData({
|
||||
enrollData : res.data.enroll,
|
||||
typesIndex : typeValue,
|
||||
@@ -65,9 +64,9 @@ Page({
|
||||
areaIndex : areasValue,
|
||||
cityIndex : cityValue,
|
||||
regiIndex : regiValue,
|
||||
areaId : res.data.province.region_id,
|
||||
cityId : res.data.city.region_id,
|
||||
regiId : res.data.district.region_id,
|
||||
areaId : res.data.express.province.region_id,
|
||||
cityId : res.data.express.city.region_id,
|
||||
regiId : res.data.express.district.region_id
|
||||
})
|
||||
}).catch(err => {})
|
||||
},
|
||||
@@ -188,7 +187,10 @@ Page({
|
||||
let data = {
|
||||
name : value.name,
|
||||
address : value.address,
|
||||
experience_type_id : this.data.typesArr[this.data.typesIndex].experience_type_id
|
||||
experience_type_id : this.data.typesArr[this.data.typesIndex].experience_type_id,
|
||||
province_id : this.data.areaId,
|
||||
city_id : this.data.cityId,
|
||||
district_id : this.data.regiId,
|
||||
}
|
||||
this.setData({
|
||||
disabled: true
|
||||
|
||||
Reference in New Issue
Block a user