Browse Source

优化

master
陈裕财 2 years ago
parent
commit
e7c4cbe5ee
  1. 20
      src/views/xm/rpt/product/menuAttDist.vue
  2. 29
      src/views/xm/rpt/product/questionAttDist.vue
  3. 21
      src/views/xm/rpt/project/taskAttDist.vue
  4. 13
      src/views/xm/rpt/testCase/testCaseSort.vue
  5. 10
      src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue
  6. 7
      src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue
  7. 6
      src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue

20
src/views/xm/rpt/product/menuAttDist.vue

@ -395,9 +395,25 @@
} }
},//end method },//end method
mounted() { 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.maxTableHeight = util.calcTableMaxHeight(this.$refs.filtersRef.$el)
//this.charts();
this.$mdp.ajaxGetDictOptions('demandSource').then(res=>{
this.dicts['demandSource']=res.data.options
})
this.open(); this.open();
}//end mounted }//end mounted

29
src/views/xm/rpt/product/questionAttDist.vue

@ -460,8 +460,33 @@
},//end method },//end method
mounted() { mounted() {
//this.maxTableHeight = util.calcTableMaxHeight(this.$refs.filtersRef.$el)
//this.charts();
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(); this.open();
}//end mounted }//end mounted

21
src/views/xm/rpt/project/taskAttDist.vue

@ -380,9 +380,26 @@
} }
},//end method },//end method
mounted() { 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.maxTableHeight = util.calcTableMaxHeight(this.$refs.filtersRef.$el)
//this.charts();
this.open(); this.open();
}//end mounted }//end mounted

13
src/views/xm/rpt/testCase/testCaseSort.vue

@ -202,16 +202,6 @@
}//end return }//end return
},//end data },//end data
methods: { 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;
},
drawCharts() { drawCharts() {
this.myChart = this.$echarts.init(document.getElementById(this.id)); this.myChart = this.$echarts.init(document.getElementById(this.id));
this.myChart.setOption( this.myChart.setOption(
@ -360,8 +350,7 @@
mounted() { mounted() {
this.initData(); this.initData();
//this.maxTableHeight = util.calcTableMaxHeight(this.$refs.filtersRef.$el)
//this.charts();
this.open(); this.open();
}//end mounted }//end mounted

10
src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue

@ -196,16 +196,6 @@
}//end return }//end return
},//end data },//end data
methods: { 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;
},
drawCharts() { drawCharts() {
this.myChart = this.$echarts.init(document.getElementById(this.id)); this.myChart = this.$echarts.init(document.getElementById(this.id));
this.myChart.setOption( this.myChart.setOption(

7
src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue

@ -360,8 +360,11 @@
mounted() { mounted() {
this.initData(); 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(); this.open();
}//end mounted }//end mounted

6
src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue

@ -358,10 +358,10 @@
} }
},//end method },//end method
mounted() { mounted() {
this.initData(); this.initData();
//this.maxTableHeight = util.calcTableMaxHeight(this.$refs.filtersRef.$el)
//this.charts();
this.$mdp.ajaxGetDictOptions('testPlanTcode').then(res=>{
this.dicts['testPlanTcode']=res.data.options
})
this.open(); this.open();
}//end mounted }//end mounted

Loading…
Cancel
Save