| | |
| | | :permission="permissionList" |
| | | @row-del="rowDel" |
| | | @row-update="rowUpdate" |
| | | :row-style="rowStyle" |
| | | @row-save="rowSave" |
| | | @row-click="rowClick" |
| | | :before-open="beforeOpen" |
| | |
| | | v-if="permission.securityGuard_delete" |
| | | @click.stop="rowDel(row)" |
| | | >离职登记 |
| | | </el-button> |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.securityGuard_check" |
| | | @click.stop="rowCheck(row)" |
| | | >审查异常标记 |
| | | </el-button> |
| | | </template> |
| | | |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | rowCheck(row) { |
| | | this.$confirm("确定审查异常标记?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | row.examinationType = "1"; |
| | | return update(row); |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }); |
| | | }, |
| | | searchReset() { |
| | | this.query = {}; |
| | | this.treeDeptId = ""; |
| | |
| | | currentChange(currentPage) { |
| | | this.page.currentPage = currentPage; |
| | | }, |
| | | //行样式调整 |
| | | rowStyle({ row, column, rowIndex }) { |
| | | if (row.examinationType == "1") { |
| | | return { |
| | | color: "#ff2727", |
| | | }; |
| | | } |
| | | }, |
| | | sizeChange(pageSize) { |
| | | this.page.pageSize = pageSize; |
| | | }, |