|
@@ -151,23 +151,25 @@ export default {
|
|
|
this.get_bizArr()
|
|
|
}
|
|
|
},
|
|
|
- async sumTypeCkeck(type) { // 下拉列表的点击事件x
|
|
|
+ sumTypeCkeck(type) { // 下拉列表的点击事件x
|
|
|
this.sumType = type.name
|
|
|
- await settingUserSetBiz({ bizId: type.code })
|
|
|
this.$store.dispatch('data/setBizId', type.code)
|
|
|
- const url = window.location.href
|
|
|
- const urlArr = url.split('?')
|
|
|
- const k = urlArr[0]
|
|
|
- const appU = k.split('/')
|
|
|
- const name = appU[appU.length - 1]
|
|
|
- name === 'projectViewDetails' ? this.$router.push({ name: '项目', query: {}}) : ''
|
|
|
- name === 'taskViewDetails' ? this.$router.push({ name: '任务', query: {}}) : ''
|
|
|
- name === 'requirementDetails' ? this.$router.push({ name: '需求', query: {}}) : ''
|
|
|
- name === 'iterationDetails' ? this.$router.push({ name: '迭代', query: {}}) : ''
|
|
|
- if (name !== 'projectViewDetails' && name !== 'taskViewDetails' && name !== 'requirementDetails' && name !== 'iterationDetails') {
|
|
|
- window.location.reload()
|
|
|
+ this.settingUserSetBiz(type.code)
|
|
|
+ const name = this.$route.name
|
|
|
+ const isDetailPage = needIdList.find(item => item === name)
|
|
|
+ if (isDetailPage) {
|
|
|
+ this.$router.push({ name: name.substr(0, 2), query: { bizId: EncryptId(type.code) }})
|
|
|
+ } else {
|
|
|
+ this.$router.push({
|
|
|
+ path: this.$route.path,
|
|
|
+ query: { ...this.$route.query, bizId: EncryptId(type.code) }
|
|
|
+ })// 更新路由连接
|
|
|
+ this.$nextTick(() => { this.$router.go(0) }) // 重载页面
|
|
|
}
|
|
|
},
|
|
|
+ async settingUserSetBiz(bizId) { // 设置成员登录业务线
|
|
|
+ await settingUserSetBiz({ bizId: bizId })
|
|
|
+ },
|
|
|
async getLoginMember() { // 获取登录人员信息
|
|
|
const res = await memberGetLoginInMemberInfoByLdap()
|
|
|
this.options = res.data
|