flat:所属社区

This commit is contained in:
Apcallover
2024-06-05 16:58:38 +08:00
parent 21835e52c1
commit f338226426
30 changed files with 4215 additions and 189 deletions

View File

@@ -105,6 +105,11 @@
<u--input v-model="info.jobCompanyIndustry" border="none" placeholder="请输入所属行业" :disabled="true"
disabledColor="#ffffff"></u--input>
</u-form-item>
<u-form-item label="所属社区" prop="createDept" borderBottom labelWidth="80" ref="item1">
<custom-tree-select style="width: 100%;" ceilStyle="border: 0;" :listData="deptTreeData"
v-model="info.createDept" data-label="title" data-value="id"
boxStyle="border: 0; paddingLeft: 0;" search border placeholder="请选择所属社区" />
</u-form-item>
<u-form-item label="企业性质" prop="jobCompanyNature" borderBottom labelWidth="80" ref="item1">
<u--input v-model="info.jobCompanyNature" border="none" placeholder="请输入企业性质" :disabled="true"
disabledColor="#ffffff"></u--input>
@@ -177,7 +182,8 @@
submitInfo,
getWorktypesBaseList,
findTradeList,
getDictionary
getDictionary,
getDeptAllTree
} from '@/api/userrecruit.js'
import PickerTree from './enterpriceCertification/pickerTree.vue'
import {
@@ -186,6 +192,7 @@
export default {
data() {
return {
deptTreeData: [],
latitude: 31.05, //中心点
longitude: 104.20,
covers: [{ //marker标记位置
@@ -384,6 +391,12 @@
message: '请输入详细地址',
trigger: ['change']
},
createDept: {
type: 'array',
required: true,
message: '请选择所属社区',
trigger: ['change']
}
},
}
},
@@ -412,6 +425,7 @@
this.info.wageUnitCategory = staId
this.info.wageUnitCategoryName = staLabel
console.log(this.area)
this.getTreeDept()
this.getWorkTypes()
this.dictionary()
if (this.company) {
@@ -419,6 +433,12 @@
}
},
methods: {
async getTreeDept() {
let resData = await getDeptAllTree()
if (resData.data.code === 200) {
this.deptTreeData = resData.data.data
}
},
onBlurWage(value) {
const val = this.wallMaxAndMin
if (!val.length) {
@@ -468,6 +488,7 @@
this.info.jobCompanyNature = info.jobCompanyNature
this.info.jobCompanyDescription = info.jobCompanyDescription
this.info.callName = info.callName
this.info.createDept = [String(info.createDept)]
this.info.callTel = info.callTel
this.info.callNumber = info.callNumber
this.info.address = info.address
@@ -648,6 +669,7 @@
}
params.lon = that.longitude
params.lat = that.latitude
params.createDept = params.createDept[0]
submitInfo(params).then(res => {
if (res.data.code == 200) {
that.reset()
@@ -701,6 +723,7 @@
'jobCompanyNature',
'jobCompanyDescription',
'callName',
'createDept',
'callTel',
'callNumber',
'address'