代码生成模板新增加table加载动画
This commit is contained in:
parent
377fa0aadf
commit
b40cd33abb
@ -33,7 +33,7 @@ $end
|
|||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<!-- 数据区域 -->
|
<!-- 数据区域 -->
|
||||||
<el-table :data="dataList" ref="table" border highlight-current-row @selection-change="handleSelectionChange">
|
<el-table :data="dataList" v-loading="loading" ref="table" border highlight-current-row @selection-change="handleSelectionChange">
|
||||||
<el-table-column type="selection" width="50" align="center"/>
|
<el-table-column type="selection" width="50" align="center"/>
|
||||||
${VueViewListContent}
|
${VueViewListContent}
|
||||||
<el-table-column label="操作" align="center" width="200">
|
<el-table-column label="操作" align="center" width="200">
|
||||||
@ -166,10 +166,12 @@ $if(item.HtmlType == "datetime" && item.IsQuery == true)
|
|||||||
$end
|
$end
|
||||||
$end
|
$end
|
||||||
console.log(JSON.stringify(this.queryParams));
|
console.log(JSON.stringify(this.queryParams));
|
||||||
|
this.loading = true;
|
||||||
list${genTable.BusinessName}(this.queryParams).then(res => {
|
list${genTable.BusinessName}(this.queryParams).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.dataList = res.data.result;
|
this.dataList = res.data.result;
|
||||||
this.total = res.data.totalNum;
|
this.total = res.data.totalNum;
|
||||||
|
this.loading = false;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user