diff --git a/src/common/js/util.js b/src/common/js/util.js
index b9ed034c..c8e63a22 100644
--- a/src/common/js/util.js
+++ b/src/common/js/util.js
@@ -150,23 +150,37 @@ export default {
}
return classNames[typeIndex]
},
- calcTableMaxHeight(cssSelector) {
+
+ calcMaxHeight(cssSelector) {
+ debugger;
var table=cssSelector;
if(typeof cssSelector == 'string'){
table=document.querySelector(cssSelector);
+ }
+ var innerHeight=window.innerHeight
+ var top=150;
+
+
+ if(table!=null){
+ var rect=table.getBoundingClientRect()
+
+ if(rect && rect.top){
+ top=rect.top;
+ }
}
+ var maxTableHeight =innerHeight-top;
+ return maxTableHeight;
+ },
+ calcTableMaxHeight(cssSelector) {
+ var table=cssSelector;
+ if(typeof cssSelector == 'string'){
+ table=document.querySelector(cssSelector);
+ }
var innerHeight=window.innerHeight
- var defaultInnerHeight=616;
- var pageHeight=32/defaultInnerHeight*innerHeight
- var top=150/defaultInnerHeight*innerHeight;
- var bottomHeight=36/defaultInnerHeight*innerHeight
- if(innerHeight>=916){
- bottomHeight=20/defaultInnerHeight*innerHeight
- }else if(innerHeight>=800){
- bottomHeight=26/defaultInnerHeight*innerHeight
- }else if(innerHeight>=700){
- bottomHeight=32/defaultInnerHeight*innerHeight
- }
+ var pageHeight=32
+ var top=150;
+ var bottomHeight=32
+
if(table!=null){
var rect=table.getBoundingClientRect()
diff --git a/src/views/layout/Layout.vue b/src/views/layout/Layout.vue
index 7c824531..6e512333 100644
--- a/src/views/layout/Layout.vue
+++ b/src/views/layout/Layout.vue
@@ -4,7 +4,7 @@
@@ -20,10 +20,38 @@ export default {
AppMain,
TagsView
},
+ data(){
+ return {
+ maxHeight:null,
+ }
+ },
+ methods:{
+
+ calcMaxHeight(cssSelector) {
+ var table=cssSelector;
+ debugger;
+ if(typeof cssSelector == 'string'){
+ table=document.querySelector(cssSelector);
+ }
+ var innerHeight=window.innerHeight
+ var top=150;
+ if(table!=null){
+ var rect=table.getBoundingClientRect()
+ if(rect && rect.top!=0){
+ top=rect.top;
+ }
+ }
+ var maxTableHeight =innerHeight-top;
+ return maxTableHeight;
+ },
+ },
computed: {
sidebar() {
return this.$store.state.app.sidebar
}
+ },
+ mounted(){
+ this.maxHeight=this.calcMaxHeight(this.$refs.main.$el)
}
}
diff --git a/src/views/xm/XmOverview.vue b/src/views/xm/XmOverview.vue
index bb0c6d4d..51827d25 100644
--- a/src/views/xm/XmOverview.vue
+++ b/src/views/xm/XmOverview.vue
@@ -1,6 +1,6 @@
-
+
{{formatNum(xmBranch.projectCnt,0) || 0}}
diff --git a/src/views/xm/core/xmIteration/XmIterationForLinkComplex.vue b/src/views/xm/core/xmIteration/XmIterationForLinkComplex.vue
index 9d006242..96b970a9 100644
--- a/src/views/xm/core/xmIteration/XmIterationForLinkComplex.vue
+++ b/src/views/xm/core/xmIteration/XmIterationForLinkComplex.vue
@@ -283,12 +283,12 @@
-
+
-
+
计算迭代统计数据
diff --git a/src/views/xm/core/xmIteration/XmIterationOverview.vue b/src/views/xm/core/xmIteration/XmIterationOverview.vue
index 0755212a..22aec945 100644
--- a/src/views/xm/core/xmIteration/XmIterationOverview.vue
+++ b/src/views/xm/core/xmIteration/XmIterationOverview.vue
@@ -1,6 +1,6 @@
-
+
@@ -957,7 +957,7 @@ export default {
mounted() {
this.$nextTick(() => {
- this.maxTableHeight=util.calcTableMaxHeight(this.$refs.table.$el)
+ this.maxTableHeight=util.calcMaxHeight(this.$refs.table.$el)
});
initSimpleDicts('all',['xmIterationPstatus']).then(res=>{
diff --git a/src/views/xm/core/xmIteration/XmIterationOverviewComplex.vue b/src/views/xm/core/xmIteration/XmIterationOverviewComplex.vue
index 2733b335..6a0955fc 100644
--- a/src/views/xm/core/xmIteration/XmIterationOverviewComplex.vue
+++ b/src/views/xm/core/xmIteration/XmIterationOverviewComplex.vue
@@ -11,7 +11,7 @@
常用功能导航
-
+
-
+
-
+
-
+
@@ -407,7 +407,7 @@ export default {
mounted() {
this.$nextTick(() => {
- this.maxTableHeight = util.calcTableMaxHeight(this.$refs.pageBody.$el);
+ this.maxTableHeight = util.calcMaxHeight(this.$refs.pageBody.$el);
});
initDicts(this)
},
diff --git a/src/views/xm/core/xmProduct/XmProductForLinkComplex.vue b/src/views/xm/core/xmProduct/XmProductForLinkComplex.vue
index fb06dfc8..0792ef19 100644
--- a/src/views/xm/core/xmProduct/XmProductForLinkComplex.vue
+++ b/src/views/xm/core/xmProduct/XmProductForLinkComplex.vue
@@ -157,7 +157,6 @@
-
+
diff --git a/src/views/xm/core/xmProduct/XmProductOverview.vue b/src/views/xm/core/xmProduct/XmProductOverview.vue
index 66d7498d..89882979 100644
--- a/src/views/xm/core/xmProduct/XmProductOverview.vue
+++ b/src/views/xm/core/xmProduct/XmProductOverview.vue
@@ -1,6 +1,6 @@
-
+
@@ -960,10 +960,9 @@ export default {
},
},
- mounted() {
- this.$nextTick(() => {
- this.maxTableHeight=util.calcTableMaxHeight(this.$refs.table.$el)
- });
+ mounted() {
+
+
initSimpleDicts('all',['xmProductPstatus']).then(res=>{
this.dicts=res.data.data;
@@ -976,7 +975,9 @@ export default {
this.drawCostPie();
this.drawWorkload();
this.drawIterationProduct();
-
+ this.$nextTick(()=>{
+ this.maxTableHeight=util.calcMaxHeight(this.$refs.table.$el)
+ })
},
};
diff --git a/src/views/xm/core/xmProduct/XmProductOverviewComplex.vue b/src/views/xm/core/xmProduct/XmProductOverviewComplex.vue
index 48e5cb04..e2af05a2 100644
--- a/src/views/xm/core/xmProduct/XmProductOverviewComplex.vue
+++ b/src/views/xm/core/xmProduct/XmProductOverviewComplex.vue
@@ -8,7 +8,7 @@
+ class="padding" :style="{ maxHeight: (maxTableHeight-24) + 'px', overflowY: 'auto' }">
常用功能导航
-
+
@@ -233,15 +229,13 @@
@@ -417,7 +411,7 @@ export default {
mounted() {
this.$nextTick(() => {
- this.maxTableHeight = util.calcTableMaxHeight(this.$refs.pageBody.$el);
+ this.maxTableHeight = util.calcMaxHeight(this.$refs.pageBody.$el);
});
initDicts(this)
},
diff --git a/src/views/xm/core/xmProject/XmProjectForLinkComplex.vue b/src/views/xm/core/xmProject/XmProjectForLinkComplex.vue
index f60d5e13..21769eeb 100644
--- a/src/views/xm/core/xmProject/XmProjectForLinkComplex.vue
+++ b/src/views/xm/core/xmProject/XmProjectForLinkComplex.vue
@@ -121,8 +121,7 @@
-->
@@ -261,7 +247,7 @@
-
+
diff --git a/src/views/xm/core/xmProject/XmProjectOverview.vue b/src/views/xm/core/xmProject/XmProjectOverview.vue
index dd3683b6..a3e56a58 100644
--- a/src/views/xm/core/xmProject/XmProjectOverview.vue
+++ b/src/views/xm/core/xmProject/XmProjectOverview.vue
@@ -1,6 +1,6 @@
-
+
@@ -974,7 +974,7 @@ export default {
mounted() {
this.$nextTick(() => {
- this.maxTableHeight=util.calcTableMaxHeight(this.$refs.table.$el)
+ this.maxTableHeight=util.calcMaxHeight(this.$refs.table.$el)
});
initSimpleDicts('all',['projectType','priority','projectStatus']).then(res=>{
diff --git a/src/views/xm/core/xmProject/XmProjectOverviewComplex.vue b/src/views/xm/core/xmProject/XmProjectOverviewComplex.vue
index 386d021a..86230276 100644
--- a/src/views/xm/core/xmProject/XmProjectOverviewComplex.vue
+++ b/src/views/xm/core/xmProject/XmProjectOverviewComplex.vue
@@ -8,7 +8,7 @@
+ class="padding" :style="{maxHeight:(maxTableHeight-24)+'px',overflowY:'auto'}">
-
+
@@ -168,22 +164,18 @@
-
-
-
+
+
-
@@ -364,7 +356,7 @@ export default {
this.$nextTick(() => {
- this.maxTableHeight = util.calcTableMaxHeight(this.$refs.pageBody.$el);
+ this.maxTableHeight = util.calcMaxHeight(this.$refs.pageBody.$el);
});
},
diff --git a/src/views/xm/rpt/index/CfigRpt.vue b/src/views/xm/rpt/index/CfigRpt.vue
new file mode 100644
index 00000000..9063da29
--- /dev/null
+++ b/src/views/xm/rpt/index/CfigRpt.vue
@@ -0,0 +1,457 @@
+
+
+
+
+
+
+
+
+ {{ xmRptData.rptName}}
+ {{ xmRptConfig.name}}
+ {{ rptConfigParamsCpd.name+'-报告'}}
+
+ 查看历史报告
+ 存档
+ 查看报告
+ 退出报告
+ 制作报告
+ 取消制作
+ 保存&退出
+ 隐藏过滤条件
+ 显示过滤条件
+ 分享
+
+ pdf
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/xm/rpt/index/CompsCard.vue b/src/views/xm/rpt/index/CompsCard.vue
index 20ea73b8..519d9a9b 100644
--- a/src/views/xm/rpt/index/CompsCard.vue
+++ b/src/views/xm/rpt/index/CompsCard.vue
@@ -26,7 +26,7 @@
pdf
-
+
@@ -437,7 +437,7 @@ export default {
mounted() {
this.$nextTick(() => {
this.initData();
- this.maxTableHeight = util.calcTableMaxHeight(this.$refs.table.$el)
+ this.maxTableHeight = util.calcMaxHeight(this.$refs.table.$el)
})
},
diff --git a/src/views/xm/rpt/index/CompsSet.vue b/src/views/xm/rpt/index/CompsSet.vue
index 0f4d280a..965d2246 100644
--- a/src/views/xm/rpt/index/CompsSet.vue
+++ b/src/views/xm/rpt/index/CompsSet.vue
@@ -5,7 +5,7 @@
-
+
@@ -247,7 +247,7 @@ export default {
//this.comps.forEach(k=>k.id=k.id?k.id:k.compId)
this.$nextTick(()=>{
- this.maxTableHeight = util.calcTableMaxHeight(this.$refs.table.$el)
+ this.maxTableHeight = util.calcMaxHeight(this.$refs.table.$el)
if(this.category){
this.filters.category=this.category
}else{