flat: 修改添加

This commit is contained in:
Apcallover
2024-05-11 16:13:50 +08:00
parent da1a63a819
commit 4913bb2a2e
5 changed files with 48 additions and 80 deletions

View File

@@ -98,10 +98,12 @@
placeholder="请输入企业信用代码"></u--input>
</u-form-item>
<u-form-item label="所属行业" prop="jobCompanyIndustry" borderBottom labelWidth="80" ref="item1">
<u--input v-model="info.jobCompanyIndustry" border="none" placeholder="请输入所属行业"></u--input>
<u--input v-model="info.jobCompanyIndustry" border="none" :disabled="true" disabledColor="#ffffff"
placeholder="请输入所属行业"></u--input>
</u-form-item>
<u-form-item label="企业性质" prop="jobCompanyNature" borderBottom labelWidth="80" ref="item1">
<u--input v-model="info.jobCompanyNature" border="none" placeholder="请输入企业性质"></u--input>
<u--input v-model="info.jobCompanyNature" border="none" :disabled="true" disabledColor="#ffffff"
placeholder="请输入企业性质"></u--input>
</u-form-item>
<u-form-item label="企业介绍" labelWidth="80" ref="item1"></u-form-item>
<view>
@@ -482,33 +484,16 @@
this.info.callTel = info.callTel
this.info.callNumber = info.callNumber
this.info.address = info.address
return
}
const {
manager,
companyTid,
comname,
companyDesc,
telphone,
tradeId,
nature
} = info
this.info.jobCompanyScale = companyTid
this.info.jobCompanyName = comname
this.info.callName = manager
this.info.callTel = telphone
this.info.jobCompanyDescription = companyDesc
if (tradeId / 1 !== -1) {
const res = await findTradeList()
const tenantArray = res.data.data?.filter(item => item.id === tradeId)
if (tenantArray?.length === 0) return;
this.info.jobCompanyIndustry = tenantArray[0]?.name
}
if (nature / 1 !== -1) {
const tenantArray = dic.companyEnum?.filter(item => item.value === nature)
if (tenantArray?.length === 0) return;
this.info.jobCompanyNature = tenantArray[0]?.label
} else {
this.info.jobCompanyScale = info.companyTid
this.info.jobCompanyName = info.comname
this.info.callName = info.manager
this.info.callTel = info.telphone
this.info.jobCompanyDescription = info.companyDesc
this.info.jobCompanyNature = info.companyNature
// this.info.tradeId = info.tradeId
// this.info.tradeNames = info.tradeNames
this.info.jobCompanyIndustry = info.tradeNames
}
},
wageConfirm(e) {
@@ -537,11 +522,6 @@
this.info.skillNames = this.getSkilDataNameWhereId(indexs).join('-')
this.showSkills = false
},
// natureConfirm(e) {
// const { value } = e
// this.info.userNature = value[0]
// this.showNature = false
// },
ageConfirm(e) {
const {
value
@@ -573,9 +553,6 @@
ageClose() {
this.showAge = false
},
// natureClose() {
// this.showNature = false
// },
skillClose() {
this.showSkills = false
},