diff --git a/back/src/views/modules/abilityStatistics/index.vue b/back/src/views/modules/abilityStatistics/index.vue index b6041468..c401c161 100644 --- a/back/src/views/modules/abilityStatistics/index.vue +++ b/back/src/views/modules/abilityStatistics/index.vue @@ -58,6 +58,7 @@ @@ -218,6 +219,8 @@ @@ -284,7 +287,7 @@ import AbilityDetail from './components/abilityDetails' import applicationResources from './applicationResources.vue' import ComponentUsed from './componentUsed.vue' import qs from 'qs' -import { mapState } from 'vuex' +// import { mapState } from 'vuex' // const props = defineProps({ // processDefinitionName: { type: String, default: null }, // businessKey: { type: String, default: null }, @@ -297,6 +300,7 @@ export default { components: { componentServices, applicationResources, ComponentUsed, AbilityDetail }, data () { return { + departmentSelects: [], exportExcel: CONFIGITEM.configData[CONFIGITEM.version].apiURL + '/census/center/export', exportExcelCondition: '', exportExcelType: '', @@ -417,6 +421,13 @@ export default { } }, created () { + this.$http.get('/sys/dept/all').then(res => { + console.log('获取部门=========>', res) + this.departmentSelects = [] + res.data.data.map(val => { + this.departmentSelects.push({ label: val.name, value: val.name }) + }) + }) // 当前设定的日期时间 // const d = new Date() // let year1, month1, day1 @@ -442,7 +453,7 @@ export default { } }, computed: { - ...mapState(['departmentSelects']) + // ...mapState(['departmentSelects']) }, methods: { closeModal () {