From 7efeb8800e982837026475db39dc02f945f7f623 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期三, 02 三月 2022 21:22:19 +0800
Subject: [PATCH] 授权弹窗新ui

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

diff --git a/src/pages/library/components/personList.vue b/src/pages/library/components/personList.vue
index 64e0936..6511bbb 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, //鏈堜唤
@@ -1132,6 +1142,8 @@
               message: "搴曞簱鍒犻櫎鎴愬姛锛�",
             });
           }
+          this.askDeleteShow=false
+
           this.$emit("onDelete");
         })
         .catch((err) => {
@@ -1173,7 +1185,6 @@
       this.getPersonList();
     },
     editRow(row) {
-      debugger;
       this.inputPersonForm = { ...row };
       this.showInfoDrawer = true;
     },
@@ -1184,6 +1195,7 @@
           delete json["compareScore"];
           let res = await updateBasePerson(json);
           if (res.success) {
+            this.getPersonList()
             this.$notify.success("浜哄憳淇敼鎴愬姛锛�");
             this.showInfoDrawer = false;
           } else {
@@ -1194,14 +1206,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