优化
This commit is contained in:
parent
81b6212d25
commit
618dce7a6f
@ -31,7 +31,7 @@ export default {
|
|||||||
handleBack () {
|
handleBack () {
|
||||||
const name = this.$route.query.name
|
const name = this.$route.query.name
|
||||||
if (name) {
|
if (name) {
|
||||||
return this.$router.replace({name})
|
return this.$router.replace({name: 'assessment-homeList'})
|
||||||
}
|
}
|
||||||
this.$router.go(-1)
|
this.$router.go(-1)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -121,6 +121,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
counts: '', // 参与考核人数
|
counts: '', // 参与考核人数
|
||||||
depIds: '', // 参与部门id,逗号隔开
|
depIds: '', // 参与部门id,逗号隔开
|
||||||
|
managerIdList: [],
|
||||||
managerIds: '', // 绩效管理员ID,system_user,id,逗号隔开
|
managerIds: '', // 绩效管理员ID,system_user,id,逗号隔开
|
||||||
outIds: '', // 排除人员ids,逗号隔开
|
outIds: '', // 排除人员ids,逗号隔开
|
||||||
staffIds: '', // 参与考核员工staff_id,逗号隔开
|
staffIds: '', // 参与考核员工staff_id,逗号隔开
|
||||||
@ -184,7 +185,7 @@ export default {
|
|||||||
beforeMount () {},
|
beforeMount () {},
|
||||||
async mounted () {
|
async mounted () {
|
||||||
this.$loadingStart()
|
this.$loadingStart()
|
||||||
this.handleGetGround()
|
await this.handleGetGround()
|
||||||
const id = this.$route.query.id || ''
|
const id = this.$route.query.id || ''
|
||||||
this.id = id
|
this.id = id
|
||||||
if (id) {
|
if (id) {
|
||||||
@ -250,14 +251,12 @@ export default {
|
|||||||
try {
|
try {
|
||||||
let res = await getByIdForBasis({id})
|
let res = await getByIdForBasis({id})
|
||||||
res = res.data
|
res = res.data
|
||||||
console.log('res: ', res)
|
|
||||||
this.GroundList1 = res.managers.map(i => {
|
this.GroundList1 = res.managers.map(i => {
|
||||||
i.staffId = i.id
|
i.staffId = i.id
|
||||||
i.staffName = i.name
|
i.staffName = i.name
|
||||||
i.isSelect = 1
|
i.isSelect = 1
|
||||||
return i
|
return i
|
||||||
})
|
})
|
||||||
|
|
||||||
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 = {
|
||||||
@ -266,7 +265,7 @@ 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) {
|
if (res.deps && res.deps.length !== 0) {
|
||||||
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
|
||||||
@ -306,6 +305,7 @@ export default {
|
|||||||
this.showRight = false
|
this.showRight = false
|
||||||
},
|
},
|
||||||
handleGetChoose (item) {
|
handleGetChoose (item) {
|
||||||
|
console.log('item: ', item)
|
||||||
this[item] = true
|
this[item] = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -209,7 +209,7 @@ export default {
|
|||||||
this.$message.error(res.msg)
|
this.$message.error(res.msg)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$router.push({ name: 'assessment-stepList', query: { id: res.data.id, name: 'assessment-homeList' } })
|
this.$router.push({ name: 'assessment-stepList', query: { id: res.data.id, name: '1' } })
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: 'success'
|
type: 'success'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user