perf: 补上loading、统一table的滚动条尺寸
This commit is contained in:
@@ -56,9 +56,10 @@
|
||||
border
|
||||
tooltip-effect="light"
|
||||
v-show="mainResizeShow"
|
||||
v-scrollBar:el-table
|
||||
v-scrollBar:el-table="'large'"
|
||||
:height="mainTableHeight"
|
||||
ref="dcTable"
|
||||
v-loading="loading"
|
||||
:cell-class-name="assetStatClassName"
|
||||
style="width: 100%;">
|
||||
<el-table-column
|
||||
@@ -160,6 +161,7 @@
|
||||
tableId: 'dcTable', //需要分页的table的id,用于记录每页数量
|
||||
showTopBtn: false,
|
||||
mainTableHeight: this.$tableHeight.normal, //主列表table高度
|
||||
loading: false,
|
||||
currentDc: {
|
||||
id: '',
|
||||
name: '',
|
||||
@@ -366,7 +368,9 @@
|
||||
getTableData: function () {
|
||||
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
||||
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
||||
this.loading = true;
|
||||
this.$get('idc', this.searchLabel).then(response => {
|
||||
this.loading = false;
|
||||
if (response.code === 200) {
|
||||
this.tableData = response.data.list;
|
||||
this.pageObj.total = response.data.total
|
||||
|
||||
Reference in New Issue
Block a user