This commit is contained in:
熊成强 2020-11-06 17:00:37 +08:00
parent 0d8104a304
commit 65d1583631
3 changed files with 11 additions and 6 deletions

View File

@ -24,7 +24,7 @@
@cancel='handleCancel' @cancel='handleCancel'
@submit="handleSubmit" @submit="handleSubmit"
:footer='true' :footer='true'
title="评分" title="驳回"
> >
<div <div
slot="content" slot="content"

View File

@ -245,11 +245,7 @@ export default {
i.isSelect = 1 i.isSelect = 1
return i return i
}) })
if (res.deps.length !== 0) {
const b = this.$personlGetForm(res.outs)
this.outIdsLsit = b
this.form.outIds = b.value
}
const a = this.$personlGetForm(res.staffs) const a = this.$personlGetForm(res.staffs)
const c = this.$departGetForm(res.deps) const c = this.$departGetForm(res.deps)
const obj = { const obj = {
@ -258,6 +254,11 @@ export default {
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.length !== 0) {
const b = this.$personlGetForm(res.outs)
this.outIdsLsit = b
obj.outIds = b.value
}
// this.form.staffIds = a.value // this.form.staffIds = a.value
// this.form.depIds = c.value // this.form.depIds = c.value
this.personnelList = a this.personnelList = a

View File

@ -93,6 +93,10 @@ export default {
} }
if (this.$route.query.copy) { if (this.$route.query.copy) {
this.templateForm.modelItems = this.templateForm.modelItems.map(i => { this.templateForm.modelItems = this.templateForm.modelItems.map(i => {
i.tagetLibItems = i.tagetLibItems.map(j => {
delete j.id
return j
})
delete i.id delete i.id
return i return i
}) })