bug更新
This commit is contained in:
@@ -269,6 +269,20 @@ const expeArr = [
|
||||
]
|
||||
]
|
||||
|
||||
const companyEnum = [
|
||||
{ value: 1, label: "机关/事业单位" },
|
||||
{ value: 2, label: "国有企业" },
|
||||
{ value: 3, label: "私营企业" },
|
||||
{ value: 4, label: "外商及港澳台投资企业" },
|
||||
{ value: 5, label: "股份制企业" },
|
||||
{ value: 6, label: "学校/下级学院" },
|
||||
{ value: 7, label: "医院" },
|
||||
{ value: 8, label: "律师事务所" },
|
||||
{ value: 9, label: "银行" },
|
||||
{ value: 10, label: "非盈利社会组织" },
|
||||
{ value: 11, label: "其它" },
|
||||
]
|
||||
|
||||
export default {
|
||||
salary,
|
||||
taskSalary,
|
||||
@@ -276,5 +290,5 @@ export default {
|
||||
natureArr,
|
||||
ageArr,
|
||||
eduArr,
|
||||
expeArr
|
||||
expeArr,companyEnum
|
||||
}
|
||||
@@ -91,7 +91,7 @@ export default {
|
||||
}) => {
|
||||
console.log('detail,', detail)
|
||||
// this.skillsId = id
|
||||
this.skillsName = `${detail.parentLabel }-${detail.parentTwoLabel}-${detail.label}`
|
||||
this.skillsName = `${detail.parentLabel}-${detail.parentTwoLabel}-${detail.label}`
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
@@ -118,20 +118,16 @@ export default {
|
||||
url: `./skillLevel?id=${this.skillsId}&worktypesId=${this.worktypesId}&maxLayer=3&type=2`
|
||||
})
|
||||
},
|
||||
submit: function () {
|
||||
console.log(this.tradeName, this.worktypesName, this.skillsName);
|
||||
submit: async function () {
|
||||
// console.log(this.tradeName, this.worktypesName, this.skillsName);
|
||||
let result = this.worktypesName.split('-');
|
||||
let result1 = this.skillsName.split('-');
|
||||
console.log(result, result1);
|
||||
|
||||
// 工种
|
||||
addSkills(this.tradeName, result[0], result[1], 0).then(res => {
|
||||
uni.navigateBack()
|
||||
})
|
||||
await addSkills(this.tradeName, result[0], result[1], 0)
|
||||
// 岗位
|
||||
addSkills(this.tradeName, `${result1[0]}、${result1[1]}`, result1[2], 1).then(res => {
|
||||
await addSkills(this.tradeName, `${result1[0]}、${result1[1]}`, result1[2], 1)
|
||||
uni.navigateBack()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,15 +42,16 @@
|
||||
border="none"></u--input>
|
||||
<u-icon slot="right" name="arrow-right"></u-icon>
|
||||
</u-form-item>
|
||||
<u-form-item label="招工描述" prop="jobDescription" borderBottom labelWidth="80"
|
||||
ref="item5">
|
||||
<u-form-item label="招工描述" prop="jobDescription" borderBottom labelWidth="80" ref="item5">
|
||||
<!-- <u--textarea v-model="info.jobDescription" placeholder="请输入招工要求"></u--textarea> -->
|
||||
<!-- <u--input v-model="info.jobDescription" disabledColor="#ffffff" border="none" placeholder="请输入招工描述"></u--input>
|
||||
<u-icon slot="right" name="arrow-right"></u-icon> -->
|
||||
|
||||
</u-form-item>
|
||||
<view>
|
||||
<u--textarea v-model="info.jobDescription" placeholder="参考示例:岗位名称:保姆 工作内容: 一日三餐,卫生打扫 工资: 200元/天 年龄要求: 25-40岁 工作经验要求: 有过住家保姆经验, 会做饭,受过高等教育的优先" count height="100" maxlength="200"></u--textarea>
|
||||
<u--textarea v-model="info.jobDescription"
|
||||
placeholder="参考示例:岗位名称:保姆 工作内容: 一日三餐,卫生打扫 工资: 200元/天 年龄要求: 25-40岁 工作经验要求: 有过住家保姆经验, 会做饭,受过高等教育的优先"
|
||||
count height="100" maxlength="200"></u--textarea>
|
||||
</view>
|
||||
<view style="font-size: 30rpx;font-weight: bold;padding: 20rpx 0 0;">人员要求</view>
|
||||
<!-- <u-form-item label="人员属性" prop="userNature" labelWidth="80" borderBottom
|
||||
@@ -95,7 +96,8 @@
|
||||
<u-icon slot="right" name="arrow-right"></u-icon> -->
|
||||
</u-form-item>
|
||||
<view>
|
||||
<u--textarea v-model="info.jobCompanyDescription" placeholder="请输入企业介绍" count height="100" maxlength="200"></u--textarea>
|
||||
<u--textarea v-model="info.jobCompanyDescription" placeholder="请输入企业介绍" count height="100"
|
||||
maxlength="200"></u--textarea>
|
||||
</view>
|
||||
<u-form-item label="联系人" prop="callName" borderBottom labelWidth="80" ref="item1">
|
||||
<u--input v-model="info.callName" border="none" placeholder="请输入联系人"></u--input>
|
||||
@@ -127,14 +129,14 @@
|
||||
<text>出淤泥而不染,濯清涟而不妖</text>
|
||||
</view>
|
||||
</u-popup> -->
|
||||
<u-picker :show="showAge" ref="agePicker" keyName="label" :columns="ageColumns"
|
||||
@confirm="ageConfirm" @cancel="ageClose" @close="ageClose">
|
||||
<u-picker :show="showAge" ref="agePicker" keyName="label" :columns="ageColumns" @confirm="ageConfirm"
|
||||
@cancel="ageClose" @close="ageClose">
|
||||
</u-picker>
|
||||
<u-picker :show="showEdu" ref="eduPicker" keyName="label" :columns="eduColumns"
|
||||
@confirm="eduConfirm" @cancel="eduClose" @close="eduClose">
|
||||
<u-picker :show="showEdu" ref="eduPicker" keyName="label" :columns="eduColumns" @confirm="eduConfirm"
|
||||
@cancel="eduClose" @close="eduClose">
|
||||
</u-picker>
|
||||
<u-picker :show="showExpe" ref="expePicker" keyName="label" :columns="expeColumns"
|
||||
@confirm="expeConfirm" @cancel="expeClose" @close="expeClose">
|
||||
<u-picker :show="showExpe" ref="expePicker" keyName="label" :columns="expeColumns" @confirm="expeConfirm"
|
||||
@cancel="expeClose" @close="expeClose">
|
||||
</u-picker>
|
||||
<u-datetime-picker :show="showStime" :value="birthday" mode="date" closeOnClickOverlay
|
||||
@confirm="stimeConfirm" @cancel="stimeClose" @close="stimeClose"></u-datetime-picker>
|
||||
@@ -145,9 +147,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import dic from '@/common/dic.js'
|
||||
import { submitInfo, getWorktypesBaseList } from '@/api/userrecruit.js'
|
||||
export default {
|
||||
import dic from '@/common/dic.js'
|
||||
import { submitInfo, getWorktypesBaseList, findTradeList } from '@/api/userrecruit.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
latitude: 31.05, //中心点
|
||||
@@ -217,7 +219,7 @@
|
||||
wageColumns: dic.taskSalary,
|
||||
tradeColumns: dic.tradeArr,
|
||||
skillColumns: [],
|
||||
skillColumnsIndex: [0,0],
|
||||
skillColumnsIndex: [0, 0],
|
||||
natureColumns: dic.natureArr,
|
||||
ageColumns: dic.ageArr,
|
||||
eduColumns: dic.eduArr,
|
||||
@@ -295,7 +297,7 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if(this.company) {
|
||||
if (this.company) {
|
||||
const { manager, companyTid, comname, companyDesc, telphone } = this.company
|
||||
this.info.jobCompanyScale = companyTid
|
||||
this.info.jobCompanyName = comname
|
||||
@@ -307,17 +309,32 @@
|
||||
},
|
||||
watch: {
|
||||
company(val) {
|
||||
if(!val) return;
|
||||
const { manager, companyTid, comname, companyDesc, telphone } = val
|
||||
if (!val) return;
|
||||
this.getDataInit()
|
||||
}
|
||||
|
||||
},
|
||||
methods: {
|
||||
async getDataInit() {
|
||||
const { companyTid, comname, manager, telphone, companyDesc, tradeId, nature } = this.company
|
||||
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
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
wageConfirm(e) {
|
||||
const {
|
||||
value
|
||||
@@ -456,8 +473,8 @@
|
||||
// }).catch(errors => {
|
||||
// uni.$u.toast('校验失败')
|
||||
// })
|
||||
const names = this.getSkilDataNameWhereId( this.skillColumnsIndex, true)
|
||||
const ids = this.getSkilDataNameWhereId( this.skillColumnsIndex, false)
|
||||
const names = this.getSkilDataNameWhereId(this.skillColumnsIndex, true)
|
||||
const ids = this.getSkilDataNameWhereId(this.skillColumnsIndex, false)
|
||||
this.info.jobType = 2
|
||||
let params = {
|
||||
...this.info,
|
||||
@@ -468,7 +485,7 @@
|
||||
}
|
||||
let that = this
|
||||
submitInfo(params).then(res => {
|
||||
if(res.data.code == 200) {
|
||||
if (res.data.code == 200) {
|
||||
that.reset()
|
||||
uni.$u.toast('发布成功')
|
||||
}
|
||||
@@ -514,7 +531,7 @@
|
||||
},
|
||||
skillsChange(e) {
|
||||
const { columnIndex, index, picker = this.$refs.uPicker } = e
|
||||
let [ index1, index2 ] = this.skillColumnsIndex
|
||||
let [index1, index2] = this.skillColumnsIndex
|
||||
switch (columnIndex) {
|
||||
case 0:
|
||||
index1 = index;
|
||||
@@ -529,19 +546,19 @@
|
||||
this.skillColumnsIndex = Indexs
|
||||
},
|
||||
getSkilDataNameWhereId(Indexs, type = true) {
|
||||
if(!this.skillData) {return}
|
||||
const [ index1, index2 ] = Indexs
|
||||
if (!this.skillData) { return }
|
||||
const [index1, index2] = Indexs
|
||||
const work1 = this.skillData[index1]
|
||||
const work2 = work1.child[index2]
|
||||
if(type) {
|
||||
if (type) {
|
||||
return [work1.name, work2.name]
|
||||
} else {
|
||||
return [work1.id, work2.id]
|
||||
}
|
||||
},
|
||||
async getWorkTypes() {
|
||||
let resData = await getWorktypesBaseList({type: 1})
|
||||
if(resData.data.code === 200) {
|
||||
let resData = await getWorktypesBaseList({ type: 1 })
|
||||
if (resData.data.code === 200) {
|
||||
const { data } = resData.data
|
||||
const arr = []
|
||||
// 1、 空间换时间策略/user/userrecruit/saveApp
|
||||
@@ -554,7 +571,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@@ -562,5 +579,5 @@
|
||||
width: 100%;
|
||||
height: 350rpx;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -306,22 +306,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async backfill(info) {
|
||||
const companyEnum = [
|
||||
{ value: 1, label: "机关/事业单位" },
|
||||
{ value: 2, label: "国有企业" },
|
||||
{ value: 3, label: "私营企业" },
|
||||
{ value: 4, label: "外商及港澳台投资企业" },
|
||||
{ value: 5, label: "股份制企业" },
|
||||
{ value: 6, label: "学校/下级学院" },
|
||||
{ value: 7, label: "医院" },
|
||||
{ value: 8, label: "律师事务所" },
|
||||
{ value: 9, label: "银行" },
|
||||
{ value: 10, label: "非盈利社会组织" },
|
||||
{ value: 11, label: "其它" },
|
||||
]
|
||||
|
||||
|
||||
console.log(info, '99999999999999999999');
|
||||
const { manager, companyTid, comname, companyDesc, telphone, tradeId, nature } = info
|
||||
this.info.jobCompanyScale = companyTid
|
||||
this.info.jobCompanyName = comname
|
||||
@@ -331,15 +315,12 @@ export default {
|
||||
if (tradeId / 1 !== -1) {
|
||||
const res = await findTradeList()
|
||||
const tenantArray = res.data.data?.filter(item => item.id === tradeId)
|
||||
console.log(res, tenantArray, '----------------');
|
||||
if (tenantArray?.length === 0) return;
|
||||
this.info.jobCompanyIndustry = tenantArray[0]?.name
|
||||
}
|
||||
|
||||
if (nature / 1 !== -1) {
|
||||
const tenantArray = companyEnum?.filter(item => item.value === nature)
|
||||
console.log(tenantArray, "00000000000000000000000");
|
||||
|
||||
const tenantArray = dic.companyEnum?.filter(item => item.value === nature)
|
||||
if (tenantArray?.length === 0) return;
|
||||
this.info.jobCompanyNature = tenantArray[0]?.label
|
||||
}
|
||||
|
||||
@@ -50,7 +50,9 @@
|
||||
<u-icon slot="right" name="arrow-right"></u-icon> -->
|
||||
</u-form-item>
|
||||
<view>
|
||||
<u--textarea v-model="info.jobDescription" placeholder="参考示例:岗位名称:保姆 工作内容: 一日三餐,卫生打扫 工资: 200元/天 年龄要求: 25-40岁 工作经验要求: 有过住家保姆经验, 会做饭,受过高等教育的优先" count height="100" maxlength="200"></u--textarea>
|
||||
<u--textarea v-model="info.jobDescription"
|
||||
placeholder="参考示例:岗位名称:保姆 工作内容: 一日三餐,卫生打扫 工资: 200元/天 年龄要求: 25-40岁 工作经验要求: 有过住家保姆经验, 会做饭,受过高等教育的优先"
|
||||
count height="100" maxlength="200"></u--textarea>
|
||||
</view>
|
||||
<view style="font-size: 30rpx;font-weight: bold;padding: 20rpx 0 0;">人员要求</view>
|
||||
<!-- <u-form-item label="人员属性" prop="userNature" labelWidth="80" borderBottom
|
||||
@@ -95,7 +97,8 @@
|
||||
<u-icon slot="right" name="arrow-right"></u-icon> -->
|
||||
</u-form-item>
|
||||
<view>
|
||||
<u--textarea v-model="info.jobCompanyDescription" placeholder="请输入企业介绍" count height="100" maxlength="200"></u--textarea>
|
||||
<u--textarea v-model="info.jobCompanyDescription" placeholder="请输入企业介绍" count height="100"
|
||||
maxlength="200"></u--textarea>
|
||||
</view>
|
||||
<u-form-item label="联系人" prop="callName" borderBottom labelWidth="80" ref="item1">
|
||||
<u--input v-model="info.callName" border="none" placeholder="请输入联系人"></u--input>
|
||||
@@ -125,14 +128,14 @@
|
||||
<!-- <u-picker :show="showNature" ref="naturePicker" :columns="natureColumns"
|
||||
@confirm="natureConfirm" @cancel="natureClose" @close="natureClose">
|
||||
</u-picker> -->
|
||||
<u-picker :show="showAge" ref="agePicker" keyName="label" :columns="ageColumns"
|
||||
@confirm="ageConfirm" @cancel="ageClose" @close="ageClose">
|
||||
<u-picker :show="showAge" ref="agePicker" keyName="label" :columns="ageColumns" @confirm="ageConfirm"
|
||||
@cancel="ageClose" @close="ageClose">
|
||||
</u-picker>
|
||||
<u-picker :show="showEdu" ref="eduPicker" keyName="label" :columns="eduColumns"
|
||||
@confirm="eduConfirm" @cancel="eduClose" @close="eduClose">
|
||||
<u-picker :show="showEdu" ref="eduPicker" keyName="label" :columns="eduColumns" @confirm="eduConfirm"
|
||||
@cancel="eduClose" @close="eduClose">
|
||||
</u-picker>
|
||||
<u-picker :show="showExpe" ref="expePicker" keyName="label" :columns="expeColumns"
|
||||
@confirm="expeConfirm" @cancel="expeClose" @close="expeClose">
|
||||
<u-picker :show="showExpe" ref="expePicker" keyName="label" :columns="expeColumns" @confirm="expeConfirm"
|
||||
@cancel="expeClose" @close="expeClose">
|
||||
</u-picker>
|
||||
<u-datetime-picker :show="showStime" :value="birthday" mode="date" closeOnClickOverlay
|
||||
@confirm="stimeConfirm" @cancel="stimeClose" @close="stimeClose"></u-datetime-picker>
|
||||
@@ -143,9 +146,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import dic from '@/common/dic.js'
|
||||
import { submitInfo, getWorktypesBaseList } from '@/api/userrecruit.js'
|
||||
export default {
|
||||
import dic from '@/common/dic.js'
|
||||
import { submitInfo, getWorktypesBaseList,findTradeList } from '@/api/userrecruit.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
latitude: 31.05, //中心点
|
||||
@@ -214,7 +217,7 @@
|
||||
wageColumns: dic.taskSalary,
|
||||
tradeColumns: dic.tradeArr,
|
||||
skillColumns: [],
|
||||
skillColumnsIndex: [0,0,0],
|
||||
skillColumnsIndex: [0, 0, 0],
|
||||
natureColumns: dic.natureArr,
|
||||
ageColumns: dic.ageArr,
|
||||
eduColumns: dic.eduArr,
|
||||
@@ -293,16 +296,32 @@
|
||||
},
|
||||
created() {
|
||||
this.getWorkTypes()
|
||||
if(this.company) {
|
||||
const { companyTid, comname, manager, telphone, companyDesc } = this.company
|
||||
if (this.company) {
|
||||
this.getDataInit()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async getDataInit() {
|
||||
const { companyTid, comname, manager, telphone, companyDesc, tradeId, nature } = this.company
|
||||
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
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
wageConfirm(e) {
|
||||
const {
|
||||
value
|
||||
@@ -435,8 +454,8 @@
|
||||
// }).catch(errors => {
|
||||
// uni.$u.toast('校验失败')
|
||||
// })
|
||||
const names = this.getSkilDataNameWhereId( this.skillColumnsIndex, true)
|
||||
const ids = this.getSkilDataNameWhereId( this.skillColumnsIndex, false)
|
||||
const names = this.getSkilDataNameWhereId(this.skillColumnsIndex, true)
|
||||
const ids = this.getSkilDataNameWhereId(this.skillColumnsIndex, false)
|
||||
this.info.jobType = 1
|
||||
let params = {
|
||||
...this.info,
|
||||
@@ -445,19 +464,19 @@
|
||||
}
|
||||
let that = this
|
||||
submitInfo(params).then(res => {
|
||||
if(res.data.code == 200) {
|
||||
if (res.data.code == 200) {
|
||||
that.reset()
|
||||
uni.$u.toast('发布成功')
|
||||
}
|
||||
})
|
||||
},
|
||||
getSkilDataNameWhereId(Indexs, type = true) {
|
||||
if(!this.skillData) {return}
|
||||
const [ index1, index2, index3 ] = Indexs
|
||||
if (!this.skillData) { return }
|
||||
const [index1, index2, index3] = Indexs
|
||||
const work1 = this.skillData[index1]
|
||||
const work2 = work1.child[index2]
|
||||
const work3 = work2.child[index3]
|
||||
if(type) {
|
||||
if (type) {
|
||||
return [work1.name, work2.name, work3.name]
|
||||
} else {
|
||||
return [work1.id, work2.id, work3.id]
|
||||
@@ -503,7 +522,7 @@
|
||||
},
|
||||
skillsChange(e) {
|
||||
const { columnIndex, index, picker = this.$refs.uPicker } = e
|
||||
let [ index1, index2, index3 ] = this.skillColumnsIndex
|
||||
let [index1, index2, index3] = this.skillColumnsIndex
|
||||
switch (columnIndex) {
|
||||
case 0:
|
||||
index1 = index;
|
||||
@@ -524,8 +543,8 @@
|
||||
this.skillColumnsIndex = Indexs
|
||||
},
|
||||
async getWorkTypes() {
|
||||
let resData = await getWorktypesBaseList({type: 2})
|
||||
if(resData.data.code === 200) {
|
||||
let resData = await getWorktypesBaseList({ type: 2 })
|
||||
if (resData.data.code === 200) {
|
||||
const { data } = resData.data
|
||||
const arr = []
|
||||
// 1、 空间换时间策略/user/userrecruit/saveApp
|
||||
@@ -538,7 +557,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@@ -546,5 +565,5 @@
|
||||
width: 100%;
|
||||
height: 350rpx;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user