This commit is contained in:
熊成强 2020-11-12 09:06:34 +08:00
parent cd9022e34e
commit 75b55a7c5e
2 changed files with 21 additions and 7 deletions

View File

@ -113,12 +113,22 @@
label="考核结果" label="考核结果"
align='center' align='center'
> >
<template slot-scope="scop">
<div>
{{scop.row.allScore || '--'}}
</div>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="scoreLevel" prop="scoreLevel"
label="绩效等级" label="绩效等级"
align='center' align='center'
> >
<template slot-scope="scop">
<div>
{{scop.row.scoreLevel || '--'}}
</div>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="address" prop="address"

View File

@ -264,23 +264,27 @@ export default {
}) })
return i return i
}) : [] }) : []
const a = this.$personlGetForm(res.staffs)
const c = this.$departGetForm(res.deps)
const obj = { const obj = {
staffIds: a.value,
depIds: c.value,
id: this.$route.query.copy ? '' : res.id, id: this.$route.query.copy ? '' : res.id,
name: this.$route.query.copy ? '' : res.name name: this.$route.query.copy ? '' : res.name
} }
if (res.deps && res.deps.length !== 0) { if (res.deps && res.deps.length !== 0 && !this.$route.query.copy) {
const b = this.$personlGetForm(res.outs) const b = this.$personlGetForm(res.outs)
this.outIdsLsit = b this.outIdsLsit = b
obj.outIds = b.value obj.outIds = b.value
} }
if (!this.$route.query.copy) {
const a = this.$personlGetForm(res.staffs)
const c = this.$departGetForm(res.deps)
obj.staffIds = a.value
obj.depIds = c.value
this.personnelList = a
this.showData = c
}
// this.form.staffIds = a.value // this.form.staffIds = a.value
// this.form.depIds = c.value // this.form.depIds = c.value
this.personnelList = a
this.showData = c
this.form = obj this.form = obj
// this.form.id = this.$route.query.copy ? '' : res.id // this.form.id = this.$route.query.copy ? '' : res.id
// this.form.name = this.$route.query.copy ? '' : res.name // this.form.name = this.$route.query.copy ? '' : res.name