|
@@ -45,7 +45,7 @@
|
|
|
<el-button @click="queryFloorFile(currentFolderId)">刷新</el-button>
|
|
|
</div>
|
|
|
<!-- 列表 -->
|
|
|
- <floorTable ref="floorTable" :tableData="tableData" :modelFolderName="currentFolderName" @openModelLog="queryModelLog"
|
|
|
+ <floorTable v-loading="tableLoading" ref="floorTable" :tableData="tableData" :modelFolderName="currentFolderName" @openModelLog="queryModelLog"
|
|
|
@replaceModel="repliaceModel" @percentFinish="queryFloorFile(currentFolderId)"
|
|
|
:persentList="persentList"></floorTable>
|
|
|
</el-card>
|
|
@@ -113,6 +113,7 @@ export default {
|
|
|
currentFloorModelId: "", //当前选择的楼层文件id
|
|
|
tableData: [],
|
|
|
loading: false, //加载loading
|
|
|
+ tableLoading: false, //表格加载loading
|
|
|
logData: [], //楼层文件对应的模型日志
|
|
|
replaceModelItem: null, //替换文件的item
|
|
|
uploadFloorModelIdList: [], //上传楼层文件得数组,上传完成则为空
|
|
@@ -214,6 +215,8 @@ export default {
|
|
|
*/
|
|
|
queryFloorFile(currentFolderId) {
|
|
|
if(currentFolderId){
|
|
|
+ this.tableData = [];
|
|
|
+ this.tableLoading = true;
|
|
|
let data = {
|
|
|
FolderId: currentFolderId,
|
|
|
ProjectId: this.projectId
|
|
@@ -250,7 +253,7 @@ export default {
|
|
|
// }
|
|
|
});
|
|
|
this.tableData = res.Content;
|
|
|
- this.loading = false;
|
|
|
+ this.tableLoading = false;
|
|
|
resolve();
|
|
|
});
|
|
|
});
|