Browse Source

优化

master
陈裕财 3 years ago
parent
commit
82f77832c4
  1. 32
      src/views/xm/rpt/product/menuDayAccumulate.vue
  2. 31
      src/views/xm/rpt/product/menuDayTrend.vue
  3. 27
      src/views/xm/rpt/product/productWorkItemDayList.vue
  4. 32
      src/views/xm/rpt/product/questionDayAccumulate.vue
  5. 32
      src/views/xm/rpt/product/questionDayTrend.vue

32
src/views/xm/rpt/product/menuDayAccumulate.vue

@ -1,6 +1,6 @@
<template>
<section>
<el-dialog fullscreen :title="(this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'需求累积图'" append-to-body modal-append-to-body width="80%" top="20px" :visible.sync="visible">
<el-dialog fullscreen :title="dialogTitle" append-to-body modal-append-to-body width="80%" top="20px" :visible.sync="visible">
<el-row :gutter="5">
<el-col :span="18"> <div>
@ -10,9 +10,11 @@
</el-col>
<el-col :span="6" class="border padding">
<el-form :model="filters">
<el-form-item label="归属产品">
<xm-product-select v-if="!xmProduct" ref="xmProductSelect" style="display:inline;" :auto-select="false" :link-project-id="xmProject?xmProject.id:null" @row-click="onProductSelected" @clear="onProductClear"></xm-product-select>
</el-form-item>
<el-form-item label="归属产品" >
<xm-product-select v-if="!xmProductCpd || !xmProductCpd.id" ref="xmProductSelect" style="display:inline;" :auto-select="false" :link-project-id="xmProject?xmProject.id:null" @row-click="onProductSelected" :iterationId="xmIteration?xmIteration.id:null" @clear="onProductClear"></xm-product-select>
<span v-else>{{xmProductCpd.id}} <span v-if="xmProductCpd.productName"><br/>{{ xmProductCpd.productName }} </span> </span>
</el-form-item>
<el-form-item label="日期区间">
<br>
<mdp-date-range v-model="filters" value-format="yyyy-MM-dd" start-key="startBizDate" end-key="endBizDate"></mdp-date-range>
@ -79,8 +81,28 @@
}else{
return this.xmProductStateHiss.map(i=>i.menuFinishCnt)
}
},
dialogTitle(){
var productName="";
if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
productName=this.filters.product.productName
}else{
productName=this.filters.product.id
}
}
if(productName){
return `产品【${productName}】需求每日累积图`
}else{
return "产品需求每日累积图"
}
},
xmProductCpd(){
if(this.xmProduct && this.xmProduct.id){
return this.xmProduct
}
return null;
}
},
watch: {
datesCpd(){

31
src/views/xm/rpt/product/menuDayTrend.vue

@ -1,6 +1,6 @@
<template>
<section>
<el-dialog fullscreen :title="(this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'需求每日趋势'" append-to-body modal-append-to-body width="80%" top="20px" :visible.sync="visible">
<el-dialog fullscreen :title="dialogTitle" append-to-body modal-append-to-body width="80%" top="20px" :visible.sync="visible">
<el-row :gutter="5">
<el-col :span="18">
@ -12,9 +12,11 @@
</el-col>
<el-col :span="6" class="border padding">
<el-form :model="filters">
<el-form-item label="归属产品" v-if="!xmProduct">
<xm-product-select v-if="!xmProduct" ref="xmProductSelect" style="display:inline;" :auto-select="false" :link-project-id="xmProject?xmProject.id:null" @row-click="onProductSelected" @clear="onProductClear"></xm-product-select>
</el-form-item>
<el-form-item label="归属产品" >
<xm-product-select v-if="!xmProductCpd || !xmProductCpd.id" ref="xmProductSelect" style="display:inline;" :auto-select="false" :link-project-id="xmProject?xmProject.id:null" @row-click="onProductSelected" :iterationId="xmIteration?xmIteration.id:null" @clear="onProductClear"></xm-product-select>
<span v-else>{{xmProductCpd.id}} <span v-if="xmProductCpd.productName"><br/>{{ xmProductCpd.productName }} </span> </span>
</el-form-item>
<el-form-item label="日期区间">
<br>
<mdp-date-range v-model="filters" value-format="yyyy-MM-dd" start-key="startBizDate" end-key="endBizDate"></mdp-date-range>
@ -83,6 +85,27 @@
}
},
dialogTitle(){
var productName="";
if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
productName=this.filters.product.productName
}else{
productName=this.filters.product.id
}
}
if(productName){
return `产品【${productName}】需求每日趋势图`
}else{
return "产品需求每日趋势图"
}
},
xmProductCpd(){
if(this.xmProduct && this.xmProduct.id){
return this.xmProduct
}
return null;
}
},
watch: {
datesCpd(){

27
src/views/xm/rpt/product/productWorkItemDayList.vue

@ -10,9 +10,11 @@
</el-col>
<el-col :span="6" class="border padding">
<el-form :model="filters">
<el-form-item label="归属产品">
<xm-product-select v-if="!xmProduct" ref="xmProductSelect" style="display:inline;" :auto-select="false" :link-project-id="xmProject?xmProject.id:null" @row-click="onProductSelected" @clear="onProductClear"></xm-product-select>
</el-form-item>
<el-form-item label="归属产品" >
<xm-product-select v-if="!xmProductCpd || !xmProductCpd.id" ref="xmProductSelect" style="display:inline;" :auto-select="false" :link-project-id="xmProject?xmProject.id:null" @row-click="onProductSelected" :iterationId="xmIteration?xmIteration.id:null" @clear="onProductClear"></xm-product-select>
<span v-else>{{xmProductCpd.id}} <span v-if="xmProductCpd.productName"><br/>{{ xmProductCpd.productName }} </span> </span>
</el-form-item>
<el-form-item label="日期区间">
<br>
<mdp-date-range v-model="filters" value-format="yyyy-MM-dd" start-key="startBizDate" end-key="endBizDate"></mdp-date-range>
@ -54,11 +56,22 @@
['未关缺陷',...this.xmProductStateHiss.map(i=>i.bugCnt-i.closedBugs)],
['已关缺陷',...this.xmProductStateHiss.map(i=>i.closedBugs)]
]
},
dialogTitle(){
return (this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'工作项每日趋势图'
},
dialogTitle(){
var productName="";
if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
productName=this.filters.product.productName
}else{
productName=this.filters.product.id
}
}
if(productName){
return `产品【${productName}】需求每日趋势图`
}else{
return "产品需求每日趋势图"
}
},
xmProductCpd(){
if(this.xmProduct && this.xmProduct.id){
return this.xmProduct

32
src/views/xm/rpt/product/questionDayAccumulate.vue

@ -1,6 +1,6 @@
<template>
<section>
<el-dialog fullscreen :title="(this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'缺陷累积图'" append-to-body modal-append-to-body width="80%" top="20px" :visible.sync="visible">
<el-dialog fullscreen :title="dialogTitle" append-to-body modal-append-to-body width="80%" top="20px" :visible.sync="visible">
<el-row :gutter="5">
<el-col :span="18"> <div>
@ -10,9 +10,11 @@
</el-col>
<el-col :span="6" class="border padding">
<el-form :model="filters">
<el-form-item label="归属产品">
<xm-product-select v-if="!xmProduct" ref="xmProductSelect" style="display:inline;" :auto-select="false" :link-project-id="xmProject?xmProject.id:null" @row-click="onProductSelected" @clear="onProductClear"></xm-product-select>
</el-form-item>
<el-form-item label="归属产品" >
<xm-product-select v-if="!xmProductCpd || !xmProductCpd.id" ref="xmProductSelect" style="display:inline;" :auto-select="false" :link-project-id="xmProject?xmProject.id:null" @row-click="onProductSelected" :iterationId="xmIteration?xmIteration.id:null" @clear="onProductClear"></xm-product-select>
<span v-else>{{xmProductCpd.id}} <span v-if="xmProductCpd.productName"><br/>{{ xmProductCpd.productName }} </span> </span>
</el-form-item>
<el-form-item label="日期区间">
<br>
<mdp-date-range v-model="filters" value-format="yyyy-MM-dd" start-key="startBizDate" end-key="endBizDate"></mdp-date-range>
@ -81,6 +83,28 @@
}
},
dialogTitle(){
var productName="";
if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
productName=this.filters.product.productName
}else{
productName=this.filters.product.id
}
}
if(productName){
return `产品【${productName}】需求每日累积图`
}else{
return "产品缺陷每日累积图"
}
},
xmProductCpd(){
if(this.xmProduct && this.xmProduct.id){
return this.xmProduct
}
return null;
}
},
watch: {
datesCpd(){

32
src/views/xm/rpt/product/questionDayTrend.vue

@ -1,6 +1,6 @@
<template>
<section>
<el-dialog fullscreen :title="(this.filters.product?'产品【'+this.filters.product.productName+'】':'')+'缺陷每日趋势'" append-to-body modal-append-to-body width="80%" top="20px" :visible.sync="visible">
<el-dialog fullscreen :title="dialogTitle" append-to-body modal-append-to-body width="80%" top="20px" :visible.sync="visible">
<el-row :gutter="5">
<el-col :span="18">
@ -12,9 +12,11 @@
</el-col>
<el-col :span="6" class="border padding">
<el-form :model="filters">
<el-form-item label="归属产品" v-if="!xmProduct" >
<xm-product-select ref="xmProductSelect" style="display:inline;" :auto-select="false" :link-project-id="xmProject?xmProject.id:null" @row-click="onProductSelected" @clear="onProductClear"></xm-product-select>
</el-form-item>
<el-form-item label="归属产品" >
<xm-product-select v-if="!xmProductCpd || !xmProductCpd.id" ref="xmProductSelect" style="display:inline;" :auto-select="false" :link-project-id="xmProject?xmProject.id:null" @row-click="onProductSelected" :iterationId="xmIteration?xmIteration.id:null" @clear="onProductClear"></xm-product-select>
<span v-else>{{xmProductCpd.id}} <span v-if="xmProductCpd.productName"><br/>{{ xmProductCpd.productName }} </span> </span>
</el-form-item>
<el-form-item label="日期区间">
<br>
<mdp-date-range v-model="filters" value-format="yyyy-MM-dd" start-key="startBizDate" end-key="endBizDate"></mdp-date-range>
@ -83,6 +85,28 @@
}
},
dialogTitle(){
var productName="";
if(this.filters.product && this.filters.product.id){
if(this.filters.product.productName){
productName=this.filters.product.productName
}else{
productName=this.filters.product.id
}
}
if(productName){
return `产品【${productName}】缺陷每日趋势图`
}else{
return "产品缺陷每日趋势图"
}
},
xmProductCpd(){
if(this.xmProduct && this.xmProduct.id){
return this.xmProduct
}
return null;
}
},
watch: {
datesCpd(){

Loading…
Cancel
Save