diff --git a/src/api/lawsfile/article.js b/src/api/lawsfile/article.js index 76b909d..2357f97 100644 --- a/src/api/lawsfile/article.js +++ b/src/api/lawsfile/article.js @@ -19,7 +19,7 @@ export function save(data) { export function listarticle(page, menu_id, keyword, - page_size, type) { + page_size, type,year) { return request({ url: '/api/admin/regulation/article-index', method: 'get', @@ -28,7 +28,8 @@ export function listarticle(page, menu_id, keyword, page_size, - type + type, + year } }) } diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index a76eda3..7bf7868 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -226,17 +226,21 @@
检查整改 - 责任科室 - 问题类型 + 责任科室 + 问题类型 + 检查站点
-
- - - +
+ + + +
+
+
@@ -881,9 +885,10 @@ export default { overall_month_data: {}, overall_dep_data: {}, overall_type_data: {}, - showAskData: false, + showAskData: 1, inspection_dep_data: {}, - inspection_ask_data: {}, + inspection_ask_data: {}, + inspection_site_data:{}, inspection_all_data: {}, } @@ -1473,6 +1478,26 @@ export default { barGap:'0%', }] } + // 站点统计 + let s_dep = [] + let s_total = [] + for(var s of res.sites){ + s_dep.push(s.name) + s_total.push(s.total) + } + this.inspection_site_data = { + xShow: true, + yShow: true, + rotate: 70, + x: s_dep, + list: [{ + name: "数量", + data: s_total, + type: 'bar', + unit: "件", + barGap:'0%', + }] + } // 问题类型 let ask_arr = [] for(var ask of res.type){ diff --git a/src/views/task/list/articleview.vue b/src/views/task/list/articleview.vue index 74cd28b..9a15222 100644 --- a/src/views/task/list/articleview.vue +++ b/src/views/task/list/articleview.vue @@ -7,7 +7,11 @@
- + + + +
@@ -25,12 +29,18 @@ {{scope.row.title}} + + + - - - + + + + + + diff --git a/src/views/task/list/components/addPatrol.vue b/src/views/task/list/components/addPatrol.vue index 81e7521..294cf7a 100644 --- a/src/views/task/list/components/addPatrol.vue +++ b/src/views/task/list/components/addPatrol.vue @@ -15,7 +15,7 @@ --> -