Browse Source

add loading

459242451@qq.com 2 years ago
parent
commit
d883ae79bd

+ 2 - 0
ruoyi-ui/src/views/components/table/liuTable.vue

@@ -225,6 +225,7 @@
 
     <el-table
       :data="tableData"
+      v-loading="loading"
       :header-cell-style="{ background: 'linear-gradient(white, #ccebf9)'}"
       style="width: 100%"
       height=400>
@@ -360,6 +361,7 @@ export default {
     return {
       total: 0,
       // 导出遮罩层
+      loading: true,
       exportLoading: false,
       dialogVisible: false,
       showSearch: true,

+ 3 - 1
ruoyi-ui/src/views/components/table/xtTable.vue

@@ -137,6 +137,7 @@
 
     <el-table
       :data="tableData"
+      v-loading="loading"
       :header-cell-style="{ background: 'linear-gradient(white, #ccebf9)'}"
       style="width: 100%"
       height=520>
@@ -231,6 +232,7 @@ export default {
   data() {
     return {
       total: 0,
+      loading: true,
       showSearch: true,
       isselect: true,
       queryParams: {
@@ -349,7 +351,7 @@ export default {
         // console.log(jsonArry);
         this.tableData = response.rows;
         this.total = response.total;
-        console.log(response);
+        // console.log(response);
         this.loading = false;
       });
     },