819527061@qq.com
2024-11-18 4470663489b8e7a3774c8d45f5f8bee881d0f552
添加loading
1个文件已修改
10 ■■■■■ 已修改文件
src/components/page/orderRecord/indexDay.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/page/orderRecord/indexDay.vue
@@ -24,6 +24,7 @@
        </div>
        <el-table
            v-loading="loading"
            :height="tableHeight"
            :data="table2"
            border
@@ -71,7 +72,8 @@
                table1:[],
                table2:[],
                headTable:[],
                tableHeight:500
                tableHeight:500,
                loading:true
            }
        },
      created() {
@@ -85,8 +87,11 @@
        },
        methods: {
            loadData() {
              try{
                this.loading = true
              this.table2 = []
              this.$byutil.postData(this, this.urlPath+'findCountPageByDay', this.searchForm,res => {
                  this.loading = false
                this.headTable = res.data[0].data
                let temp = res.data
                temp.forEach(item => {
@@ -98,6 +103,9 @@
                  this.table2.push(row)
                })
             });
              }catch (err){
                this.loading = false
              }
            },
            onSearch() {
                this.loadData();