优化
This commit is contained in:
parent
0d8104a304
commit
65d1583631
@ -24,7 +24,7 @@
|
|||||||
@cancel='handleCancel'
|
@cancel='handleCancel'
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
:footer='true'
|
:footer='true'
|
||||||
title="评分"
|
title="驳回"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
slot="content"
|
slot="content"
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user