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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+ 报表查询
+
+
+
+
+ {{scope.row[item.columnProp]}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+