Quellcode durchsuchen

划分树引用元素表处理。

ZaiZai vor 2 Jahren
Ursprung
Commit
fa176df610
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5 1
      src/views/data-fill/division.vue

+ 5 - 1
src/views/data-fill/division.vue

@@ -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 {