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 |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/src/views/oneFromanotherN/index.vue b/src/views/oneFromanotherN/index.vue
index ed13ff7..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">
@@ -281,7 +282,11 @@
             width="40%">
             <el-form>
                 <el-row>
-                    <el-checkbox style="width: 80px;height: 30px" v-for="item in YHBMList" v-model="checked" :label="item.branch_id">
+                    <el-checkbox style="width: 80px;height: 30px"
+                                 v-for="item in YHBMList"
+                                 v-model="checked"
+                                 :label="item.branch_id"
+                                 :key="item.branch_id">
                         {{item.branch_name}}
                     </el-checkbox>
                 </el-row>
@@ -318,9 +323,6 @@
                 radio1:'待发送',
                 table1:true,
                 table2:false,
-
-
-
                 currentPage: 1,
                 pageSize: 10,
                 recordTotal: 0,
@@ -334,6 +336,7 @@
                 JCLBList:[],
                 tableData:[],
                 selectedList:[],
+                loading:false,
                 listLoading: false,
                 selfInspectVisible: false,
                 selfInspectForm:{
@@ -444,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