From 3e065315347fcc1e641f832c57be75580283f99d Mon Sep 17 00:00:00 2001 From: Rui_Li <877258667@qq.com> Date: Mon, 18 Apr 2022 17:31:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../report/com_auth_single_customer_report.js | 7 + src/api/report/user_customer_report.js | 7 + .../com_auth_single_customer_report.vue | 227 +++++++++++++ .../report/com_run_customer_report.vue | 1 - src/views/modules/report/report_manage.vue | 23 +- .../modules/report/user_customer_report.vue | 311 ++++++++++++++++++ 6 files changed, 572 insertions(+), 4 deletions(-) create mode 100644 src/api/report/com_auth_single_customer_report.js create mode 100644 src/api/report/user_customer_report.js create mode 100644 src/views/modules/report/com_auth_single_customer_report.vue create mode 100644 src/views/modules/report/user_customer_report.vue diff --git a/src/api/report/com_auth_single_customer_report.js b/src/api/report/com_auth_single_customer_report.js new file mode 100644 index 0000000..ec15ca1 --- /dev/null +++ b/src/api/report/com_auth_single_customer_report.js @@ -0,0 +1,7 @@ +import { createAPI } from '@/utils/httpRequest.js' + +// 获取查询列 +export const getAuthRoles = data => createAPI('report/getAuthRoles', 'POST', data) + +// 赋值权限 +export const saveAuthCustomerReport = data => createAPI('report/saveAuthSingleCustomerReport', 'POST', data) diff --git a/src/api/report/user_customer_report.js b/src/api/report/user_customer_report.js new file mode 100644 index 0000000..e7f0456 --- /dev/null +++ b/src/api/report/user_customer_report.js @@ -0,0 +1,7 @@ +import { createAPI } from '@/utils/httpRequest.js' + +// 获取派工单的最新信息 +export const getReportTypeList = data => createAPI('report/getReportTypeList', 'POST', data) + +// 获取派工单的最新信息 +export const getCurrentPageTables = data => createAPI('report/getUserCustomerReportList', 'POST', data) diff --git a/src/views/modules/report/com_auth_single_customer_report.vue b/src/views/modules/report/com_auth_single_customer_report.vue new file mode 100644 index 0000000..f226c39 --- /dev/null +++ b/src/views/modules/report/com_auth_single_customer_report.vue @@ -0,0 +1,227 @@ + + + + + diff --git a/src/views/modules/report/com_run_customer_report.vue b/src/views/modules/report/com_run_customer_report.vue index f1bd5f8..b1e1253 100644 --- a/src/views/modules/report/com_run_customer_report.vue +++ b/src/views/modules/report/com_run_customer_report.vue @@ -87,7 +87,6 @@ export default { runCustomerReport(requestData).then(({data}) => { //判断是否成功 if(data.code === 200){ - debugger; this.customerReportList = data.resultMap.resultRows; this.customerColumnlArray = data.resultMap.columnRows; }else{ diff --git a/src/views/modules/report/report_manage.vue b/src/views/modules/report/report_manage.vue index be1d9e4..8d31d17 100644 --- a/src/views/modules/report/report_manage.vue +++ b/src/views/modules/report/report_manage.vue @@ -41,13 +41,14 @@ fixed="left" header-align="center" align="center" - width="160" + width="220" :label="'操作'"> + + + + + @@ -103,7 +111,7 @@ import updateCustomerReport from '@/views/modules/report/com_update_customer_report';/*新增自定义报表的功能*/ import editCustomerReportSearchColumn from '@/views/modules/report/com_edit_customer_report_search_column';/*新增自定义报表的功能*/ import showCustomerReportSearchColumn from '@/views/modules/report/com_show_customer_report_search_column';/*新增自定义报表的功能*/ - + import authSingleCustomerReport from '@/views/modules/report/com_auth_single_customer_report';/*单个报表赋权限*/ import { getReportTypeList, getCurrentPageTables, @@ -119,6 +127,7 @@ export default { updateCustomerReportFlag: false, editCustomerReportSearchColumnFlag: false, showCustomerReportSearchColumnFlag: false, + showAuthCustomerReportFlag: false, currentReportRow: {}, pageData: { site: this.$store.state.user.site, @@ -212,6 +221,7 @@ export default { updateCustomerReport,/*报表修改*/ editCustomerReportSearchColumn,/*查询列修改*/ showCustomerReportSearchColumn,/*显示查询列参数*/ + authSingleCustomerReport,/*单个报表赋权限*/ }, mounted() { @@ -277,6 +287,13 @@ export default { }); }, + /*给单个报表赋权限*/ + showAuthCustomerReportModal(currentRow){ + this.$nextTick(() => { + this.showAuthCustomerReportFlag = true; + this.$refs.authSingleCustomerReport.init(currentRow); + }); + }, /*设置工艺的行*/ setCurrentReportRow(row, column, event) { diff --git a/src/views/modules/report/user_customer_report.vue b/src/views/modules/report/user_customer_report.vue new file mode 100644 index 0000000..4eb590c --- /dev/null +++ b/src/views/modules/report/user_customer_report.vue @@ -0,0 +1,311 @@ + + + + + +