Commit 2079e492 authored by tianhongyang's avatar tianhongyang

fix

parent ee348886
...@@ -37,7 +37,11 @@ ...@@ -37,7 +37,11 @@
<div class="project-feedsummary-list-container"> <div class="project-feedsummary-list-container">
<dsk-skeleton v-if="tableLoading"></dsk-skeleton> <dsk-skeleton v-if="tableLoading"></dsk-skeleton>
<table-list-com :tableData="tableDataList" :formColum="formColum" v-else-if="!tableLoading" :maxHeight="true" :tableDataTotal="total" <table-list-com :tableData="tableDataList" :formColum="formColum" v-else-if="!tableLoading" :maxHeight="true" :tableDataTotal="total"
:paging="false"></table-list-com> :paging="false">
<template slot="jhcb">
</template>
</table-list-com>
</div> </div>
</div> </div>
</div> </div>
...@@ -97,7 +101,7 @@ export default { ...@@ -97,7 +101,7 @@ export default {
comProjectId: this.projectId, comProjectId: this.projectId,
menuTreeList: [], menuTreeList: [],
// 加载数据列表 // 加载数据列表
tableLoading: false, tableLoading: true,
total: 0, total: 0,
// 列表表头 // 列表表头
formColum: [ formColum: [
...@@ -110,6 +114,7 @@ export default { ...@@ -110,6 +114,7 @@ export default {
{ label: '计算规则', prop: "calculationRule", width: "137", uid: v4() }, { label: '计算规则', prop: "calculationRule", width: "137", uid: v4() },
{ label: '单位', prop: "unit", width: "57", uid: v4() }, { label: '单位', prop: "unit", width: "57", uid: v4() },
{ label: '甲供材料说明', prop: "materialDescription", width: "137", uid: v4() }, { label: '甲供材料说明', prop: "materialDescription", width: "137", uid: v4() },
{ label: '计划成本', prop: "jhcb", width: "137", align: "center", slot: true, uid: v4() },
], ],
// 已记录月份集合 // 已记录月份集合
monthList: [], monthList: [],
...@@ -194,6 +199,7 @@ export default { ...@@ -194,6 +199,7 @@ export default {
}, },
async getFeedSummaryList(params = {}) { async getFeedSummaryList(params = {}) {
try { try {
this.tableLoading = true;
const list = await getFeedSummaryListApi(params); const list = await getFeedSummaryListApi(params);
if (list.code == 200 && list.data instanceof Array) { if (list.code == 200 && list.data instanceof Array) {
this.tableDataList = list.data; this.tableDataList = list.data;
...@@ -201,6 +207,8 @@ export default { ...@@ -201,6 +207,8 @@ export default {
} }
} catch (error) { } catch (error) {
} finally {
this.tableLoading = false;
} }
}, },
async getFeedSummaryMenuTree(params) { async getFeedSummaryMenuTree(params) {
...@@ -397,6 +405,11 @@ export default { ...@@ -397,6 +405,11 @@ export default {
height: calc(100% - 48px); height: calc(100% - 48px);
/* overflow: auto; */ /* overflow: auto; */
.dsk-skeleton-outer-container {
padding: 0px;
height: 100%;
}
.table-list-com-ins { .table-list-com-ins {
height: 100%; height: 100%;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment