|
@@ -26,7 +26,7 @@
|
|
|
import { mapGetters } from 'vuex'
|
|
|
import { needIdList } from '@/router/needIdList'
|
|
|
import { EncryptId } from '@/utils/crypto-js.js'
|
|
|
-import { settingGetBizList } from '@/api/projectIndex'
|
|
|
+import { settingGetBizList, settingUserSetBiz } from '@/api/projectIndex'
|
|
|
let fromRoute = null
|
|
|
export default {
|
|
|
data() {
|
|
@@ -61,11 +61,15 @@ export default {
|
|
|
this.bizSelectList = this.originBizList.slice((this.curIndex - 1) * 5, this.curIndex * 5)
|
|
|
}
|
|
|
},
|
|
|
+ async settingUserSetBiz(bizId) { // 设置成员登录业务线
|
|
|
+ await settingUserSetBiz({ bizId: bizId })
|
|
|
+ },
|
|
|
handleCurrentChange() {
|
|
|
this.bizSelectList = this.originBizList.slice((this.curIndex - 1) * 5, this.curIndex * 5)
|
|
|
},
|
|
|
enter(biz) {
|
|
|
this.$store.dispatch('data/setBizId', biz.code)
|
|
|
+ this.settingUserSetBiz(biz.code)
|
|
|
if (!fromRoute || !fromRoute.name) {
|
|
|
this.$router.push({ name: '项目', query: { bizId: EncryptId(biz.code) }})
|
|
|
return
|