| | |
| | | ); |
| | | }, |
| | | rowDellook(row) { |
| | | console.log(row); |
| | | console.log(row.reasonForLeav); |
| | | this.$alert( |
| | | row.reasonForLeav == "" ? "未填写" : row.reasonForLeav, |
| | | "离职原因", |
| | | { |
| | | confirmButtonText: "确定", |
| | | callback: (action) => { |
| | | // this.$message({ |
| | | // type: "info", |
| | | // message: `action: ${action}`, |
| | | // }); |
| | | }, |
| | | } |
| | | ); |
| | | }, |
| | | rowDel(row) { |
| | | // this.$confirm("确定将选择保安登记离职?", { |
| | |
| | | inputErrorMessage: "邮箱格式不正确", |
| | | }).then(({ value }) => { |
| | | console.log(value); |
| | | row.reasonForLeav = value; |
| | | row.status = "2"; |
| | | update(row).then((res) => { |
| | | this.$message({ |
| | |
| | | message: "操作成功", |
| | | }); |
| | | }); |
| | | this.refreshChange(); |
| | | }); |
| | | // .catch(() => { |
| | | // this.$message({ |
| | |
| | | this.onLoad(this.page); |
| | | }, |
| | | searchChange(params, done) { |
| | | console.log(params, 12); |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |