flat: 暂存
This commit is contained in:
@@ -385,6 +385,12 @@
|
||||
default: null,
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
company(val) {
|
||||
if (!val) return;
|
||||
this.getDataInit(val)
|
||||
}
|
||||
},
|
||||
components: {
|
||||
PickerTree
|
||||
},
|
||||
@@ -402,7 +408,7 @@
|
||||
this.getWorkTypes()
|
||||
this.dictionary()
|
||||
if (this.company) {
|
||||
this.getDataInit()
|
||||
this.getDataInit(this.company)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -431,7 +437,35 @@
|
||||
this.wallMaxAndMin = arr
|
||||
}
|
||||
},
|
||||
async getDataInit() {
|
||||
async getDataInit(info) {
|
||||
if (info.reviewState === 9) {
|
||||
this.info.wage = info.wage
|
||||
this.info.jobName = info.jobName
|
||||
this.info.stime = info.stime
|
||||
this.info.etime = info.etime
|
||||
this.info.peopleNum = info.peopleNum
|
||||
this.info.tradeId = info.tradeId
|
||||
this.info.tradeNames = info.tradeNames
|
||||
this.info.worktypeIds = info.worktypeIds
|
||||
this.info.skillNames = info.skillNames
|
||||
this.info.jobDescription = info.jobDescription
|
||||
this.info.ageDesc = info.ageDesc
|
||||
this.info.education = info.education
|
||||
this.info.educationLabel = dic.eduArr[0].filter((vitem) => vitem.value === info.education)[0]
|
||||
.label
|
||||
this.info.experienceDesc = info.experienceDesc
|
||||
this.info.cityId = info.cityId
|
||||
this.info.jobCompanyName = info.jobCompanyName
|
||||
this.info.jobCompanyScale = info.jobCompanyScale
|
||||
this.info.jobCompanyIndustry = info.jobCompanyIndustry
|
||||
this.info.jobCompanyNature = info.jobCompanyNature
|
||||
this.info.jobCompanyDescription = info.jobCompanyDescription
|
||||
this.info.callName = info.callName
|
||||
this.info.callTel = info.callTel
|
||||
this.info.callNumber = info.callNumber
|
||||
this.info.address = info.address
|
||||
return
|
||||
}
|
||||
const {
|
||||
companyTid,
|
||||
comname,
|
||||
@@ -613,6 +647,10 @@
|
||||
worktypeIds: ids.join(','),
|
||||
worktypeNames: names.join(',')
|
||||
}
|
||||
console.log(this.company)
|
||||
if (this.company.reviewState === 9) {
|
||||
params.id = this.company.id
|
||||
}
|
||||
let that = this
|
||||
this.$refs.form1.validate().then(res => {
|
||||
if (!this.info.wageUnitCategory) {
|
||||
|
||||
Reference in New Issue
Block a user