From e6a102ce3f1884fb6144b2b5cdd4e940cf2d3692 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Wed, 19 Oct 2022 11:32:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=9A=90=E8=97=8F=E7=A9=BA?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/modules/abilityStatistics/index.vue | 29 ++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/back/src/views/modules/abilityStatistics/index.vue b/back/src/views/modules/abilityStatistics/index.vue index c401c161..2add8b39 100644 --- a/back/src/views/modules/abilityStatistics/index.vue +++ b/back/src/views/modules/abilityStatistics/index.vue @@ -140,9 +140,12 @@ 能力使用明细 --> - - 明细 - + 返回
@@ -287,6 +290,7 @@ import AbilityDetail from './components/abilityDetails' import applicationResources from './applicationResources.vue' import ComponentUsed from './componentUsed.vue' import qs from 'qs' +import Template from '../devtools/template.vue' // import { mapState } from 'vuex' // const props = defineProps({ // processDefinitionName: { type: String, default: null }, @@ -297,9 +301,10 @@ import qs from 'qs' // showType: { type: String, default: null }, // }) export default { - components: { componentServices, applicationResources, ComponentUsed, AbilityDetail }, + components: { componentServices, applicationResources, ComponentUsed, AbilityDetail, Template }, data () { return { + checked: false, departmentSelects: [], exportExcel: CONFIGITEM.configData[CONFIGITEM.version].apiURL + '/census/center/export', exportExcelCondition: '', @@ -391,6 +396,7 @@ export default { { name: '会议室', value: 6 } ], tableData: [], + tableDataClone: [], tableData2: [ { approveStatus: '', @@ -456,6 +462,15 @@ export default { // ...mapState(['departmentSelects']) }, methods: { + chagneCheckbox () { + if (this.checked) { + this.tableData = this.tableDataClone.filter(val => val.count !== 0) + this.total = this.tableData.length + } else { + this.tableData = this.tableDataClone + this.total = this.tableData.length + } + }, closeModal () { this.detailsVisible = false }, @@ -550,6 +565,7 @@ export default { parseInt(result[i].hys) } this.tableData = res.data.data + this.tableDataClone = res.data.data this.total = res.data.data.total this.exportExcelCondition = qs.stringify({ approveStatus: this.status, @@ -614,6 +630,7 @@ export default { parseInt(result[i].hys) } this.tableData = res.data.data + this.tableDataClone = res.data.data this.total = res.data.data.total this.exportExcelCondition = qs.stringify({ approveStatus: this.status, @@ -694,6 +711,7 @@ export default { .then((res) => { console.log('111111', this.tableData, res.data.data) this.tableData = res.data.data + this.tableDataClone = res.data.data this.total = res.data.data.total this.exportExcelCondition = qs.stringify({ approveStatus: this.status, @@ -731,6 +749,7 @@ export default { }) .then((res) => { this.tableData = res.data.data + this.tableDataClone = res.data.data this.total = res.data.data.total this.exportExcelCondition = qs.stringify({ approveStatus: this.status, @@ -838,6 +857,7 @@ export default { // }, // 选择发布or使用表格 handleChose (index) { + this.checked = false this.departmentId = index if (index === 1) { if (this.choseId === 0) { @@ -910,6 +930,7 @@ export default { }, // 返回按钮 goToBack () { + this.checked = false // departmentId 1,3 2,4 两个值共同判断 this.detailFlag = !this.detailFlag if (this.departmentId === 3) {