heyujie
2022-01-28 ea05b9be825899d4c86d131fb9a38ad58f078fa5
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,