From 9e551347cd3b2382ae063b702d20ce4aa7db8505 Mon Sep 17 00:00:00 2001 From: cqf <2252655793@qq.com> Date: 星期一, 23 五月 2022 17:58:37 +0800 Subject: [PATCH] 饼图数据加载 --- src/views/oneFromanotherN/index.vue | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/views/oneFromanotherN/index.vue b/src/views/oneFromanotherN/index.vue index 6e81886..9cccf29 100644 --- a/src/views/oneFromanotherN/index.vue +++ b/src/views/oneFromanotherN/index.vue @@ -98,6 +98,7 @@ <div v-if="table1"> <el-table ref="dataTable" v-if="listQuery.type==0" + v-loading="loading" :data="tableData" style="width: 100%" @selection-change="handleSelectionChange"> @@ -322,9 +323,6 @@ radio1:'待发送', table1:true, table2:false, - - - currentPage: 1, pageSize: 10, recordTotal: 0, @@ -338,6 +336,7 @@ JCLBList:[], tableData:[], selectedList:[], + loading:false, listLoading: false, selfInspectVisible: false, selfInspectForm:{ @@ -448,19 +447,14 @@ } } - if(this.listQuery.form.check_dateEnd!=null && this.listQuery.form.check_dateEnd!=''){ - if(this.listQuery.form.check_dateStart!=null && this.listQuery.form.check_dateStart!=''){ - }else { - this.$message({type:'error', message:"请选择检查开始时间", duration:3000}) - return - } - } }, //搜索 getPageList(){ this.listQuery.page=1 this.checkTime() + this.loading=true getPageList(this.listQuery).then(res=>{ + this.loading=false if (res.data.ok==1) { this.tableData = res.data.data.items this.recordTotal=res.data.data.total -- Gitblit v1.9.2