工种bug修复
This commit is contained in:
@@ -172,6 +172,7 @@ const validateTel = (rule, value, callback) => {
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
skillArr: [],
|
||||
id: "",
|
||||
title: "",
|
||||
type: "",
|
||||
@@ -554,8 +555,8 @@ export default {
|
||||
},
|
||||
{
|
||||
label: "岗位名",
|
||||
prop: "worktypeIds",
|
||||
type: "tree",
|
||||
prop: "skillIds",
|
||||
type: "cascader",
|
||||
search: true,
|
||||
display: true,
|
||||
dicUrl: `/api/jobslink-api/tenant/worktypes/base/list?type=2`,
|
||||
@@ -565,6 +566,7 @@ export default {
|
||||
props: {
|
||||
label: "name",
|
||||
value: "id",
|
||||
children: "child"
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
@@ -1000,6 +1002,7 @@ export default {
|
||||
// 获取岗位名
|
||||
getWorkTypes(2).then(res => {
|
||||
console.log(res)
|
||||
this.skillArr = res.data.data;
|
||||
})
|
||||
},
|
||||
closed() {
|
||||
@@ -1040,14 +1043,28 @@ export default {
|
||||
});
|
||||
}else{
|
||||
row.address = this.$refs.selectMap.addressLocation;
|
||||
let ids = [];
|
||||
let name = [];
|
||||
this.selectedSkills.forEach((ele) => {
|
||||
ids.push(ele.id);
|
||||
name.push(ele.name);
|
||||
});
|
||||
let skillIds = ids.join(",");
|
||||
let skillNames = name.join(",");
|
||||
// let ids = [];
|
||||
// let name = [];
|
||||
// this.selectedSkills.forEach((ele) => {
|
||||
// ids.push(ele.id);
|
||||
// name.push(ele.name);
|
||||
// });
|
||||
// let skillIds = ids.join(",");
|
||||
// let skillNames = name.join(",");
|
||||
if(this.skillArr && this.skillArr.length > 0) {
|
||||
this.skillArr.forEach(item => {
|
||||
if(item.id == row.skillIds[0]) {
|
||||
row.worktypeNames = item.name
|
||||
if(item.child && item.child.length > 0) {
|
||||
item.child.forEach(item2 => {
|
||||
if(item2.id == row.skillIds[1]) {
|
||||
row.skillNames = item2.name;
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
if (this.type === "add" || this.type === "copy") {
|
||||
this.$jlEvent("trialCheck")
|
||||
.then(() => {
|
||||
@@ -1062,9 +1079,10 @@ export default {
|
||||
wageUnitCategory: row.wageUnitCategory,
|
||||
tradeId: row.tradeId,
|
||||
tradeNames: this.obj.tradeNames,
|
||||
worktypeIds: row.worktypeIds,
|
||||
skillIds: skillIds,
|
||||
skillNames: skillNames,
|
||||
worktypeIds: row.skillIds[0],
|
||||
worktypeNames: row.worktypeNames,
|
||||
skillIds: row.skillIds[1],
|
||||
skillNames: row.skillNames,
|
||||
jobDescription: row.jobDescription,
|
||||
userNature: row.userNature,
|
||||
sex: row.sex,
|
||||
@@ -1114,9 +1132,10 @@ export default {
|
||||
wageUnitCategory: row.wageUnitCategory,
|
||||
tradeId: row.tradeId,
|
||||
tradeNames: this.obj.tradeNames,
|
||||
worktypeIds: row.worktypeIds,
|
||||
skillIds: skillIds,
|
||||
skillNames: skillNames,
|
||||
worktypeIds: row.skillIds[0],
|
||||
worktypeNames: row.worktypeNames,
|
||||
skillIds: row.skillIds[1],
|
||||
skillNames: row.skillNames,
|
||||
jobDescription: row.jobDescription,
|
||||
userNature: row.userNature,
|
||||
sex: row.sex,
|
||||
|
||||
Reference in New Issue
Block a user