From dda982e0cfac02cbeae7bc90280060d354b5d059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Fri, 3 Feb 2023 22:33:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xm/rpt/product/menuSort.vue | 3 +++ src/views/xm/rpt/product/questionSort.vue | 10 +++++----- src/views/xm/rpt/project/taskSort.vue | 3 +-- src/views/xm/rpt/testCase/testCaseSort.vue | 5 ++--- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/views/xm/rpt/product/menuSort.vue b/src/views/xm/rpt/product/menuSort.vue index dbb14c97..2ff800bf 100644 --- a/src/views/xm/rpt/product/menuSort.vue +++ b/src/views/xm/rpt/product/menuSort.vue @@ -208,6 +208,9 @@ if( this.filters.testCasedb && this.filters.testCasedb.id){ this.params.casedbId= this.filters.testCasedb.id } + if(this.initGroupBy){ + this.params.groupBy=this.initGroupBy + } if(this.cfg && this.cfg.id){ this.params=this.cfg.params this.title=this.cfg.title diff --git a/src/views/xm/rpt/product/questionSort.vue b/src/views/xm/rpt/product/questionSort.vue index 355d6b83..12a27024 100644 --- a/src/views/xm/rpt/product/questionSort.vue +++ b/src/views/xm/rpt/product/questionSort.vue @@ -186,11 +186,10 @@ testCasedb:null, }, params:{ - + groupBy:'handler_userid', }, title:'',//报表配置项 remark:'', //报表配置项 - groupBy:'handler_userid', groupBys:[ {id:'create_userid', name:'创建人'}, {id:'ask_userid', name:'提出人'}, @@ -245,6 +244,9 @@ if( this.filters.testCasedb && this.filters.testCasedb.id){ this.params.casedbId= this.filters.testCasedb.id } + if(this.initGroupBy){ + this.params.groupBy=this.initGroupBy + } if(this.cfg && this.cfg.id){ this.params=this.cfg.params this.title=this.cfg.title @@ -253,9 +255,7 @@ if(this.showToolBar && !this.title){ this.title="企业工作项每日趋势图" } - if(this.initGroupBy){ - this.params.groupBy=this.initGroupBy - } + this.searchXmQuestionSort() }, drawCharts() { diff --git a/src/views/xm/rpt/project/taskSort.vue b/src/views/xm/rpt/project/taskSort.vue index 72eaa954..efb426d7 100644 --- a/src/views/xm/rpt/project/taskSort.vue +++ b/src/views/xm/rpt/project/taskSort.vue @@ -129,11 +129,10 @@ testCasedb:null, }, params:{ - + groupBy:'create_userid', }, title:'',//报表配置项 remark:'', //报表配置项 - groupBy:'create_userid', groupBys:[ {id:'create_userid', name:'创建人'}, {id:'executor_userid', name:'执行人'}, diff --git a/src/views/xm/rpt/testCase/testCaseSort.vue b/src/views/xm/rpt/testCase/testCaseSort.vue index 03fea29e..5e9e4c51 100644 --- a/src/views/xm/rpt/testCase/testCaseSort.vue +++ b/src/views/xm/rpt/testCase/testCaseSort.vue @@ -155,11 +155,10 @@ caseType:'', }, params:{ - + groupBy:'menu_id', }, title:'',//报表配置项 - remark:'', //报表配置项 - groupBy:'menu_id', + remark:'', //报表配置项 groupBys:[ {id:'menu_id', name:'故事'}, {id:'cuserid', name:'负责人'},