Commit 77774844 authored by 王勇's avatar 王勇 Committed by jingnan

班组添加人员增加技能点

parent 8eb98bd0
...@@ -83,6 +83,12 @@ export default { ...@@ -83,6 +83,12 @@ export default {
} }
try { try {
await this.$api.searchApi('DxPostMemberLink', params).then(post => { await this.$api.searchApi('DxPostMemberLink', params).then(post => {
if (form.hasOwnProperty('workCode')) {
form.workCode.sort(function(a, b) {
return parseInt(a.substring(a.lastIndexOf('(') + 1, a.lastIndexOf(')'))) - parseInt(b.substring(b.lastIndexOf('(') + 1, b.lastIndexOf(')')))
})
form.workCode = form.workCode.join(',')
}
if (post.items.content.length) { if (post.items.content.length) {
const postList = post.items.content[0] const postList = post.items.content[0]
tableDataList.push({ tableDataList.push({
...@@ -91,6 +97,7 @@ export default { ...@@ -91,6 +97,7 @@ export default {
dxUserInfoId: user.id, dxUserInfoId: user.id,
isSkillLeader: form.isSkillLeader, isSkillLeader: form.isSkillLeader,
postValidity: form.postValidity, postValidity: form.postValidity,
workCode: form.workCode,
remark: form.remark, remark: form.remark,
sealNo: form.sealNo sealNo: form.sealNo
}) })
...@@ -100,6 +107,7 @@ export default { ...@@ -100,6 +107,7 @@ export default {
dxUserInfoId: user.id, dxUserInfoId: user.id,
isSkillLeader: form.isSkillLeader, isSkillLeader: form.isSkillLeader,
postValidity: form.postValidity, postValidity: form.postValidity,
workCode: form.workCode,
remark: form.remark, remark: form.remark,
sealNo: form.sealNo sealNo: form.sealNo
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment