From 6817d22353977bda33f29e3a213fea204fa14028 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Wed, 10 Aug 2022 10:18:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1123?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/shequzhili/statics/index.vue | 60 ++++++++++--------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/src/views/modules/shequzhili/statics/index.vue b/src/views/modules/shequzhili/statics/index.vue index 396935fda..5897a5d08 100644 --- a/src/views/modules/shequzhili/statics/index.vue +++ b/src/views/modules/shequzhili/statics/index.vue @@ -13,18 +13,18 @@ --> + prop="endTime" label-width="100px"> 截止累计值 区间新增值 - - + + + + @@ -120,13 +126,6 @@ import { dateFormats } from '@/utils/index' export default { data () { return { - mixinViewModuleOptions: { - getDataListURL: '/data/stats/factAgencyUserHouseDaily/page', - getDataListIsPage: true, - deleteURL: '/data/stats/factAgencyUserHouseDaily', - deleteIsBatch: true, - exportURL: '/data/stats/factAgencyUserHouseDaily/export' - }, exportLoading: false, dataListLoading: false, optionsA: [], @@ -140,9 +139,9 @@ export default { timeRange: '', dataForm: { customerId: this.$store.state.user.customerId, - agencyId: '', - startTime: dateFormats('YYYY-mm-dd HH:MM:SS', new Date()), - endTime: '', + agencyId: this.$store.state.user.agencyId, + startTime: '', + endTime: dateFormats('YYYY-mm-dd HH:MM:SS', new Date()), type: 'end' }, total: 0, @@ -168,6 +167,7 @@ export default { this.dataForm.startTime = ""; this.dataForm.endTime = ""; } + console.log('startTime----w', this.dataForm.startTime) } }, computed: { @@ -187,13 +187,13 @@ export default { this.$refs[formName].resetFields(); this.timeRange = ""; this.dataForm.startTime = ""; - this.dataForm.endTime = ""; + this.dataForm.endTime = dateFormats('YYYY-mm-dd HH:MM:SS', new Date()) this.dataForm.type = 'end'; this.pageNo = 1 this.getTableList() }, handleSearch() { - this.dataForm.type = 1 + // this.dataForm.type = 1 this.pageNo = 1 this.getTableList() }, @@ -213,12 +213,15 @@ export default { this.dataForm.startTime = '' this.dataForm.endTime = '' if (val == 'end') { - this.dataForm.startTime = dateFormats('YYYY-mm-dd HH:MM:SS', new Date()) + this.$nextTick(() => { + this.dataForm.endTime = dateFormats('YYYY-mm-dd HH:MM:SS', new Date()) + }) + console.log('endTime----', this.dataForm.endTime) } }, exportHandle () { - const url = '/data/aggregator/org/orgProjectDetailList/export' - this.dataForm.type = 1 + const url = '/data/aggregator/datastats/nowstatsdataexport' + // this.dataForm.type = 1 this.exportLoading = true this.$http({ method: 'Post', @@ -277,12 +280,13 @@ export default { pcEventCount += item.pcEventCount projectCount += item.projectCount issueProjectCount += item.issueProjectCount - resiUicEventProjectCountserCount += item.icEventProjectCount + icEventProjectCount += item.icEventProjectCount agencyProjectCount += item.agencyProjectCount }) } this.tableData.push({ + orgName: this.$store.state.user.agencyName, resiUserCount, partyMemberCount, icEventCount, @@ -313,8 +317,8 @@ export default { const { user } = this.$store.state const _data = { ...this.dataForm, - pageNo: this.pageNo, - pageSize: this.pageSize + // pageNo: this.pageNo, + // pageSize: this.pageSize } this.$http .post('/data/aggregator/datastats/nowstatsdata', _data) @@ -322,8 +326,8 @@ export default { if (res.code !== 0) { return this.$message.error(res.msg) } else { - this.dataList = res.data.list - this.total = res.data.total + this.dataList = res.data + // this.total = res.data.total } }) .catch(() => { @@ -349,7 +353,7 @@ export default { let { agencyList, subAgencyList } = res.data // this.optionsA = res.data // console.log(this.optionsA); - this.dataForm.agencyId = agencyList.agencyId + // this.dataForm.agencyId = agencyList.agencyId const _arr = [{...agencyList, subAgencyList: [...subAgencyList] }] this.optionsA = this.deepTree(_arr) console.log('optionsA----', this.optionsA)