|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <div class="hc-full">
|
|
|
|
|
|
+ <div v-loading="!isAfterRender" class="hc-full" element-loading-text="加载中...">
|
|
<hc-table
|
|
<hc-table
|
|
:column="tableColumn" :datas="tableData" :index-style="{ width: 60 }" is-check :check-style="{ fixed: true, width: 29 }"
|
|
:column="tableColumn" :datas="tableData" :index-style="{ width: 60 }" is-check :check-style="{ fixed: true, width: 29 }"
|
|
class="hc-project-list-table" @selection-change="tableCheckChange"
|
|
class="hc-project-list-table" @selection-change="tableCheckChange"
|
|
@@ -164,8 +164,12 @@ watch(() => props.isAdmin, (admin) => {
|
|
})
|
|
})
|
|
|
|
|
|
//渲染完成
|
|
//渲染完成
|
|
|
|
+const isAfterRender = ref(false)
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
-
|
|
|
|
|
|
+ //表格太复杂,渲染较慢,等页面先加载完成,再渲染表格,不然会卡住一下不动。
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ isAfterRender.value = true
|
|
|
|
+ }, 200)
|
|
})
|
|
})
|
|
|
|
|
|
//表头
|
|
//表头
|