From 4a90626c8c35c406c882603e7e8afd62b757154a Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Wed, 27 Jul 2022 17:21:50 +0800 Subject: [PATCH 1/2] dd --- .../modules/shequzhili/statics/cEvent.vue | 356 +++++++++++ .../modules/shequzhili/statics/gridEvent.vue | 566 ++++++++++++++++++ 2 files changed, 922 insertions(+) create mode 100644 src/views/modules/shequzhili/statics/cEvent.vue create mode 100644 src/views/modules/shequzhili/statics/gridEvent.vue diff --git a/src/views/modules/shequzhili/statics/cEvent.vue b/src/views/modules/shequzhili/statics/cEvent.vue new file mode 100644 index 000000000..f4dfa36a1 --- /dev/null +++ b/src/views/modules/shequzhili/statics/cEvent.vue @@ -0,0 +1,356 @@ + + + + + + + + + + + + + + 查询 + + + + + + 总计 + 导出 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/modules/shequzhili/statics/gridEvent.vue b/src/views/modules/shequzhili/statics/gridEvent.vue new file mode 100644 index 000000000..9d01a1ebf --- /dev/null +++ b/src/views/modules/shequzhili/statics/gridEvent.vue @@ -0,0 +1,566 @@ + + + + + + + + + + + {{ data.showName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 至 + + + + + 查询 + 重置 + + + + + + + + + + + + + + + + + + + + + + From b598077aedccf1876378a0f6f18e336ce27ed585 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Thu, 28 Jul 2022 14:41:30 +0800 Subject: [PATCH 2/2] =?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/cEvent.vue | 59 +- .../modules/shequzhili/statics/gridEvent.vue | 856 +++++++----------- 2 files changed, 383 insertions(+), 532 deletions(-) diff --git a/src/views/modules/shequzhili/statics/cEvent.vue b/src/views/modules/shequzhili/statics/cEvent.vue index f4dfa36a1..3922b799a 100644 --- a/src/views/modules/shequzhili/statics/cEvent.vue +++ b/src/views/modules/shequzhili/statics/cEvent.vue @@ -1,7 +1,7 @@ - + @@ -18,6 +18,7 @@ type="daterange" clearable size="small" + :picker-options="pickerOptions" range-separator="至" start-placeholder="选择日期" end-placeholder="选择日期" @@ -26,6 +27,11 @@ 查询 + 重置 @@ -38,11 +44,12 @@ class="diy-button--reset" size="small">导出 - - - - + + + + @@ -52,7 +59,7 @@ - - - - + + @@ -98,8 +103,15 @@ export default { deleteIsBatch: true, exportURL: '/data/stats/factAgencyUserHouseDaily/export' }, + dataListLoading: false, optionsA: [], totalVisible: false, + pickerOptions: { + disabledDate(time) { + return time.getTime() > (Date.now() - 3600 * 1000 * 24); + }, + }, + dataList: [], timeRange: '', dataForm: { agencyId: '', @@ -141,7 +153,15 @@ export default { }, }, methods: { - + resetForm(formName) { + this.$refs[formName].resetFields(); + this.timeRange = ""; + this.dataForm.startTime = ""; + this.dataForm.endTime = ""; + this.dataForm.type = ""; + this.pageNo = 1 + this.getTableList() + }, handleSearch() { this.dataForm.type = 1 this.pageNo = 1 @@ -158,12 +178,12 @@ export default { this.getTableList(); }, exportHandle () { - const url = this.mixinViewModuleOptions.exportURL + const url = '/data/aggregator/org/orgProjectDetailList/export' this.$http({ - method: 'GET', + method: 'Post', url, responseType: 'blob', - params: this.dataForm + data: this.dataForm }).then(res => { // this.download(res.data, title + '.xls') if (res.headers["content-disposition"]) { @@ -213,9 +233,13 @@ export default { }, getTableList() { const { user } = this.$store.state - + const _data = { + ...this.dataForm, + pageNo: this.pageNo, + pageSize: this.pageSize + } this.$http - .post('/data/aggregator/org/orgProjectDetailList', this.dataForm) + .post('/data/aggregator/org/orgProjectDetailList', _data) .then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) @@ -230,6 +254,7 @@ export default { }, getGridList() { const { user } = this.$store.state + this.dataListLoading = true const params = { agencyId: user.agencyId, client: 'gov' @@ -252,8 +277,10 @@ export default { } }) .catch(() => { + this.dataListLoading = false return this.$message.error('网络错误') }) + this.dataListLoading = false }, deepTree(arr) { if (Array.isArray(arr)) { diff --git a/src/views/modules/shequzhili/statics/gridEvent.vue b/src/views/modules/shequzhili/statics/gridEvent.vue index 9d01a1ebf..41820606c 100644 --- a/src/views/modules/shequzhili/statics/gridEvent.vue +++ b/src/views/modules/shequzhili/statics/gridEvent.vue @@ -1,566 +1,390 @@ - - - - - - - - - - {{ data.showName }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 至 - - - - - 查询 - 重置 - - + + + + + + + + + + + + + 查询 + 重置 + + + + + + + 导出 - - + + + + + + + + + + + - - + + + + + + + + + + + + - - - - + - -