This commit is contained in:
熊成强 2020-11-10 17:54:56 +08:00
parent 81b6212d25
commit 618dce7a6f
3 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@ export default {
handleBack () {
const name = this.$route.query.name
if (name) {
return this.$router.replace({name})
return this.$router.replace({name: 'assessment-homeList'})
}
this.$router.go(-1)
}

View File

@ -121,6 +121,7 @@ export default {
return {
counts: '', //
depIds: '', // id
managerIdList: [],
managerIds: '', // IDsystem_user,id
outIds: '', // ids
staffIds: '', // staff_id
@ -184,7 +185,7 @@ export default {
beforeMount () {},
async mounted () {
this.$loadingStart()
this.handleGetGround()
await this.handleGetGround()
const id = this.$route.query.id || ''
this.id = id
if (id) {
@ -250,14 +251,12 @@ export default {
try {
let res = await getByIdForBasis({id})
res = res.data
console.log('res: ', res)
this.GroundList1 = res.managers.map(i => {
i.staffId = i.id
i.staffName = i.name
i.isSelect = 1
return i
})
const a = this.$personlGetForm(res.staffs)
const c = this.$departGetForm(res.deps)
const obj = {
@ -266,7 +265,7 @@ export default {
id: this.$route.query.copy ? '' : res.id,
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)
this.outIdsLsit = b
obj.outIds = b.value
@ -306,6 +305,7 @@ export default {
this.showRight = false
},
handleGetChoose (item) {
console.log('item: ', item)
this[item] = true
}
},

View File

@ -209,7 +209,7 @@ export default {
this.$message.error(res.msg)
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({
message: res.msg,
type: 'success'