From d3466d45213ceb5a92005fceb5dc62913a5ec668 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Tue, 18 Oct 2022 19:42:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=88=97=E8=A1=A8=E9=AB=98?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/modules/abilityStatistics/index.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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 () {