From 44ffb9af47cc978257afcd7422190b6e753f57c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Mon, 1 Aug 2022 20:37:01 +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 --- .../xm/core/xmTestPlan/rpt/CompsCard.vue | 51 +-- .../xmTestPlan/rpt/biz/questionAttDist.vue | 318 ++++++++++++++++++ .../rpt/biz/questionDayAccumulate.vue | 259 ++++++++++++++ .../xmTestPlan/rpt/biz/questionDayTrend.vue | 257 ++++++++++++++ .../core/xmTestPlan/rpt/biz/questionSort.vue | 269 +++++++++++++++ 5 files changed, 1118 insertions(+), 36 deletions(-) create mode 100644 src/views/xm/core/xmTestPlan/rpt/biz/questionAttDist.vue create mode 100644 src/views/xm/core/xmTestPlan/rpt/biz/questionDayAccumulate.vue create mode 100644 src/views/xm/core/xmTestPlan/rpt/biz/questionDayTrend.vue create mode 100644 src/views/xm/core/xmTestPlan/rpt/biz/questionSort.vue diff --git a/src/views/xm/core/xmTestPlan/rpt/CompsCard.vue b/src/views/xm/core/xmTestPlan/rpt/CompsCard.vue index c760d3a8..d4a7b1f7 100644 --- a/src/views/xm/core/xmTestPlan/rpt/CompsCard.vue +++ b/src/views/xm/core/xmTestPlan/rpt/CompsCard.vue @@ -52,6 +52,10 @@ import { mapGetters } from 'vuex' import XmTestPlanMng from '@/views/xm/core/xmTestPlan/XmTestPlanMng' import CompsSet from '@/views/xm/core/xmTestPlan/rpt/CompsSet' import XmQuestionAgeDist from '@/views/xm/core/xmTestPlan/rpt/biz/questionAgeDist' +import xmQuestionDayTrend from '@/views/xm/core/xmTestPlan/rpt/biz/questionDayTrend' +import xmQuestionDayAccumulate from '@/views/xm/core/xmTestPlan/rpt/biz/questionDayAccumulate' +import xmQuestionAttDist from '@/views/xm/core/xmTestPlan/rpt/biz/questionAttDist' +import xmQuestionSort from '@/views/xm/core/xmTestPlan/rpt/biz/questionSort' import { initDicts,listXmRptConfig, delXmRptConfig, batchDelXmRptConfig,editSomeFieldsXmRptConfig } from '@/api/xm/core/xmRptConfig'; @@ -61,6 +65,10 @@ export default { GridItem: VueGridLayout.GridItem, XmTestPlanMng, XmQuestionAgeDist, + xmQuestionDayTrend, + xmQuestionDayAccumulate, + xmQuestionAttDist, + xmQuestionSort, CompsSet, }, @@ -87,48 +95,19 @@ export default { maxTableHeight:300, // 布局位置数据 layout: [ - { - // x: (this.layout.length * 6) % (this.layoutColNum || 12), - x: 0, - // y: this.layout.length + (this.layoutColNum || 12), - y: 12, - w: 12, - h: 4, - i: 0, - compId:'xm-test-plan-mng', - }, - { - // x: (this.layout.length * 6) % (this.layoutColNum || 12), - x: 0, - // y: this.layout.length + (this.layoutColNum || 12), - y: 12, - w: 12, - h: 4, - i: 1, - compId:'xm-question-age-dist', - } + { i: 0, x: 0, y: 12, w: 12, h: 4, compId:'XmQuestionAgeDist', }, + { i: 1, x: 0, y: 12, w: 12, h: 4, compId:'xmQuestionDayTrend', }, + { i: 2, x: 0, y: 12, w: 12, h: 4, compId:'xmQuestionDayAccumulate', }, + { i: 3, x: 0, y: 12, w: 12, h: 4, compId:'xmQuestionAttDist', }, + { i: 4, x: 0, y: 12, w: 12, h: 4, compId:'xmQuestionSort', }, + ], // 布局列数 layoutColNum: 12, } }, - methods: { - addItem: function(element, index) { - this.layout.push( - { - ...element, - // x: (this.layout.length * 6) % (this.layoutColNum || 12), - x: 0, - // y: this.layout.length + (this.layoutColNum || 12), - y: 12, - w: 12, - h: 4, - i: index, - compId:'xm-test-plan-mng', - } - ) - }, + methods: { getXmRptConfig(){ if(!this.bizId){ return; diff --git a/src/views/xm/core/xmTestPlan/rpt/biz/questionAttDist.vue b/src/views/xm/core/xmTestPlan/rpt/biz/questionAttDist.vue new file mode 100644 index 00000000..98dfc5a1 --- /dev/null +++ b/src/views/xm/core/xmTestPlan/rpt/biz/questionAttDist.vue @@ -0,0 +1,318 @@ + + + + + \ No newline at end of file diff --git a/src/views/xm/core/xmTestPlan/rpt/biz/questionDayAccumulate.vue b/src/views/xm/core/xmTestPlan/rpt/biz/questionDayAccumulate.vue new file mode 100644 index 00000000..907ffa6b --- /dev/null +++ b/src/views/xm/core/xmTestPlan/rpt/biz/questionDayAccumulate.vue @@ -0,0 +1,259 @@ + + + + + \ No newline at end of file diff --git a/src/views/xm/core/xmTestPlan/rpt/biz/questionDayTrend.vue b/src/views/xm/core/xmTestPlan/rpt/biz/questionDayTrend.vue new file mode 100644 index 00000000..f204887b --- /dev/null +++ b/src/views/xm/core/xmTestPlan/rpt/biz/questionDayTrend.vue @@ -0,0 +1,257 @@ + + + + + \ No newline at end of file diff --git a/src/views/xm/core/xmTestPlan/rpt/biz/questionSort.vue b/src/views/xm/core/xmTestPlan/rpt/biz/questionSort.vue new file mode 100644 index 00000000..3f04093b --- /dev/null +++ b/src/views/xm/core/xmTestPlan/rpt/biz/questionSort.vue @@ -0,0 +1,269 @@ + + + + + \ No newline at end of file