|
|
@@ -411,7 +411,7 @@ export default { |
|
|
|
let nameId; |
|
|
|
let id = this.form.leaderDept; |
|
|
|
this.department.forEach((item) => { |
|
|
|
if (item.id == e.id) { |
|
|
|
if (item.id == id) { |
|
|
|
nameId = item.principal; |
|
|
|
return; |
|
|
|
} |
|
|
@@ -469,15 +469,9 @@ export default { |
|
|
|
edit(row) { |
|
|
|
this.showEdit = true; |
|
|
|
let form = JSON.parse(JSON.stringify(row)); |
|
|
|
// form.leaderDept = form.leaderDept |
|
|
|
// .split(",") |
|
|
|
// .map((item) => parseInt(item)); |
|
|
|
form.cooperateDept = form.cooperateDept |
|
|
|
.split(",") |
|
|
|
.map((item) => parseInt(item)); |
|
|
|
// form.leaderPrincipal = form.leaderPrincipal |
|
|
|
// .split(",") |
|
|
|
// .map((item) => parseInt(item)); |
|
|
|
form.cooperatePrincipal = form.cooperatePrincipal |
|
|
|
.split(",") |
|
|
|
.map((item) => parseInt(item)); |
|
|
@@ -491,9 +485,6 @@ export default { |
|
|
|
let form = JSON.parse(JSON.stringify(this.form)); |
|
|
|
console.log(form); |
|
|
|
form.cooperateDept = form.cooperateDept && form.cooperateDept.join(","); |
|
|
|
// form.leaderDept = form.leaderDept && form.leaderDept.join(","); |
|
|
|
// form.leaderPrincipal = |
|
|
|
// form.leaderPrincipal && form.leaderPrincipal.join(","); |
|
|
|
form.cooperatePrincipal = |
|
|
|
form.cooperatePrincipal && form.cooperatePrincipal.join(","); |
|
|
|
form.otherDept = form.otherDept && form.otherDept.join(","); |