Browse Source

优化

master
陈裕财 2 years ago
parent
commit
e7c4cbe5ee
  1. 24
      src/views/xm/rpt/product/menuAttDist.vue
  2. 33
      src/views/xm/rpt/product/questionAttDist.vue
  3. 25
      src/views/xm/rpt/project/taskAttDist.vue
  4. 17
      src/views/xm/rpt/testCase/testCaseSort.vue
  5. 12
      src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue
  6. 7
      src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue
  7. 10
      src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue

24
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

33
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

25
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

17
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

12
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(

7
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

10
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

Loading…
Cancel
Save