From a609194c0552abab9be60446e9a53669c500319b Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 14 Jan 2022 17:40:36 +0800
Subject: [PATCH] +

---
 src/views/qiandao/signIn.vue |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/views/qiandao/signIn.vue b/src/views/qiandao/signIn.vue
index 399a10a..5fdd93c 100644
--- a/src/views/qiandao/signIn.vue
+++ b/src/views/qiandao/signIn.vue
@@ -22,8 +22,8 @@
       @current-change="currentChange"
       @size-change="sizeChange"
       @refresh-change="refreshChange"
-      @on-load="onLoad"
     >
+      <!-- @on-load="onLoad" -->
       <template slot-scope="{ type, size, row }" slot="menu">
         <el-button
           icon="icon-zhengjian"
@@ -49,7 +49,7 @@
       page: {
         pageSize: 10,
         currentPage: 1,
-        total: 0,
+        total: 0
       },
       query: {},
       data: [],
@@ -83,14 +83,14 @@
             search: true,
             searchSpan: 6,
             searchLabelWidth: 45,
-            width: 70,
+            width: 70
           },
           {
             label: "公司",
             prop: "deptName",
             search: true,
             searchSpan: 7,
-            searchLabelWidth: 45,
+            searchLabelWidth: 45
           },
           {
             label: "身份证号码",
@@ -100,7 +100,7 @@
             searchLabelWidth: 85,
             // searchRange: true,
             // searchValue: this.getuserid(),
-            width: 180,
+            width: 180
           },
           {
             label: "签到时间",
@@ -111,8 +111,8 @@
             // search: true,
             // searchSpan: 5,
             // searchLabelWidth: 80,
-            width: 180,
-          },
+            width: 180
+          }
           // {
           //   label: "签到时间",
           //   prop: "signTime",
@@ -128,12 +128,12 @@
         ],
         delBtn: false,
         editBtn: false,
-        addBtn: false,
-      },
+        addBtn: false
+      }
     };
   },
   computed: {
-    ...mapGetters(["signData", "userInfo"]),
+    ...mapGetters(["signData", "userInfo"])
     // permissionList() {
     //   return {
     //     addBtn: this.vaildData(this.permission.notice_add, false),
@@ -147,19 +147,19 @@
     var times = new Date();
     this.year = times.getFullYear();
     this.month = Number(times.getMonth()) + 1;
-    if(this.month<10){
-      this.month = "0"+this.month;
+    if (this.month < 10) {
+      this.month = "0" + this.month;
     }
     // console.log(this.month,123456);
     this.day = times.getDate();
-    if(this.day<10){
-      this.day = "0"+this.day;
+    if (this.day < 10) {
+      this.day = "0" + this.day;
     }
     this.timeDom = this.year + "-" + this.month + "-" + this.day;
     this.search["signTime"] = this.timeDom;
     this.query["signTime"] = this.timeDom;
     let t = this;
-    window.addEventListener("resize", function () {
+    window.addEventListener("resize", function() {
       t.resetHeight();
     });
     t.resetHeight();
@@ -257,10 +257,10 @@
     refreshChange() {
       this.onLoad(this.page, this.query);
     },
-    msg: function (type, msg) {
+    msg: function(type, msg) {
       this.$message({
         message: msg,
-        type: type,
+        type: type
       });
     },
     onLoad(page, params = {}) {
@@ -271,15 +271,15 @@
         page.currentPage,
         page.pageSize,
         Object.assign(params, this.query)
-      ).then((res) => {
+      ).then(res => {
         const data = res.data.data;
         this.page.total = data.total;
         this.data = data.records;
         console.log(this.data, 456789);
         this.loading = false;
       });
-    },
-  },
+    }
+  }
 };
 </script>
 

--
Gitblit v1.9.3