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 () { 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)
} }

View File

@ -121,6 +121,7 @@ export default {
return { return {
counts: '', // counts: '', //
depIds: '', // id depIds: '', // id
managerIdList: [],
managerIds: '', // IDsystem_user,id managerIds: '', // IDsystem_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
} }
}, },

View File

@ -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'