From e7c4cbe5eee1d346217c3da02628987f49269c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Fri, 10 Nov 2023 14:20:53 +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/menuAttDist.vue | 24 +++++++++++--- src/views/xm/rpt/product/questionAttDist.vue | 33 ++++++++++++++++--- src/views/xm/rpt/project/taskAttDist.vue | 25 +++++++++++--- src/views/xm/rpt/testCase/testCaseSort.vue | 17 ++-------- .../xm/rpt/testPlan/testCaseToPlanCalc.vue | 12 +------ .../testPlan/testPlanCaseExecStatusDist.vue | 7 ++-- .../xm/rpt/testPlan/testPlanCaseUserDist.vue | 10 +++--- 7 files changed, 84 insertions(+), 44 deletions(-) diff --git a/src/views/xm/rpt/product/menuAttDist.vue b/src/views/xm/rpt/product/menuAttDist.vue index 21f2c246..5d0ec5ca 100644 --- a/src/views/xm/rpt/product/menuAttDist.vue +++ b/src/views/xm/rpt/product/menuAttDist.vue @@ -394,10 +394,26 @@ this.filters.iteration=null } },//end method - mounted() { - - //this.maxTableHeight = util.calcTableMaxHeight(this.$refs.filtersRef.$el) - //this.charts(); + mounted() { + this.$mdp.ajaxGetDictOptions('menuStatus').then(res=>{ + this.dicts['menuStatus']=res.data.options + }) + + this.$mdp.ajaxGetDictOptions('demandLvl').then(res=>{ + this.dicts['demandLvl']=res.data.options + }) + + this.$mdp.ajaxGetDictOptions('demandType').then(res=>{ + this.dicts['demandType']=res.data.options + }) + + this.$mdp.ajaxGetDictOptions('priority').then(res=>{ + this.dicts['priority']=res.data.options + }) + + this.$mdp.ajaxGetDictOptions('demandSource').then(res=>{ + this.dicts['demandSource']=res.data.options + }) this.open(); }//end mounted diff --git a/src/views/xm/rpt/product/questionAttDist.vue b/src/views/xm/rpt/product/questionAttDist.vue index 406da91c..3fc63c19 100644 --- a/src/views/xm/rpt/product/questionAttDist.vue +++ b/src/views/xm/rpt/product/questionAttDist.vue @@ -458,10 +458,35 @@ this.filters.testPlan=null }, },//end method - mounted() { - - //this.maxTableHeight = util.calcTableMaxHeight(this.$refs.filtersRef.$el) - //this.charts(); + mounted() { + + this.$mdp.ajaxGetDictOptions('bugSeverity').then(res=>{ + this.dicts['bugSeverity']=res.data.options + }) + + this.$mdp.ajaxGetDictOptions('bugSolution').then(res=>{ + this.dicts['bugSolution']=res.data.options + }) + + this.$mdp.ajaxGetDictOptions('bugStatus').then(res=>{ + this.dicts['bugStatus']=res.data.options + }) + + this.$mdp.ajaxGetDictOptions('bugType').then(res=>{ + this.dicts['bugType']=res.data.options + }) + + this.$mdp.ajaxGetDictOptions('priority').then(res=>{ + this.dicts['priority']=res.data.options + }) + + this.$mdp.ajaxGetDictOptions('bugRepRate').then(res=>{ + this.dicts['bugRepRate']=res.data.options + }) + + this.$mdp.ajaxGetDictOptions('bugReason').then(res=>{ + this.dicts['bugReason']=res.data.options + }) this.open(); }//end mounted diff --git a/src/views/xm/rpt/project/taskAttDist.vue b/src/views/xm/rpt/project/taskAttDist.vue index 82c97b28..a30c8d89 100644 --- a/src/views/xm/rpt/project/taskAttDist.vue +++ b/src/views/xm/rpt/project/taskAttDist.vue @@ -379,10 +379,27 @@ this.filters.iteration=null } },//end method - mounted() { - - //this.maxTableHeight = util.calcTableMaxHeight(this.$refs.filtersRef.$el) - //this.charts(); + mounted() { + this.$mdp.ajaxGetDictOptions('taskState').then(res=>{ + this.dicts['taskState']=res.data.options + }) + + this.$mdp.ajaxGetDictOptions('xmTaskSettleSchemel').then(res=>{ + this.dicts['xmTaskSettleSchemel']=res.data.options + }) + + this.$mdp.ajaxGetDictOptions('taskType').then(res=>{ + this.dicts['taskType']=res.data.options + }) + + this.$mdp.ajaxGetDictOptions('priority').then(res=>{ + this.dicts['priority']=res.data.options + }) + + this.$mdp.ajaxGetDictOptions('planType').then(res=>{ + this.dicts['planType']=res.data.options + }) + this.open(); }//end mounted diff --git a/src/views/xm/rpt/testCase/testCaseSort.vue b/src/views/xm/rpt/testCase/testCaseSort.vue index 1d5eec48..33bd554e 100644 --- a/src/views/xm/rpt/testCase/testCaseSort.vue +++ b/src/views/xm/rpt/testCase/testCaseSort.vue @@ -201,17 +201,7 @@ }//end return },//end data - methods: { - formatDict(itemId,val){ - var dict=this.dicts[itemId] - if(dict){ - var item=dict.find(i=>i.id==val) - if(item){ - return item.name - } - } - return val; - }, + methods: { drawCharts() { this.myChart = this.$echarts.init(document.getElementById(this.id)); this.myChart.setOption( @@ -359,9 +349,8 @@ },//end method mounted() { - this.initData(); - //this.maxTableHeight = util.calcTableMaxHeight(this.$refs.filtersRef.$el) - //this.charts(); + this.initData(); + this.open(); }//end mounted diff --git a/src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue b/src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue index be155b5a..dabf32bd 100644 --- a/src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue +++ b/src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue @@ -195,17 +195,7 @@ }//end return },//end data - methods: { - formatDict(itemId,val){ - var dict=this.dicts[itemId] - if(dict){ - var item=dict.find(i=>i.id==val) - if(item){ - return item.name - } - } - return val; - }, + methods: { drawCharts() { this.myChart = this.$echarts.init(document.getElementById(this.id)); this.myChart.setOption( diff --git a/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue b/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue index 4ecde4ef..96438118 100644 --- a/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue +++ b/src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue @@ -360,8 +360,11 @@ mounted() { this.initData(); - //this.maxTableHeight = util.calcTableMaxHeight(this.$refs.filtersRef.$el) - //this.charts(); + + this.$mdp.ajaxGetDictOptions('testStepTcode').then(res=>{ + this.dicts['testStepTcode']=res.data.options + }) + this.open(); }//end mounted diff --git a/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue b/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue index 07712412..468f096a 100644 --- a/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue +++ b/src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue @@ -357,11 +357,11 @@ this.searchXmTestPlanCaseUserDist(); } },//end method - mounted() { - - this.initData(); - //this.maxTableHeight = util.calcTableMaxHeight(this.$refs.filtersRef.$el) - //this.charts(); + mounted() { + this.initData(); + this.$mdp.ajaxGetDictOptions('testPlanTcode').then(res=>{ + this.dicts['testPlanTcode']=res.data.options + }) this.open(); }//end mounted