优化
This commit is contained in:
parent
618dce7a6f
commit
b88ba78603
@ -31,7 +31,7 @@ export default {
|
||||
handleBack () {
|
||||
const name = this.$route.query.name
|
||||
if (name) {
|
||||
return this.$router.replace({name: 'assessment-homeList'})
|
||||
return this.$router.replace({name: name.replace('/', '-')})
|
||||
}
|
||||
this.$router.go(-1)
|
||||
}
|
||||
|
||||
@ -255,6 +255,13 @@ export default {
|
||||
i.staffId = i.id
|
||||
i.staffName = i.name
|
||||
i.isSelect = 1
|
||||
this.GroundList = this.GroundList.map(j => {
|
||||
if (i.staffId === j.staffId) {
|
||||
i = Object.assign({}, j, i)
|
||||
j.isSelect = 1
|
||||
}
|
||||
return j
|
||||
})
|
||||
return i
|
||||
})
|
||||
const a = this.$personlGetForm(res.staffs)
|
||||
|
||||
@ -209,7 +209,7 @@ export default {
|
||||
this.$message.error(res.msg)
|
||||
return
|
||||
}
|
||||
this.$router.push({ name: 'assessment-stepList', query: { id: res.data.id, name: '1' } })
|
||||
this.$router.push({ name: 'assessment-stepList', query: { id: res.data.id, name: 'assessment/homeList' } })
|
||||
this.$message({
|
||||
message: res.msg,
|
||||
type: 'success'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user