Browse Source

修改

master
yangzhou-cyber 3 years ago
parent
commit
45d1c59078
1 changed files with 1 additions and 10 deletions
  1. +1
    -10
      src/views/second/taskSummary/reward.vue

+ 1
- 10
src/views/second/taskSummary/reward.vue View File

@@ -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(",");

Loading…
Cancel
Save