| | |
| | | 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> |
| | |
| | | } 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, //月份 |
| | |
| | | this.getPersonList(); |
| | | }, |
| | | editRow(row) { |
| | | debugger; |
| | | this.inputPersonForm = { ...row }; |
| | | this.showInfoDrawer = true; |
| | | }, |
| | |
| | | delete json["compareScore"]; |
| | | let res = await updateBasePerson(json); |
| | | if (res.success) { |
| | | this.getPersonList() |
| | | this.$notify.success("人员修改成功!"); |
| | | this.showInfoDrawer = false; |
| | | } else { |
| | |
| | | } |
| | | }); |
| | | }, |
| | | // confirm() { |
| | | // this.$confirm({ |
| | | // title: "Confirm", |
| | | // content: "Bla bla ...", |
| | | // okText: "确认", |
| | | // cancelText: "取消", |
| | | // }); |
| | | // }, |
| | | async enable(item) { |
| | | let res = await updateBasePerson({ |
| | | id: item.id, |