Browse Source

表格优化

master
陈裕财 5 years ago
parent
commit
91ac32d637
  1. 6
      src/views/xm/core/xmEnvList/XmEnvListMng.vue
  2. 2
      src/views/xm/core/xmMenu/XmMenuMng.vue
  3. 2
      src/views/xm/core/xmMenu/XmMenuWithPlan.vue
  4. 9
      src/views/xm/core/xmMenuPlan/XmMenuPlanMng.vue
  5. 2
      src/views/xm/core/xmMenuState/XmMenuStateMng.vue
  6. 10
      src/views/xm/core/xmProductState/XmProductStateMng.vue
  7. 6
      src/views/xm/core/xmProject/XmProjectBudgetCost.vue
  8. 8
      src/views/xm/core/xmProjectContract/XmProjectContractMng.vue
  9. 7
      src/views/xm/core/xmProjectEnvList/XmProjectEnvListMng.vue
  10. 7
      src/views/xm/core/xmProjectGroupFormwork/XmProjectGroupFormwork.vue
  11. 11
      src/views/xm/core/xmProjectGroupFormwork/XmProjectGroupFormworkMng.vue
  12. 11
      src/views/xm/core/xmProjectGroupState/XmProjectGroupStateMng.vue
  13. 11
      src/views/xm/core/xmProjectGroupUser/XmProjectGroupUserMng.vue
  14. 11
      src/views/xm/core/xmProjectGroupUserCandidate/XmProjectGroupUserCandidateMng.vue
  15. 11
      src/views/xm/core/xmProjectKpi/XmProjectKpiMng.vue
  16. 34
      src/views/xm/core/xmProjectMBudgetCostNouser/XmProjectMBudgetCostNouserMng.vue
  17. 30
      src/views/xm/core/xmProjectMBudgetCostUser/XmProjectMBudgetCostUserMng.vue
  18. 33
      src/views/xm/core/xmProjectMCostNouser/XmProjectMCostNouserMng.vue
  19. 7
      src/views/xm/core/xmProjectMCostUser/XmProjectMCostUserList.vue
  20. 26
      src/views/xm/core/xmProjectMCostUser/XmProjectMCostUserMng.vue
  21. 6
      src/views/xm/core/xmProjectPhase/XmProjectPhaseBatch.vue
  22. 2
      src/views/xm/core/xmProjectPhase/XmProjectPhaseMng.vue
  23. 5
      src/views/xm/core/xmQuestion/XmQuestionMng.vue
  24. 4
      src/views/xm/core/xmRecord/XmRecord.vue
  25. 5
      src/views/xm/core/xmTask/XmTaskList.vue
  26. 2
      src/views/xm/core/xmTask/XmTaskListForMenu.vue
  27. 2
      src/views/xm/core/xmTask/XmTaskListForProduct.vue
  28. 2
      src/views/xm/core/xmTask/XmTaskMng.vue
  29. 2
      src/views/xm/core/xmTask/XmTaskMngBatch.vue
  30. 5
      src/views/xm/core/xmTaskExecuser/XmTaskExecuserMng.vue
  31. 5
      src/views/xm/core/xmTestCase/XmTestCaseMng.vue
  32. 5
      src/views/xm/core/xmTestCaseExec/XmTestCaseExecMng.vue

6
src/views/xm/core/xmEnvList/XmEnvListMng.vue

@ -8,7 +8,7 @@
</el-row>
<el-row class="app-container">
<!--列表 XmEnvList xm_env_list-->
<el-table :data="xmEnvLists" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :max-height="tableHeight" :data="xmEnvLists" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column sortable type="selection" width="40"></el-table-column>
<el-table-column prop="ipAddress" label="内网ip地址" min-width="80" ></el-table-column>
<el-table-column prop="port" label="内网访问端口" min-width="80" ></el-table-column>
@ -101,6 +101,7 @@
/**begin 自定义属性请在下面加 请加备注**/
envStateList:["不可用","已启用","已过期"],
tableHeight:300,
// {
// value: "0",
// label: "",
@ -256,6 +257,9 @@
},
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=100/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmEnvLists();
});
}

2
src/views/xm/core/xmMenu/XmMenuMng.vue

@ -1043,7 +1043,7 @@
},
mounted() {
this.$nextTick(() => {
var subHeight=300/1000 * window.innerHeight
var subHeight=350/1000 * window.innerHeight
if(this.selProject){
subHeight=400/1000 * window.innerHeight
}

2
src/views/xm/core/xmMenu/XmMenuWithPlan.vue

@ -514,7 +514,7 @@
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=65/1000 * window.innerHeight;
var subHeight=100/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmMenus();
});

9
src/views/xm/core/xmMenuPlan/XmMenuPlanMng.vue

@ -8,7 +8,7 @@
</el-row>
<el-row class="app-container">
<!--列表 XmMenuPlan 功能计划表,无需前端维护所有数据由汇总统计得出-->
<el-table :data="xmMenuPlans" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :max-height="tableHeight" :data="xmMenuPlans" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column type="selection" width="45"></el-table-column>
<el-table-column sortable type="index" width="45"></el-table-column>
<el-table-column prop="projectId" label="项目编号" min-width="80" ></el-table-column>
@ -124,9 +124,9 @@
//xmMenuPlan
editForm: {
projectId:'',id:'',projectName:'',menuId:'',planStartTime:'',planEndTime:'',actStartTime:'',actEndTime:'',planWorkload:'',actWorkload:'',planCostAmount:'',actCostAmount:'',finishRate:'',demandRate:'',designRate:'',devRate:'',uatRate:'',sitRate:'',onlineStatus:'',onlineTime:'',planStatus:'',chargeUserid:'',chargeUsername:'',menuStatus:'',ctime:'',ltime:'',cuserid:'',cusername:'',calcTime:'',menuName:'',planWorkhours:'',planWorkerCnt:'',closedBugs:'',activeBugs:'',confirmedBugs:'',resolvedBugs:'',testCases:'',execCases:'',designCases:'',finishCases:'',iterationCnt:'',taskCnt:'',finishTaskCnt:'',productId:'',productName:'',bugCnt:''
}
},
/**begin 自定义属性请在下面加 请加备注**/
tableHeight:300,
/**end 自定义属性请在上面加 请加备注**/
}
},//end data
@ -265,6 +265,9 @@
},
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=80/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmMenuPlans();
});
/**

2
src/views/xm/core/xmMenuState/XmMenuStateMng.vue

@ -9,7 +9,7 @@
<el-button type="primary" v-if=" batchEditVisible==true " @click="noBatchEdit" v-loading="load.edit">返回</el-button>
</el-row>
<el-row class="app-container" v-show="!batchEditVisible">
<el-table ref="table" :data="xmMenusTreeData" default-expand-all row-key="menuId" :tree-props="{children: 'children', hasChildren: 'hasChildren'}" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :max-height="tableHeight" :data="xmMenusTreeData" default-expand-all row-key="menuId" :tree-props="{children: 'children', hasChildren: 'hasChildren'}" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column sortable type="selection" width="40"></el-table-column>
<el-table-column prop="menuName" label="故事名称" min-width="150" >
<template slot-scope="scope">

10
src/views/xm/core/xmProductState/XmProductStateMng.vue

@ -6,7 +6,7 @@
</el-row>
<el-row class="app-container">
<!--列表 XmProductState 功能状态表,无需前端维护所有数据由汇总统计得出-->
<el-table :data="xmProductStates" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :max-height="tableHeight" :data="xmProductStates" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column sortable type="index" width="45"></el-table-column>
<el-table-column prop="productName" label="产品名称" min-width="80" ></el-table-column>
<el-table-column prop="calcTime" label="汇总时间" min-width="80" ></el-table-column>
@ -82,9 +82,9 @@
//xmProductState
editForm: {
id:'',planStartTime:'',planEndTime:'',actStartTime:'',actEndTime:'',planWorkload:'',actWorkload:'',planCostAmount:'',actCostAmount:'',finishRate:'',demandRate:'',designRate:'',devRate:'',uatRate:'',sitRate:'',ctime:'',ltime:'',cuserid:'',cusername:'',calcTime:'',planWorkhours:'',planWorkerCnt:'',closedBugs:'',activeBugs:'',confirmedBugs:'',resolvedBugs:'',productId:'',productName:'',testCases:'',execCases:'',designCases:'',finishCases:'',projectCnt:'',iterationCnt:'',taskCnt:'',finishTaskCnt:''
}
},
/**begin 自定义属性请在下面加 请加备注**/
tableHeight:300,
/**end 自定义属性请在上面加 请加备注**/
}
},//end data
@ -224,6 +224,10 @@
},
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=80/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmProductStates();
});
/**

6
src/views/xm/core/xmProject/XmProjectBudgetCost.vue

@ -28,6 +28,7 @@
</el-option>
</el-select> -->
<el-table
:max-height="tableHeight"
v-if="showType == '人力'"
:data="sumXmProjectMBudgetCostUsersConvert"
highlight-current-row
@ -55,6 +56,7 @@
</el-table>
<el-table
:max-height="tableHeight"
v-if="showType == '非人力'"
:data="sumXmProjectMBudgetCostNousersConvert"
highlight-current-row
@ -212,6 +214,7 @@ import { months } from 'moment';
sumXmProjectMBudgetCostNousers:[],
budgetCostNouser:null,
budgetCostNouserVisible:false,
tableHeight:300,
/**end 自定义属性请在上面加 请加备注**/
}
},//end data
@ -303,6 +306,9 @@ import { months } from 'moment';
mounted() {
this.showType = "人力";
this.$nextTick(() => {
//var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=500/1000 * window.innerHeight;
this.tableHeight = window.innerHeight-subHeight;
});
this.selProjectBudget=Object.assign({},this.selProject);
}

8
src/views/xm/core/xmProjectContract/XmProjectContractMng.vue

@ -12,7 +12,7 @@
</el-row>
<el-row class="app-container">
<!--列表 XmProjectContract xm_project_contract-->
<el-table :data="xmProjectContracts" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :max-height="tableHeight" :data="xmProjectContracts" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<!-- ht_contract_card表 -->
<el-table-column prop="htSn" label="合同编号" min-width="80" ></el-table-column>
<el-table-column prop="htName" label="合同标题" min-width="80" ></el-table-column>
@ -94,7 +94,7 @@
htId:'',draftId:'',cpId:'',cpName:'',linkName:'',linkPhone:'',cpAddress:'',cpOpenBank:'',cpBankAccount:'',htName:'',htSn:'',htGrossAmount:'',htKaiPiaoAmount:'',htReceivedAmount:'',htReceivableAmount:'',htPayedAmount:'',htPayableAmount:'',htFile:'',htEffectDate:'',htFzUserid:'',htFzUsername:'',htParentType:'',htType:'',htSignDate:'',htExpireDate:'',htStatus:'',htDemand:'',htParty:'',htPartyName:'',htImportantClause:'',branchId:'',createTime:'',createUserId:'',createUserName:''
},
/**begin 自定义属性请在下面加 请加备注**/
tableHeight:300,
/**end 自定义属性请在上面加 请加备注**/
}
},//end data
@ -240,6 +240,10 @@
},
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=80/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmProjectContracts();
});
}

7
src/views/xm/core/xmProjectEnvList/XmProjectEnvListMng.vue

@ -9,7 +9,7 @@
</div>
<el-row class="app-container">
<!--列表 XmProjectEnvList xm_project_env_list-->
<el-table :data="xmProjectEnvLists" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :max-height="tableHeight" :data="xmProjectEnvLists" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column sortable type="selection" width="40"></el-table-column>
<el-table-column prop="ipAddress" label="ip地址" min-width="80" ></el-table-column>
<el-table-column prop="port" label="访问端口" min-width="80" ></el-table-column>
@ -135,6 +135,7 @@
name: this.selProject.name,
},
tableHeight:300,
/**end 自定义属性请在上面加 请加备注**/
}
},//end data
@ -317,6 +318,10 @@
},
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=80/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
console.log(this.currProject);
this.getXmProjectEnvLists();
});

7
src/views/xm/core/xmProjectGroupFormwork/XmProjectGroupFormwork.vue

@ -68,7 +68,7 @@
<el-button v-else @click.stop="setTemplateVisible=false" icon="el-icon-back">返回</el-button>
</el-row>
<el-table ref="groupTable" @selection-change="addIsSels" @row-click.self="changesels" :data="convertXmProjectGroupFormworks" v-loading="load.list">
<el-table ref="groupTable" :max-height="tableHeight" @selection-change="addIsSels" @row-click.self="changesels" :data="convertXmProjectGroupFormworks" v-loading="load.list">
<el-table-column type="selection" aria-disabled width="55"></el-table-column>
<el-table-column align="center" prop="groupName" label="小组模板" width="200"></el-table-column>
<el-table-column align="center" label="操作">
@ -246,6 +246,7 @@
imGroupVisible:false,
groupRoleDescVisible:false,
setTemplateVisible:false,
tableHeight:300,
/**end 自定义属性请在上面加 请加备注**/
}
}, //end data
@ -552,6 +553,10 @@
},
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=80/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
if(this.selGroups){
this.selGroups.forEach(i=>{
if(i.groupUsers){

11
src/views/xm/core/xmProjectGroupFormwork/XmProjectGroupFormworkMng.vue

@ -8,7 +8,7 @@
</el-row>
<el-row class="app-container">
<!--列表 XmProjectGroupFormwork xm_project_group_formwork-->
<el-table :data="xmProjectGroupFormworks" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :max-height="tableHeight" :data="xmProjectGroupFormworks" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column sortable type="selection" width="40"></el-table-column>
<el-table-column sortable type="index" width="40"></el-table-column>
<el-table-column prop="id" label="主键" min-width="80" ></el-table-column>
@ -80,9 +80,10 @@
//xmProjectGroupFormwork
editForm: {
id:'',branchId:'',groupName:'',isPub:''
}
},
/**begin 自定义属性请在下面加 请加备注**/
tableHeight:300,
/**end 自定义属性请在上面加 请加备注**/
}
},//end data
@ -222,6 +223,10 @@
},
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=80/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmProjectGroupFormworks();
});
}

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

@ -7,7 +7,7 @@
</el-row>
<el-row class="app-container">
<!--列表 XmProjectGroupState 功能状态表,无需前端维护所有数据由汇总统计得出-->
<el-table :data="xmProjectGroupStates" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :max-height="tableHeight" :data="xmProjectGroupStates" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column sortable type="index" width="45"></el-table-column>
<el-table-column prop="groupName" label="团队名称" min-width="80" ></el-table-column>
<el-table-column prop="finishRate" label="总体进度" min-width="80" ></el-table-column>
@ -88,9 +88,10 @@
//xmProjectGroupState
editForm: {
id:'',planStartTime:'',planEndTime:'',actStartTime:'',actEndTime:'',planWorkload:'',actWorkload:'',planCostAmount:'',actCostAmount:'',finishRate:'',demandRate:'',designRate:'',devRate:'',uatRate:'',sitRate:'',ctime:'',calcTime:'',planWorkhours:'',planWorkerCnt:'',closedBugs:'',activeBugs:'',confirmedBugs:'',resolvedBugs:'',testCases:'',execCases:'',designCases:'',finishCases:'',iterationCnt:'',taskCnt:'',finishTaskCnt:'',bizDate:'',bugCnt:'',groupId:'',projectId:'',projectName:'',groupName:''
}
},
/**begin 自定义属性请在下面加 请加备注**/
tableHeight:300,
/**end 自定义属性请在上面加 请加备注**/
}
},//end data
@ -241,6 +242,10 @@
},
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=80/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmProjectGroupStates();
});
/**

11
src/views/xm/core/xmProjectGroupUser/XmProjectGroupUserMng.vue

@ -8,7 +8,7 @@
</el-row>
<el-row class="app-container">
<!--列表 XmProjectGroupUser xm_project_group_user-->
<el-table :data="xmProjectGroupUsers" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :max-height="tableHeight" :data="xmProjectGroupUsers" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column sortable type="selection" width="40"></el-table-column>
<el-table-column sortable type="index" width="40"></el-table-column>
<el-table-column prop="id" label="主键" min-width="80" ></el-table-column>
@ -80,9 +80,10 @@
//xmProjectGroupUser
editForm: {
id:'',groupId:'',userid:'',username:''
}
},
/**begin 自定义属性请在下面加 请加备注**/
tableHeight:300,
/**end 自定义属性请在上面加 请加备注**/
}
},//end data
@ -222,6 +223,10 @@
},
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=80/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmProjectGroupUsers();
});
}

11
src/views/xm/core/xmProjectGroupUserCandidate/XmProjectGroupUserCandidateMng.vue

@ -8,7 +8,7 @@
</el-row>
<el-row class="app-container">
<!--列表 XmProjectGroupUserCandidate xm_project_group_user_candidate-->
<el-table :data="xmProjectGroupUserCandidates" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :max-height="tableHeight" :data="xmProjectGroupUserCandidates" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column sortable type="selection" width="40"></el-table-column>
<el-table-column sortable type="index" width="40"></el-table-column>
<el-table-column prop="id" label="主键" min-width="80" ></el-table-column>
@ -84,9 +84,10 @@
//xmProjectGroupUserCandidate
editForm: {
id:'',groupId:'',userid:'',username:'',isHead:'',createTime:'',candidateStatus:'',outTime:''
}
},
/**begin 自定义属性请在下面加 请加备注**/
tableHeight:300,
/**end 自定义属性请在上面加 请加备注**/
}
},//end data
@ -226,6 +227,10 @@
},
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=80/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmProjectGroupUserCandidates();
});
}

11
src/views/xm/core/xmProjectKpi/XmProjectKpiMng.vue

@ -9,7 +9,7 @@
</div>
</el-menu>
<!--列表 XmProjectKpi xm_project_kpi-->
<el-table :data="xmProjectKpis" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :max-height="tableHeight" :data="xmProjectKpis" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column sortable type="index" width="40"></el-table-column>
<el-table-column prop="kpiName" label="指标名称" min-width="80" ></el-table-column>
<el-table-column prop="minValue" label="正常值范围" min-width="80" >
@ -102,9 +102,10 @@
//xmProjectKpi
editForm: {
projectId:'',branchId:'',kpiIndex:'',kpiName:'',maxValue:'',minValue:'',id:'',score:'',scoreDate:'',bizFlowState:'',bizProcInstId:'',kpiValue:'',remark:'',calcType:'',nextCalcDate:''
}
},
/**begin 自定义属性请在下面加 请加备注**/
tableHeight:300,
/**end 自定义属性请在上面加 请加备注**/
}
},//end data
@ -249,6 +250,10 @@
},
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=80/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmProjectKpis();
});
}

34
src/views/xm/core/xmProjectMBudgetCostNouser/XmProjectMBudgetCostNouserMng.vue

@ -1,21 +1,26 @@
<template>
<section>
<el-row class="app-container">
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询"></el-input>
<el-button type="primary" v-loading="load.list" :disabled="load.list==true" v-on:click="searchXmProjectMBudgetCostNousers">查询</el-button>
<el-button type="primary" v-if="batchEditVisible==false" @click="showAdd">+新增预算明细</el-button>
<el-button type="primary" v-if="batchEditVisible==false" @click="batchEditVisible=true">批量修改</el-button>
<el-button type="primary" v-if="batchEditVisible==true" @click="batchSave">批量保存</el-button>
<el-button type="primary" v-if="batchEditVisible==true" @click="noBatchEdit">返回</el-button>
<el-button type="danger" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true">批量删除</el-button>
<span style="margin-left:10px;font-size:14px;">项目总预算</span><el-tag type='success'> {{selProject.planTotalCost}}</el-tag>
<span style="margin-left:10px;font-size:14px;">非人力总预算</span><el-tag type='warning'>{{selProject.planNouserAt}}</el-tag>
<span style="margin-left:10px;font-size:14px;">内部人力总预算</span><el-tag type='warning'>{{selProject.planInnerUserAt}}</el-tag>
<span style="margin-left:10px;font-size:14px;">外购人力总预算</span><el-tag type='warning'>{{selProject.planOutUserAt}}</el-tag>
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询">
<template slot="append">
<el-button type="primary" v-loading="load.list" :disabled="load.list==true" v-on:click="searchXmProjectMBudgetCostNousers" icon="el-icon-search">查询</el-button>
</template>
</el-input>
<el-button type="primary" v-if="batchEditVisible==false" @click="showAdd" icon="el-icon-plus"></el-button>
<el-button v-if="batchEditVisible==false" @click="batchEditVisible=true" icon="el-icon-edit"></el-button>
<el-button type="primary" v-if="batchEditVisible==true" @click="batchSave" icon="el-icon-finish">保存</el-button>
<el-button v-if="batchEditVisible==true" @click="noBatchEdit" icon="el-icon-back">返回</el-button>
<el-button type="danger" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true" icon="el-icon-delete"></el-button>
<font class="hidden-md-and-down">
<span style="margin-left:10px;font-size:14px;">项目总预算</span><el-tag type='success'> {{selProject.planTotalCost}}</el-tag>
<span style="margin-left:10px;font-size:14px;">非人力总预算</span><el-tag type='warning'>{{selProject.planNouserAt}}</el-tag>
<span style="margin-left:10px;font-size:14px;">内部人力总预算</span><el-tag type='warning'>{{selProject.planInnerUserAt}}</el-tag>
<span style="margin-left:10px;font-size:14px;">外购人力总预算</span><el-tag type='warning'>{{selProject.planOutUserAt}}</el-tag>
</font>
</el-row>
<el-row class="app-container">
<!--列表 XmProjectMBudgetCostNouser xm_project_m_budget_cost_nouser-->
<el-table :data="xmProjectMBudgetCostNousers" show-summary @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :max-height="tableHeight" :data="xmProjectMBudgetCostNousers" show-summary @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column sortable type="selection" width="40"></el-table-column>
<el-table-column sortable type="index" width="40"></el-table-column>
<el-table-column prop="subjectId" label="预算科目编号" min-width="80" >
@ -146,6 +151,7 @@
batchEditVisible:false,
valueChangeRows:[],
tableHeight:300,
/**end 自定义属性请在上面加 请加备注**/
}
},//end data
@ -338,6 +344,10 @@
},
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=100/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmProjectMBudgetCostNousers();
});

30
src/views/xm/core/xmProjectMBudgetCostUser/XmProjectMBudgetCostUserMng.vue

@ -1,22 +1,27 @@
<template>
<section>
<el-row class="app-container">
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询"></el-input>
<el-button type="primary" v-loading="load.list" :disabled="load.list==true" v-on:click="searchXmProjectMBudgetCostUsers">查询</el-button>
<el-button type="primary" v-if="batchEditVisible==false" @click="showAdd">+明细</el-button>
<el-button type="primary" v-if="batchEditVisible==false" @click="batchEditVisible=true">批量修改</el-button>
<el-button type="primary" v-if="batchEditVisible==true" @click="batchSave">批量保存</el-button>
<el-button type="primary" v-if="batchEditVisible==true" @click="noBatchEdit">返回</el-button>
<el-button type="danger" v-if="batchEditVisible==false" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true">批量删除</el-button>
<span style="margin-left:10px;font-size:14px;">项目总预算</span><el-tag type='success'> {{selProject.planTotalCost}}</el-tag>
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询">
<template slot="append">
<el-button type="primary" v-loading="load.list" :disabled="load.list==true" v-on:click="searchXmProjectMBudgetCostUsers" icon="el-icon-search">查询</el-button>
</template>
</el-input>
<el-button type="primary" v-if="batchEditVisible==false" @click="showAdd" icon="el-icon-plus"></el-button>
<el-button v-if="batchEditVisible==false" @click="batchEditVisible=true" icon="el-icon-edit"></el-button>
<el-button type="primary" v-if="batchEditVisible==true" @click="batchSave" icon="el-icon-finish">保存</el-button>
<el-button v-if="batchEditVisible==true" @click="noBatchEdit" icon="el-icon-back">返回</el-button>
<el-button type="danger" v-if="batchEditVisible==false" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true" icon="el-icon-delete"></el-button>
<font class="hidden-md-and-down">
<span style="margin-left:10px;font-size:14px;">项目总预算</span><el-tag type='success'> {{selProject.planTotalCost}}</el-tag>
<span style="margin-left:10px;font-size:14px;">非人力总预算</span><el-tag type='warning'>{{selProject.planNouserAt}}</el-tag>
<span style="margin-left:10px;font-size:14px;">内部人力总预算</span><el-tag type='warning'>{{selProject.planInnerUserAt}}</el-tag>
<span style="margin-left:10px;font-size:14px;">外购人力总预算</span><el-tag type='warning'>{{selProject.planOutUserAt}}</el-tag>
</font>
</el-row>
<el-row class="app-container">
<!--列表 XmProjectMBudgetCostUser xm_project_m_budget_cost_user-->
<el-table :data="xmProjectMBudgetCostUsers" show-summary @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column sortable type="selection" width="40"></el-table-column>
<el-table ref="table" :max-height="tableHeight" :data="xmProjectMBudgetCostUsers" show-summary @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column sortable type="selection" width="60"></el-table-column>
<el-table-column sortable type="index" width="40"></el-table-column>
<el-table-column prop="username" label="用户名" min-width="80" >
<template slot-scope="scope">
@ -150,6 +155,7 @@
/**begin 自定义属性请在下面加 请加备注**/
batchEditVisible:false,
valueChangeRows:[],
tableHeight:300,
/**end 自定义属性请在上面加 请加备注**/
}
},//end data
@ -343,6 +349,10 @@
},
mounted() {
this.$nextTick(() => {
debugger
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=100/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmProjectMBudgetCostUsers();
});

33
src/views/xm/core/xmProjectMCostNouser/XmProjectMCostNouserMng.vue

@ -1,21 +1,25 @@
<template>
<section>
<el-row class="app-container">
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询"></el-input>
<el-button type="primary" v-loading="load.list" :disabled="load.list==true" v-on:click="searchXmProjectMCostNousers">查询</el-button>
<el-button type="primary" v-if="batchEditVisible==false" @click="showAdd">+新增费用</el-button>
<el-button type="primary" v-if="batchEditVisible==false" @click="batchEditVisible=true">批量修改</el-button>
<el-button type="primary" v-if="batchEditVisible==true" @click="batchSave">批量保存</el-button>
<el-button type="primary" v-if="batchEditVisible==true" @click="noBatchEdit">返回</el-button>
<el-button type="danger" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true">批量删除</el-button>
<span style="margin-left:10px;font-size:14px;">项目总成本</span><el-tag type='success'> {{selProject.planTotalCost}}</el-tag>
<span style="margin-left:10px;font-size:14px;">非人力总成本</span><el-tag type='warning'>{{selProject.planNouserAt}}</el-tag>
<span style="margin-left:10px;font-size:14px;">内部人力总成本</span><el-tag type='warning'>{{selProject.planInnerUserAt}}</el-tag>
<span style="margin-left:10px;font-size:14px;">外购人力总成本</span><el-tag type='warning'>{{selProject.planOutUserAt}}</el-tag>
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询">
<template slot="append">
<el-button type="primary" v-loading="load.list" :disabled="load.list==true" v-on:click="searchXmProjectMCostNousers" icon="el-icon-search">查询</el-button>
</template></el-input>
<el-button type="primary" v-if="batchEditVisible==false" @click="showAdd" icon="el-icon-plus"></el-button>
<el-button type="primary" v-if="batchEditVisible==false" @click="batchEditVisible=true" icon="el-icon-edit"></el-button>
<el-button type="primary" v-if="batchEditVisible==true" @click="batchSave" icon="el-icon-finish">保存</el-button>
<el-button type="primary" v-if="batchEditVisible==true" @click="noBatchEdit" icon="el-icon-back">返回</el-button>
<el-button type="danger" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true" icon="el-icon-delete"></el-button>
<font class="hidden-md-and-down">
<span style="margin-left:10px;font-size:14px;">项目总成本</span><el-tag type='success'> {{selProject.planTotalCost}}</el-tag>
<span style="margin-left:10px;font-size:14px;">非人力总成本</span><el-tag type='warning'>{{selProject.planNouserAt}}</el-tag>
<span style="margin-left:10px;font-size:14px;">内部人力总成本</span><el-tag type='warning'>{{selProject.planInnerUserAt}}</el-tag>
<span style="margin-left:10px;font-size:14px;">外购人力总成本</span><el-tag type='warning'>{{selProject.planOutUserAt}}</el-tag>
</font>
</el-row>
<el-row class="app-container">
<!--列表 XmProjectMCostNouser xm_project_m_budget_cost_nouser-->
<el-table :data="xmProjectMCostNousers" show-summary @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :max-height="tableHeight" :data="xmProjectMCostNousers" show-summary @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column sortable type="selection" width="40"></el-table-column>
<el-table-column sortable type="index" width="40"></el-table-column>
<el-table-column prop="subjectId" label="成本科目编号" min-width="80" >
@ -148,6 +152,7 @@
batchEditVisible:false,
valueChangeRows:[],
tableHeight:300,
/**end 自定义属性请在上面加 请加备注**/
}
},//end data
@ -340,6 +345,10 @@
},
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=100/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmProjectMCostNousers();
});

7
src/views/xm/core/xmProjectMCostUser/XmProjectMCostUserList.vue

@ -6,7 +6,7 @@
</el-row>
<el-row class="app-container">
<!--列表 XmProjectMCostUser xm_project_m_budget_cost_user-->
<el-table :data="xmProjectMCostUsers" show-summary @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :max-height="tableHeight" :data="xmProjectMCostUsers" show-summary @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column sortable type="selection" width="40"></el-table-column>
<el-table-column sortable type="index" width="40"></el-table-column>
<el-table-column prop="username" label="用户名" min-width="80" >
@ -127,6 +127,7 @@
editForm: {
subjectId:'',projectId:'',userid:'',createTime:'',sendCostTime:'',username:'',projectName:'',remark:'',id:'',taskId:'',taskName:'',actWorkload:'',bizzStartDate:'',bizzEndDate:'',bizProcInstId:'',bizFlowState:'',projectPhaseId:'',actCostAmount:'',costType:'',bizMonth:'',bizDate:'',subjectName:'',projectPhaseName:''
},
tableHeight:300,
/**begin 自定义属性请在下面加 请加备注**/
/**end 自定义属性请在上面加 请加备注**/
}
@ -238,6 +239,10 @@
},
mounted() {
this.$nextTick(() => {
debugger
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=160/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmProjectMCostUsers();
});

26
src/views/xm/core/xmProjectMCostUser/XmProjectMCostUserMng.vue

@ -1,21 +1,27 @@
<template>
<section>
<el-row class="app-container">
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询"></el-input>
<el-button type="primary" v-loading="load.list" :disabled="load.list==true" v-on:click="searchXmProjectMCostUsers">查询</el-button>
<el-button type="primary" v-if="batchEditVisible==false" @click="showAdd">+明细</el-button>
<el-button type="primary" v-if="batchEditVisible==false" @click="batchEditVisible=true">批量修改</el-button>
<el-button type="primary" v-if="batchEditVisible==true" @click="batchSave">批量保存</el-button>
<el-button type="primary" v-if="batchEditVisible==true" @click="noBatchEdit">返回</el-button>
<el-button type="danger" v-if="batchEditVisible==false" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true">批量删除</el-button>
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询">
<template slot="append">
<el-button type="primary" v-loading="load.list" :disabled="load.list==true" v-on:click="searchXmProjectMCostUsers" icon="el-icon-search">查询</el-button>
</template>
</el-input>
<el-button type="primary" v-if="batchEditVisible==false" @click="showAdd" icon="el-icon-plus"></el-button>
<el-button v-if="batchEditVisible==false" @click="batchEditVisible=true" icon="el-icon-edit"></el-button>
<el-button type="primary" v-if="batchEditVisible==true" @click="batchSave"> icon="el-icon-finish">保存</el-button>
<el-button v-if="batchEditVisible==true" @click="noBatchEdit" icon="el-icon-back">返回</el-button>
<el-button type="danger" v-if="batchEditVisible==false" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true" icon="el-icon-delete"></el-button>
<font class="hidden-md-and-down">
<span style="margin-left:10px;font-size:14px;">项目总成本</span><el-tag type='success'> {{selProject.planTotalCost}}</el-tag>
<span style="margin-left:10px;font-size:14px;">非人力总成本</span><el-tag type='warning'>{{selProject.planNouserAt}}</el-tag>
<span style="margin-left:10px;font-size:14px;">内部人力总成本</span><el-tag type='warning'>{{selProject.planInnerUserAt}}</el-tag>
<span style="margin-left:10px;font-size:14px;">外购人力总成本</span><el-tag type='warning'>{{selProject.planOutUserAt}}</el-tag>
</font>
</el-row>
<el-row class="app-container">
<!--列表 XmProjectMCostUser xm_project_m_budget_cost_user-->
<el-table :data="xmProjectMCostUsers" show-summary @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :max-height="tableHeight" :data="xmProjectMCostUsers" show-summary @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column sortable type="selection" width="40"></el-table-column>
<el-table-column sortable type="index" width="40"></el-table-column>
<el-table-column prop="username" label="用户名" min-width="80" >
@ -150,6 +156,7 @@
/**begin 自定义属性请在下面加 请加备注**/
batchEditVisible:false,
valueChangeRows:[],
tableHeight:300,
/**end 自定义属性请在上面加 请加备注**/
}
},//end data
@ -343,6 +350,9 @@
},
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=100/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmProjectMCostUsers();
});

6
src/views/xm/core/xmProjectPhase/XmProjectPhaseBatch.vue

@ -24,7 +24,7 @@
</el-row>
<el-row class="app-container" >
<!--列表 XmProjectPhase xm_project_phase-->
<el-table class="drag-table" default-expand-all :summary-method="getSummariesForBatchEdit" :data="projectPhaseTreeData" :show-summary="true" row-key="id" :tree-props="{children: 'children', hasChildren: 'hasChildren'}" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table ref="table" :max-height="tableHeight" class="drag-table" default-expand-all :summary-method="getSummariesForBatchEdit" :data="projectPhaseTreeData" :show-summary="true" row-key="id" :tree-props="{children: 'children', hasChildren: 'hasChildren'}" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column type="selection" width="50"></el-table-column>
<el-table-column prop="seqNo" label="序号" width="150">
<template slot-scope="scope">
@ -1210,7 +1210,9 @@
mounted() {
this.$nextTick(() => {
this.tableHeight = window.innerHeight - 250;
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=140/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
if(this.selProject){
this.getXmProjectPhases();
}

2
src/views/xm/core/xmProjectPhase/XmProjectPhaseMng.vue

@ -1292,7 +1292,7 @@ import XmProjectGroupSelect from '../xmProjectGroup/XmProjectGroupSelect.vue';
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=100/1000 * window.innerHeight;
var subHeight=140/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
if(this.selProject){
this.getXmProjectPhases();

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

@ -680,7 +680,10 @@
}
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=65/1000 * window.innerHeight;
var subHeight=50/1000 * window.innerHeight;
if(this.selProject){
subHeight=100/1000 * window.innerHeight;
}
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmQuestions();
});

4
src/views/xm/core/xmRecord/XmRecord.vue

@ -257,6 +257,10 @@
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=50/1000 * window.innerHeight;
if(this.projectId){
subHeight=100/1000 * window.innerHeight;
}
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmRecords();
});

5
src/views/xm/core/xmTask/XmTaskList.vue

@ -439,7 +439,10 @@
this.filters.selProject=this.selProject
this.$nextTick(()=>{
var clientRect=this.$refs.taskTable.$el.getBoundingClientRect();
var subHeight=85;
var subHeight=85/1000 * window.innerHeight;
if(this.selProject){
subHeight=100/1000 * window.innerHeight;
}
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.taskTable.$el.offsetTop-subHeight;
this.getXmTasks();
});

2
src/views/xm/core/xmTask/XmTaskListForMenu.vue

@ -400,7 +400,7 @@
mounted() {
this.$nextTick(()=>{
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=85/1000 * window.innerHeight;
var subHeight=140/1000 * window.innerHeight;
if(this.isTaskCenter){
subHeight=50/1000 * window.innerHeight;
}

2
src/views/xm/core/xmTask/XmTaskListForProduct.vue

@ -460,7 +460,7 @@
mounted() {
this.$nextTick(()=>{
var clientRect=this.$refs.taskTable.$el.getBoundingClientRect();
var subHeight=85/1000 * window.innerHeight;
var subHeight=140/1000 * window.innerHeight;
if(this.isTaskCenter){
subHeight=50/1000 * window.innerHeight;
}

2
src/views/xm/core/xmTask/XmTaskMng.vue

@ -1664,7 +1664,7 @@ XmProjectGroupSelect
this.$nextTick(()=>{
this.getXmTasks();
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=150/1000 * window.innerHeight;
var subHeight=140/1000 * window.innerHeight;
if(this.isTaskCenter){
subHeight=50/1000 * window.innerHeight;
}

2
src/views/xm/core/xmTask/XmTaskMngBatch.vue

@ -1272,7 +1272,7 @@
}
this.$nextTick(()=>{
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=85/1000 * window.innerHeight;
var subHeight=140/1000 * window.innerHeight;
if(this.isTaskCenter){
subHeight=50/1000 * window.innerHeight;
}

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

@ -783,7 +783,10 @@
mounted() {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=50;
var subHeight=65/1000 * window.innerHeight;
if(this.selProject){
subHeight=100/1000 * window.innerHeight;
}
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmTaskExecusers();
});

5
src/views/xm/core/xmTestCase/XmTestCaseMng.vue

@ -299,7 +299,10 @@
this.$nextTick(() => {
this.getXmTestCases();
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=65;
var subHeight=65;
if(this.selProject){
subHeight=100/1000 * window.innerHeight;
}
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
});
/**

5
src/views/xm/core/xmTestCaseExec/XmTestCaseExecMng.vue

@ -633,7 +633,10 @@
this.filters.selProject=this.selProject;
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=70/1000 * window.innerHeight;
var subHeight=65/1000 * window.innerHeight;
if(this.selProject){
subHeight=100/1000 * window.innerHeight;
}
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmTestCaseExecs();
});

Loading…
Cancel
Save