Browse Source

优化

master
陈裕财 4 years ago
parent
commit
7e32d4df38
  1. 2
      src/views/xm/core/xmIteration/XmIterationMng.vue
  2. 2
      src/views/xm/core/xmIteration/XmIterationSelect.vue
  3. 6
      src/views/xm/core/xmIterationProductLink/XmIterationProductLinkMng.vue
  4. 2
      src/views/xm/core/xmProduct/XmProductMng.vue
  5. 6
      src/views/xm/core/xmProductProjectLink/XmProductProjectLinkMng.vue
  6. 2
      src/views/xm/core/xmProjectGroupState/XmProjectGroupStateMng.vue
  7. 4
      src/views/xm/core/xmProjectPhase/XmProjectPhaseSelect.vue
  8. 2
      src/views/xm/core/xmQuestion/XmQuestionMng.vue
  9. 5
      src/views/xm/core/xmTaskExecuser/XmTaskExecuserMng.vue

2
src/views/xm/core/xmIteration/XmIterationMng.vue

@ -526,7 +526,7 @@ import XmIterationSelect from './XmIterationSelect.vue';
mounted() {
this.$nextTick(() => {
var subHeight=70/1000 * window.innerHeight;
this.tableHeight = util.calcTableMaxHeight('el-table');
this.getXmIterations();
});

2
src/views/xm/core/xmIteration/XmIterationSelect.vue

@ -352,7 +352,7 @@
mounted() {
this.$nextTick(() => {
var subHeight=70/1000 * window.innerHeight;
this.tableHeight = util.calcTableMaxHeight('el-table');
this.getXmIterations();
});

6
src/views/xm/core/xmIterationProductLink/XmIterationProductLinkMng.vue

@ -274,10 +274,8 @@ import XmIterationSelect from '../xmIteration/XmIterationSelect.vue';
},
mounted() {
this.$nextTick(() => {
this.getXmIterationProductLinks();
var clientRect=this.$refs.xmIterationProductLink.$el.getBoundingClientRect();
var subHeight=65/1000 * window.innerHeight;
this.maxTableHeight = window.innerHeight -clientRect.y - this.$refs.xmIterationProductLink.$el.offsetTop-subHeight;
this.getXmIterationProductLinks();
this.maxTableHeight = util.calcTableMaxHeight(".el-table")
});
/**
listOption([{categoryId:'all',itemCode:'sex'},{categoryId:'all',itemCode:'grade'}] ).then(res=>{

2
src/views/xm/core/xmProduct/XmProductMng.vue

@ -652,7 +652,7 @@ import XmProductSelect from './XmProductSelect.vue';
});
this.$nextTick(() => {
var subHeight=70/1000 * window.innerHeight;
this.tableHeight = util.calcTableMaxHeight('el-table');
this.getXmProducts();
});

6
src/views/xm/core/xmProductProjectLink/XmProductProjectLinkMng.vue

@ -275,10 +275,8 @@ import XmProjectSelect from '../xmProject/XmProjectSelect.vue';
},
mounted() {
this.$nextTick(() => {
this.getXmProductProjectLinks();
var clientRect=this.$refs.xmProductProjectLink.$el.getBoundingClientRect();
var subHeight=65/1000 * window.innerHeight;
this.maxTableHeight = window.innerHeight -clientRect.y - this.$refs.xmProductProjectLink.$el.offsetTop-subHeight;
this.getXmProductProjectLinks();
this.maxTableHeight = util.calcTableMaxHeight(".el-table")
});
/**
listOption([{categoryId:'all',itemCode:'sex'},{categoryId:'all',itemCode:'grade'}] ).then(res=>{

2
src/views/xm/core/xmProjectGroupState/XmProjectGroupStateMng.vue

@ -269,7 +269,7 @@ XmProjectGroupStateOverview
this.$nextTick(() => {
var subHeight=70/1000 * window.innerHeight;
this.tableHeight = util.calcTableMaxHeight('el-table');
this.getXmProjectGroupStates();
});

4
src/views/xm/core/xmProjectPhase/XmProjectPhaseSelect.vue

@ -459,9 +459,9 @@
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.selectPhaseTable.$el.getBoundingClientRect();
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.selectPhaseTable.$el.offsetTop-subHeight;
this.tableHeight = util.calcTableMaxHeight(".el-table");
if(this.selProject){
this.getXmProjectPhases();
}

2
src/views/xm/core/xmQuestion/XmQuestionMng.vue

@ -942,7 +942,7 @@
this.$nextTick(() => {
var subHeight=70/1000 * window.innerHeight;
this.tableHeight = util.calcTableMaxHeight('el-table');
this.getXmQuestions();
});

5
src/views/xm/core/xmTaskExecuser/XmTaskExecuserMng.vue

@ -818,10 +818,7 @@
mounted() {
this.$nextTick(() => {
var subHeight=70/1000 * window.innerHeight;
if(this.selProject){
subHeight=100/1000 * window.innerHeight;
}
this.tableHeight = util.calcTableMaxHeight('el-table');
this.getXmTaskExecusers();
});

Loading…
Cancel
Save