Browse Source

优化

master
陈裕财 4 years ago
parent
commit
47b54af134
  1. 6
      src/views/xm/core/xmIteration/XmIterationOverview.vue
  2. 4
      src/views/xm/core/xmProject/XmProjectOverview.vue

6
src/views/xm/core/xmIteration/XmIterationOverview.vue

@ -1,6 +1,6 @@
<template> <template>
<section class="page-container padding"> <section class="page-container padding">
<el-row class="page-main " style="overflow-x: hidden;">
<el-row class="page-main " :style="{overflowX: 'hidden',height:maxTableHeight+'px'}" ref="table">
<el-row style="margin-bottom:10px"> <el-row style="margin-bottom:10px">
<el-card class="box-card" style="padding:0px ;height:100px"> <el-card class="box-card" style="padding:0px ;height:100px">
<div> <div>
@ -317,6 +317,7 @@ export default {
data() { data() {
return { return {
isActive: true, isActive: true,
maxTableHeight:300,
}; };
}, },
@ -573,7 +574,8 @@ export default {
}, },
mounted() { mounted() {
this.$nextTick(() => {
this.$nextTick(() => {
this.maxTableHeight=util.calcTableMaxHeight(this.$refs.table.$el)
}); });
this.drawAllBar(); this.drawAllBar();
this.drawPieBug(); this.drawPieBug();

4
src/views/xm/core/xmProject/XmProjectOverview.vue

@ -1,6 +1,6 @@
<template> <template>
<section class="page-container padding"> <section class="page-container padding">
<el-row class="page-main " style="overflow-x: hidden;">
<el-row class="page-main " :style="{overflowX: 'hidden',height:maxTableHeight+'px'}" ref="table">
<el-row style="margin-bottom:10px"> <el-row style="margin-bottom:10px">
<el-card class="box-card" style="padding:0px ;height:100px"> <el-card class="box-card" style="padding:0px ;height:100px">
<div> <div>
@ -364,6 +364,7 @@ export default {
data() { data() {
return { return {
isActive: true, isActive: true,
maxTableHeight:300,
options:{ options:{
projectType:[], projectType:[],
urgencyLevel:[], urgencyLevel:[],
@ -755,6 +756,7 @@ export default {
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.maxTableHeight=util.calcTableMaxHeight(this.$refs.table.$el)
}); });
listOption([{categoryId:'all',itemCode:'projectType'},{categoryId:'all',itemCode:'urgencyLevel'},{categoryId:'all',itemCode:'priority'},{categoryId:'all',itemCode:'projectStatus'}] ).then(res=>{ listOption([{categoryId:'all',itemCode:'projectType'},{categoryId:'all',itemCode:'urgencyLevel'},{categoryId:'all',itemCode:'priority'},{categoryId:'all',itemCode:'projectStatus'}] ).then(res=>{
if(res.data.tips.isOk){ if(res.data.tips.isOk){

Loading…
Cancel
Save