Browse Source

优化

master
陈裕财 3 years ago
parent
commit
7dfcb56553
  1. 11
      src/views/xm/rpt/testPlan/testCaseToPlanCalc.vue
  2. 18
      src/views/xm/rpt/testPlan/testDayTimesCalc.vue
  3. 11
      src/views/xm/rpt/testPlan/testPlanCaseExecStatusDist.vue
  4. 17
      src/views/xm/rpt/testPlan/testPlanCaseUserDist.vue

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

@ -68,13 +68,13 @@
components: { components: {
XmProjectSelect,XmProductSelect,XmIterationSelect,xmTestPlanSelect, XmProjectSelect,XmProductSelect,XmIterationSelect,xmTestPlanSelect,
}, },
props:['xmProject','xmProduct','xmTestCasedb','xmTestPlan'],
props:['xmProject','xmProduct','xmIteration','xmTestCasedb','xmTestPlan'],
computed: { computed: {
...mapGetters([ ...mapGetters([
'userInfo','roles' 'userInfo','roles'
]), ]),
xmTestCaseToPlanCalcListCpd(){ xmTestCaseToPlanCalcListCpd(){
if(this.xmTestCaseToPlanCalcList.length==0){
if(!this.xmTestCaseToPlanCalcList || this.xmTestCaseToPlanCalcList.length==0){
return [] return []
}else{ }else{
var names=this.legendCpd; var names=this.legendCpd;
@ -122,9 +122,11 @@
data() { data() {
return { return {
filters:{ filters:{
product:null,
project:null,
testPlan:null, testPlan:null,
product:null,
project:null,
iteration:null,
testCasedb:null,
}, },
dicts:{testStepTcode:[]},// params=[{categoryId:'0001',itemCode:'sex'}] {'sex':[{optionValue:'1',optionName:'',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'',seqOrder:'2',fp:'',isDefault:'0'}]} dicts:{testStepTcode:[]},// params=[{categoryId:'0001',itemCode:'sex'}] {'sex':[{optionValue:'1',optionName:'',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'',seqOrder:'2',fp:'',isDefault:'0'}]}
@ -262,6 +264,7 @@
this.filters.testPlan=this.xmTestPlan this.filters.testPlan=this.xmTestPlan
this.filters.product=this.xmProduct this.filters.product=this.xmProduct
this.filters.project=this.xmProject this.filters.project=this.xmProject
this.filters.iteration=this.xmIteration
this.filters.testCasedb=this.xmTestCasedb this.filters.testCasedb=this.xmTestCasedb
this.searchXmTestPlanCaseExecStatusDist(); this.searchXmTestPlanCaseExecStatusDist();

18
src/views/xm/rpt/testPlan/testDayTimesCalc.vue

@ -71,20 +71,20 @@
components: { components: {
XmProjectSelect,XmProductSelect,XmIterationSelect,xmTestPlanSelect, XmProjectSelect,XmProductSelect,XmIterationSelect,xmTestPlanSelect,
}, },
props:['xmProduct','xmProject'],
props:['xmProject','xmProduct','xmIteration','xmTestCasedb','xmTestPlan'],
computed: { computed: {
...mapGetters([ ...mapGetters([
'userInfo','roles' 'userInfo','roles'
]), ]),
datesCpd(){ datesCpd(){
if(this.xmTestDayTimesList.length==0){
if(!this.xmTestDayTimesList || this.xmTestDayTimesList.length==0){
return [] return []
}else{ }else{
return this.xmTestDayTimesList.map(i=>i.execDate) return this.xmTestDayTimesList.map(i=>i.execDate)
} }
}, },
testDayTimesCpd(){ testDayTimesCpd(){
if(this.xmTestDayTimesList.length==0){
if(!this.xmTestDayTimesList || this.xmTestDayTimesList.length==0){
return [] return []
}else{ }else{
return this.xmTestDayTimesList.map(i=>i.hadExec) return this.xmTestDayTimesList.map(i=>i.hadExec)
@ -129,6 +129,9 @@
category:'', category:'',
product:null, product:null,
project:null, project:null,
testPlan:null,
iteration:null,
testCasedb:null,
}, },
dicts:{},// params=[{categoryId:'0001',itemCode:'sex'}] {'sex':[{optionValue:'1',optionName:'',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'',seqOrder:'2',fp:'',isDefault:'0'}]} dicts:{},// params=[{categoryId:'0001',itemCode:'sex'}] {'sex':[{optionValue:'1',optionName:'',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'',seqOrder:'2',fp:'',isDefault:'0'}]}
load:{ list: false, edit: false, del: false, add: false },//... load:{ list: false, edit: false, del: false, add: false },//...
@ -171,9 +174,11 @@
}, },
open(params){ open(params){
this.visible=true; this.visible=true;
this.filters.product=params.xmProduct
this.filters.project=params.xmProject
this.filters.Product=params.xmProduct
this.filters.testPlan=this.xmTestPlan
this.filters.product=this.xmProduct
this.filters.project=this.xmProject
this.filters.iteration=this.xmIteration
this.filters.testCasedb=this.xmTestCasedb
if(this.$refs['xmProductSelect'])this.$refs['xmProductSelect'].clearSelect(); if(this.$refs['xmProductSelect'])this.$refs['xmProductSelect'].clearSelect();
this.$nextTick(()=>{ this.$nextTick(()=>{
this.getXmTestDayTimesList(); this.getXmTestDayTimesList();
@ -232,6 +237,7 @@
}, },
onXmTestPlanSelected(xmTestPlan){ onXmTestPlanSelected(xmTestPlan){
debugger;
this.filters.testPlan=xmTestPlan this.filters.testPlan=xmTestPlan
}, },

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

@ -68,13 +68,13 @@
components: { components: {
XmProjectSelect,XmProductSelect,XmIterationSelect,xmTestPlanSelect, XmProjectSelect,XmProductSelect,XmIterationSelect,xmTestPlanSelect,
}, },
props:['xmProject','xmProduct','xmTestCasedb','xmTestPlan'],
props:['xmProject','xmProduct','xmIteration','xmTestCasedb','xmTestPlan'],
computed: { computed: {
...mapGetters([ ...mapGetters([
'userInfo','roles' 'userInfo','roles'
]), ]),
xmTestPlanCaseExecStatusDistsCpd(){ xmTestPlanCaseExecStatusDistsCpd(){
if(this.xmTestPlanCaseExecStatusDists.length==0){
if(!this.xmTestPlanCaseExecStatusDists || this.xmTestPlanCaseExecStatusDists.length==0){
return [] return []
}else{ }else{
var datas=[] var datas=[]
@ -115,9 +115,11 @@
data() { data() {
return { return {
filters:{ filters:{
product:null,
project:null,
testPlan:null, testPlan:null,
product:null,
project:null,
iteration:null,
testCasedb:null,
}, },
dicts:{testStepTcode:[]},// params=[{categoryId:'0001',itemCode:'sex'}] {'sex':[{optionValue:'1',optionName:'',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'',seqOrder:'2',fp:'',isDefault:'0'}]} dicts:{testStepTcode:[]},// params=[{categoryId:'0001',itemCode:'sex'}] {'sex':[{optionValue:'1',optionName:'',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'',seqOrder:'2',fp:'',isDefault:'0'}]}
@ -252,6 +254,7 @@
this.filters.testPlan=this.xmTestPlan this.filters.testPlan=this.xmTestPlan
this.filters.product=this.xmProduct this.filters.product=this.xmProduct
this.filters.project=this.xmProject this.filters.project=this.xmProject
this.filters.iteration=this.xmIteration
this.filters.testCasedb=this.xmTestCasedb this.filters.testCasedb=this.xmTestCasedb
this.searchXmTestPlanCaseExecStatusDist(); this.searchXmTestPlanCaseExecStatusDist();

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

@ -68,14 +68,14 @@
components: { components: {
XmProjectSelect,XmProductSelect,XmIterationSelect,xmTestPlanSelect, XmProjectSelect,XmProductSelect,XmIterationSelect,xmTestPlanSelect,
}, },
props:['xmProject','xmProduct','xmTestCasedb','xmTestPlan'],
props:['xmProject','xmProduct','xmIteration','xmTestCasedb','xmTestPlan'],
computed: { computed: {
...mapGetters([ ...mapGetters([
'userInfo','roles' 'userInfo','roles'
]), ]),
hadExecCpd(){ hadExecCpd(){
if(this.xmTestPlanCaseUserDists.length==0){
if(!this.xmTestPlanCaseUserDists ||this.xmTestPlanCaseUserDists.length==0){
return [] return []
}else{ }else{
return this.xmTestPlanCaseUserDists.map(i=>i.hadExec) return this.xmTestPlanCaseUserDists.map(i=>i.hadExec)
@ -83,14 +83,14 @@
}, },
notExecCpd(){ notExecCpd(){
if(this.xmTestPlanCaseUserDists.length==0){
if(!this.xmTestPlanCaseUserDists ||this.xmTestPlanCaseUserDists.length==0){
return [] return []
}else{ }else{
return this.xmTestPlanCaseUserDists.map(i=>i.notExec) return this.xmTestPlanCaseUserDists.map(i=>i.notExec)
} }
}, },
legendCpd(){ legendCpd(){
if(this.xmTestPlanCaseUserDists.length==0){
if(!this.xmTestPlanCaseUserDists ||this.xmTestPlanCaseUserDists.length==0){
return [] return []
}else{ }else{
return this.xmTestPlanCaseUserDists.map(i=>i.execUsername) return this.xmTestPlanCaseUserDists.map(i=>i.execUsername)
@ -98,7 +98,7 @@
}, },
xmTestPlanCaseUserDistsCpd(){ xmTestPlanCaseUserDistsCpd(){
if(this.xmTestPlanCaseUserDists.length==0){
if(!this.xmTestPlanCaseUserDists || this.xmTestPlanCaseUserDists.length==0){
return [] return []
}else{ }else{
var datas=[] var datas=[]
@ -133,9 +133,11 @@
data() { data() {
return { return {
filters:{ filters:{
product:null,
project:null,
testPlan:null, testPlan:null,
product:null,
project:null,
iteration:null,
testCasedb:null,
}, },
dicts:{testPlanTcode:[]},// params=[{categoryId:'0001',itemCode:'sex'}] {'sex':[{optionValue:'1',optionName:'',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'',seqOrder:'2',fp:'',isDefault:'0'}]} dicts:{testPlanTcode:[]},// params=[{categoryId:'0001',itemCode:'sex'}] {'sex':[{optionValue:'1',optionName:'',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'',seqOrder:'2',fp:'',isDefault:'0'}]}
@ -263,6 +265,7 @@
this.filters.testPlan=this.xmTestPlan this.filters.testPlan=this.xmTestPlan
this.filters.product=this.xmProduct this.filters.product=this.xmProduct
this.filters.project=this.xmProject this.filters.project=this.xmProject
this.filters.iteration=this.xmIteration
this.filters.testCasedb=this.xmTestCasedb this.filters.testCasedb=this.xmTestCasedb
this.searchXmTestPlanCaseUserDist(); this.searchXmTestPlanCaseUserDist();
} }

Loading…
Cancel
Save