From ea05b9be825899d4c86d131fb9a38ad58f078fa5 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期五, 28 一月 2022 18:49:17 +0800
Subject: [PATCH] 授权正式版

---
 src/pages/library/components/personList.vue |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/src/pages/library/components/personList.vue b/src/pages/library/components/personList.vue
index 64e0936..5fbd37e 100644
--- a/src/pages/library/components/personList.vue
+++ b/src/pages/library/components/personList.vue
@@ -623,14 +623,14 @@
           class="cancel-btn"
           @click="handleClose"
           type="info"
-          >鍙� 娑�</el-button
+          >鍙栨秷</el-button
         >
         <el-button
           size="small"
           class="sure-btn"
           type="primary"
-          @click="submit()"
-          >纭� 瀹�</el-button
+          @click="submit"
+          >纭畾</el-button
         >
       </div>
     </el-drawer>
@@ -870,13 +870,23 @@
 } from "@/api/baseLibrary";
 import { getCameraFaceData } from "@/api/es";
 // import { checkIDCard } from "@/api/utils";
-import { isIDCard, isPhone } from "../../../scripts/validate";
+import { isIDCard } from "../../../scripts/validate";
 
 import axios from "axios";
 import UploadBtn from "./upload";
 import fTemplate from "@/components/fTemplate";
 import UploadIcon from "@/components/searching/UploadIcon.vue";
-
+function isPhone(rule, value, callback) {
+      if (!value) {
+        return callback();
+      } else if (value.trim()) {
+        var pattern = /^1[345789]\d{9}$/;
+        if (pattern.test(value)) {
+          return callback();
+        }
+        return callback(new Error("杈撳叆鐨勬墜鏈哄彿閿欒"));
+      }
+    }
 Date.prototype.Format = function (fmt) {
   var o = {
     "M+": this.getMonth() + 1, //鏈堜唤
@@ -1173,7 +1183,6 @@
       this.getPersonList();
     },
     editRow(row) {
-      debugger;
       this.inputPersonForm = { ...row };
       this.showInfoDrawer = true;
     },
@@ -1184,6 +1193,7 @@
           delete json["compareScore"];
           let res = await updateBasePerson(json);
           if (res.success) {
+            this.getPersonList()
             this.$notify.success("浜哄憳淇敼鎴愬姛锛�");
             this.showInfoDrawer = false;
           } else {
@@ -1194,14 +1204,6 @@
         }
       });
     },
-    // confirm() {
-    //   this.$confirm({
-    //     title: "Confirm",
-    //     content: "Bla bla ...",
-    //     okText: "纭",
-    //     cancelText: "鍙栨秷",
-    //   });
-    // },
     async enable(item) {
       let res = await updateBasePerson({
         id: item.id,

--
Gitblit v1.8.0