perf: 补上loading、统一table的滚动条尺寸

This commit is contained in:
陈劲松
2020-04-19 21:48:03 +08:00
parent ac72c455c7
commit eaf40a03db
22 changed files with 96 additions and 29 deletions

View File

@@ -103,9 +103,10 @@
border
class="nz-table endpoint-table"
:height="mainTableHeight"
v-scrollBar:el-table="'normal'"
v-scrollBar:el-table="'large'"
v-show="mainResizeShow"
ref="endpointTable"
v-loading="loading"
style="width: 100%;">
<el-table-column
:resizable="false"
@@ -204,6 +205,8 @@
vm = this;
let temp = this;
return {
loading: false,
assetDetail: [], //asset详情
endpointDetail: [],
targetTab: '',
@@ -347,7 +350,9 @@
this.endpointSearchLabel.moduleId = this.currentModule.id;
this.$set(this.endpointSearchLabel, 'pageNo', this.endpointPageObj.pageNo);
this.$set(this.endpointSearchLabel, 'pageSize', this.endpointPageObj.pageSize);
this.loading = true;
this.$get('endpoint', this.endpointSearchLabel).then(response => {
this.loading = false;
if (response.code === 200) {
for (let i = 0; i < response.data.list.length; i++) {
try {