| | |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.securityGuard_delete && row.status != 2" |
| | | @click.stop="rowDel(row)" |
| | | @click.stop="rowStatus(row)" |
| | | >离职登记 |
| | | </el-button> |
| | | <el-button |
| | |
| | | } |
| | | }; |
| | | const validatePassPhone = (rule, value, callback) => { |
| | | var test = |
| | | /^(13[0-9]|14[5|7]|15[0|1|2|3|4|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\d{8}$/g; |
| | | var test = /^(13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9])\d{8}$/g; |
| | | if (!test.test(value)) { |
| | | callback(new Error("请输入正确手机号码")); |
| | | } else { |
| | |
| | | searchMenuSpan: 6, |
| | | stripe: true, |
| | | border: true, |
| | | delBtn: false, |
| | | |
| | | delBtn: true, |
| | | align: "center", |
| | | index: true, |
| | | delBtnText: "注销", |
| | |
| | | }, |
| | | action: "/api/blade-resource/oss/endpoint/put-files", |
| | | tip: "只能上传jpg/png个人头像,且不超过500kb", |
| | | span: 10, |
| | | span: 12, |
| | | // row: true, |
| | | prop: "avatar", |
| | | }, |
| | |
| | | }, |
| | | action: "/api/blade-resource/oss/endpoint/put-files", |
| | | tip: "只能上传jpg/png指纹信息,且不超过500kb", |
| | | span: 10, |
| | | span: 12, |
| | | // row: true, |
| | | prop: "fingerprint", |
| | | }, |
| | |
| | | // value: 3, |
| | | // }, |
| | | ], |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择性别", |
| | | trigger: "blur" |
| | | }] |
| | | }, |
| | | // { |
| | | // label: "生日", |
| | |
| | | } |
| | | ); |
| | | }, |
| | | rowDel(row) { |
| | | rowStatus(row) { |
| | | this.$prompt("离职原因", "提示", { |
| | | confirmButtonText: "确定离职", |
| | | cancelButtonText: "取消", |
| | |
| | | }) |
| | | .catch(() => {}); |
| | | }, |
| | | rowDel(row) { |
| | | this.$confirm("确定注销当前用户?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id); |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }); |
| | | }, |
| | | rowCheck(row) { |
| | | this.$confirm("确定审查异常标记?", { |
| | | confirmButtonText: "确定", |