|
@@ -268,7 +268,7 @@
|
|
|
@select="searchTreeSelect"/>
|
|
|
</div>
|
|
|
<div class="dialog-table">
|
|
|
- <HcTable ref="dialogTableRef" :column="dialogTableColumn" :datas="dialogTableData" isCheck @selection-change="dialogTableSelection"/>
|
|
|
+ <HcTable ref="dialogTableRef" :loading="dialogTableLoading" :column="dialogTableColumn" :datas="dialogTableData" isCheck @selection-change="dialogTableSelection"/>
|
|
|
</div>
|
|
|
<div class="dialog-pages">
|
|
|
<HcPages :pages="searchFormPage" @change="searchFormPageChange"/>
|
|
@@ -1046,8 +1046,11 @@ const dialogTableColumn = ref([
|
|
|
{key:'fillRate', name: '填报率'}
|
|
|
])
|
|
|
const dialogTableData = ref([])
|
|
|
+
|
|
|
+const dialogTableLoading = ref(false)
|
|
|
const getDialogTableData = async () => {
|
|
|
//处理初始数据
|
|
|
+ dialogTableLoading.value = true
|
|
|
dialogTableRef.value?.clearSelection()
|
|
|
dialogTableKeys.value = []
|
|
|
const primaryKeyId = addingFormTreeItem.value?.primaryKeyId ?? ''
|
|
@@ -1057,6 +1060,7 @@ const getDialogTableData = async () => {
|
|
|
const records = getArrValue(resData?.data)
|
|
|
//处理返回的数据
|
|
|
dialogTableData.value = records
|
|
|
+ dialogTableLoading.value = false
|
|
|
if (records.length > 0) {
|
|
|
searchFormPage.value.total = resData.total || 0
|
|
|
} else {
|