Commit c58e4dc3 authored by 张伯涛's avatar 张伯涛

合同管理从个人返回到个人列表,部门返回到部门列表

parent 9cc2836e
...@@ -306,6 +306,18 @@ ...@@ -306,6 +306,18 @@
import { api, statusEnum } from './mock' import { api, statusEnum } from './mock'
export default { export default {
name: 'AdminList', name: 'AdminList',
beforeRouteEnter(to, from, next) {
next(vm => {
if (from.path === '/contract/manage1/add') {
vm.activeName = JSON.parse(localStorage.getItem(('activeName')))
localStorage.removeItem('activeName')
return
} else {
vm.activeName = 'first'
return
}
})
},
data() { data() {
return { return {
HTTPApi: process.env.VUE_APP_BASE_API, HTTPApi: process.env.VUE_APP_BASE_API,
...@@ -528,6 +540,7 @@ obj=this.typeform*/ ...@@ -528,6 +540,7 @@ obj=this.typeform*/
businessTypeName: businessTypeName businessTypeName: businessTypeName
} }
}) })
localStorage.setItem('activeName', JSON.stringify(this.activeName))
}, },
checkDetail(row) { checkDetail(row) {
const number = this.updateOptions.find(item => item.label.split(' ')[0] === row.BUSINESSTYPE).type const number = this.updateOptions.find(item => item.label.split(' ')[0] === row.BUSINESSTYPE).type
...@@ -542,6 +555,7 @@ obj=this.typeform*/ ...@@ -542,6 +555,7 @@ obj=this.typeform*/
businessTypeName: businessTypeName businessTypeName: businessTypeName
} }
}) })
localStorage.setItem('activeName', JSON.stringify(this.activeName))
}, },
query() { query() {
this.queryLoading = true this.queryLoading = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment