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