diff --git a/back/src/views/modules/abilityStatistics/index.vue b/back/src/views/modules/abilityStatistics/index.vue index bc35e440..1175ca5b 100644 --- a/back/src/views/modules/abilityStatistics/index.vue +++ b/back/src/views/modules/abilityStatistics/index.vue @@ -353,12 +353,12 @@ export default { { name: '应用资源', value: 5 }, { name: '会议室', value: 6 } ], // 类型备选列表 - typeOptions1: [//能力上架隐藏会议室 + typeOptions1: [// 能力上架隐藏会议室 { name: '智能算法', value: 1 }, { name: '图层服务', value: 2 }, { name: '开发组件', value: 3 }, { name: '业务组件', value: 4 }, - { name: '应用资源', value: 5 }, + { name: '应用资源', value: 5 } ], // 类型备选列表 detailFlag: false, // 明细返回按钮显示标志位 @@ -389,13 +389,18 @@ export default { }, mounted () { // this.getFirstTree() - if (this.departmentId === 1) { - this.handleChose(3) - // this.departmentId = 1; - } else if (this.departmentId === 2) { + console.log('this.$route.query.Id;', this.$route.query.type) + if (this.$route.query.type === 'use') { this.handleChose(4) - // this.departmentId = 2; } else { + if (this.departmentId === 1) { + this.handleChose(3) + // this.departmentId = 1; + } else if (this.departmentId === 2) { + this.handleChose(4) + // this.departmentId = 2; + } else { + } } }, computed: { diff --git a/front/src/views/abilityStatistics/components/AbilityTotal.vue b/front/src/views/abilityStatistics/components/AbilityTotal.vue index 66dfc5bd..1fa7e036 100644 --- a/front/src/views/abilityStatistics/components/AbilityTotal.vue +++ b/front/src/views/abilityStatistics/components/AbilityTotal.vue @@ -109,7 +109,7 @@ break case '资源申请量': window.open( - window.SITE_CONFIG.backUrl + '/#/abilityStatistics-index', + window.SITE_CONFIG.backUrl + '/#/abilityStatistics-index?type=use', '_blank' ) break