diff --git a/src/views/modules/report/com_add_customer_report.vue b/src/views/modules/report/com_add_customer_report.vue index 363477f..a02ac68 100644 --- a/src/views/modules/report/com_add_customer_report.vue +++ b/src/views/modules/report/com_add_customer_report.vue @@ -1,19 +1,21 @@ diff --git a/src/views/modules/report/com_auth_customer_report.vue b/src/views/modules/report/com_auth_customer_report.vue index 37dfd95..3b9d92e 100644 --- a/src/views/modules/report/com_auth_customer_report.vue +++ b/src/views/modules/report/com_auth_customer_report.vue @@ -47,8 +47,8 @@ - 保存 - 关闭 + 保存 + 关闭 @@ -256,4 +256,25 @@ export default { padding: 0px !important; } +/*当前按钮的通用样式*/ +.customer-css .customer-bun-mid { + width: 60px; + text-align: center; +} + +.customer-css .customer-bun-min { + width: 50px; + text-align: center; +} + +.customer-css .customer-bun-max { + width: 80px; + text-align: center; +} + +/*当前按钮的通用样式*/ +.customer-css .el-button--medium { + padding: 5px 5px; +} + diff --git a/src/views/modules/report/com_auth_single_customer_report.vue b/src/views/modules/report/com_auth_single_customer_report.vue index f226c39..d5a65ca 100644 --- a/src/views/modules/report/com_auth_single_customer_report.vue +++ b/src/views/modules/report/com_auth_single_customer_report.vue @@ -45,8 +45,8 @@ - 保存 - 关闭 + 保存 + 关闭 @@ -224,4 +224,25 @@ export default { padding: 0px !important; } +/*当前按钮的通用样式*/ +.customer-css .customer-bun-mid { + width: 60px; + text-align: center; +} + +.customer-css .customer-bun-min { + width: 50px; + text-align: center; +} + +.customer-css .customer-bun-max { + width: 80px; + text-align: center; +} + +/*当前按钮的通用样式*/ +.customer-css .el-button--medium { + padding: 5px 5px; +} + diff --git a/src/views/modules/report/com_edit_customer_report_search_column.vue b/src/views/modules/report/com_edit_customer_report_search_column.vue index 0da9633..0c2d29e 100644 --- a/src/views/modules/report/com_edit_customer_report_search_column.vue +++ b/src/views/modules/report/com_edit_customer_report_search_column.vue @@ -6,21 +6,15 @@ label-width="80px"> - - - - 新增 - - - + 自动获取 - + 刷新 @@ -76,8 +70,8 @@ - 保存 - 关闭 + 保存 + 关闭 @@ -92,10 +86,9 @@ import { deleteCustomerReportSearchColumn, } from '@/api/report/com_edit_customer_report_search_column.js'; export default { - name: "com_finish_roll", data() { return { - titleCon: '查询列维护', + titleCon: '查询参数维护', reportTypeList: [], columnTypeList:[ {columnType: '文本'}, @@ -354,7 +347,7 @@ export default { margin-top: -10px; } /*fieldset下table的样式*/ -.customer-fieldset /deep/ .el-table__header th.is-leaf{ +.customer-css .el-table__header /deep/ th.is-leaf{ line-height: 16px; } @@ -362,4 +355,25 @@ export default { padding: 0px !important; } +/*当前按钮的通用样式*/ +.customer-css .customer-bun-mid { + width: 60px; + text-align: center; +} + +.customer-css .customer-bun-min { + width: 50px; + text-align: center; +} + +.customer-css .customer-bun-max { + width: 80px; + text-align: center; +} + +/*当前按钮的通用样式*/ +.customer-css .el-button--medium { + padding: 5px 5px; +} + diff --git a/src/views/modules/report/com_run_customer_report.vue b/src/views/modules/report/com_run_customer_report.vue index b1e1253..aabcb6d 100644 --- a/src/views/modules/report/com_run_customer_report.vue +++ b/src/views/modules/report/com_run_customer_report.vue @@ -36,8 +36,20 @@ - 刷新 - 关闭 + 刷新 + 关闭 + + 导出 + @@ -59,6 +71,13 @@ export default { customerReportList: [], customerColumnlArray: [], searchColumnData: [], + customerReport: [], + // 导出 start + exportData: [], + exportName: "定制报表导出", + exportFooter: [], + exportDefaultValue: "这一行这一列没有数据", + // 导出 end dataListLoading: false, } }, @@ -89,12 +108,36 @@ export default { if(data.code === 200){ this.customerReportList = data.resultMap.resultRows; this.customerColumnlArray = data.resultMap.columnRows; + this.customerReport = data.resultMap.customerReport; }else{ this.$message.error(data.msg); } }); }, + // 导出excel的方法 + fields() { + //实时修改导出文件的名称 + this.exportName = this.customerReport.reportName +"-"+ this.dayjs().format('YYYYMMDDHHmmss'); + //导出方法 + let json = "{" + this.customerColumnlArray.forEach((item, index) => { + if (index == this.customerColumnlArray.length - 1) { + json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + } else { + json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + "," + } + }) + json += "}" + let s = eval("(" + json + ")") + return s + }, + createExportData() { + // 点击导出按钮之后,开始导出数据之前的执行函数,返回值为需要下载的数据 + return this.customerReportList; + }, + + }, created() { // @@ -114,7 +157,7 @@ export default { margin-top: -10px; } /*fieldset下table的样式*/ -.customer-fieldset /deep/ .el-table__header th.is-leaf{ +.customer-css /deep/ .el-table__header th.is-leaf{ line-height: 16px; } @@ -122,4 +165,25 @@ export default { padding: 0px !important; } +/*当前按钮的通用样式*/ +.customer-css .customer-bun-mid { + width: 60px; + text-align: center; +} + +.customer-css .customer-bun-min { + width: 50px; + text-align: center; +} + +.customer-css .customer-bun-max { + width: 80px; + text-align: center; +} + +/*当前按钮的通用样式*/ +.customer-css .el-button--medium { + padding: 5px 5px; +} + diff --git a/src/views/modules/report/com_show_customer_report_search_column.vue b/src/views/modules/report/com_show_customer_report_search_column.vue index f694854..081c9c8 100644 --- a/src/views/modules/report/com_show_customer_report_search_column.vue +++ b/src/views/modules/report/com_show_customer_report_search_column.vue @@ -61,7 +61,7 @@ export default { data() { return { - titleCon: '查询列', + titleCon: '查询参数', showRunCustomerReportFlag: false, pageData: { site: this.$store.state.user.site, diff --git a/src/views/modules/report/com_update_customer_report.vue b/src/views/modules/report/com_update_customer_report.vue index 47b1c9d..8dcbdd1 100644 --- a/src/views/modules/report/com_update_customer_report.vue +++ b/src/views/modules/report/com_update_customer_report.vue @@ -1,19 +1,26 @@ diff --git a/src/views/modules/report/report_manage.vue b/src/views/modules/report/report_manage.vue index e99b531..047569e 100644 --- a/src/views/modules/report/report_manage.vue +++ b/src/views/modules/report/report_manage.vue @@ -43,7 +43,7 @@ 编辑 删除 查询参数维护 - 报表查询 + 查询 权限 @@ -79,7 +79,7 @@ @refreshCurrentPage = "refreshCurrentPage"> - + diff --git a/src/views/modules/report/user_customer_report.vue b/src/views/modules/report/user_customer_report.vue index cff83b8..3f42c2b 100644 --- a/src/views/modules/report/user_customer_report.vue +++ b/src/views/modules/report/user_customer_report.vue @@ -39,7 +39,7 @@ width="220" :label="'操作'">