feat(web): update employee management view
- EmployeeManagementView.vue: update employee management view component - scripts/EmployeeManagementView.js: update employee management view logic
This commit is contained in:
@@ -211,8 +211,8 @@
|
||||
|
||||
<div class="detail-action-group">
|
||||
<button class="minor-action" type="button" :disabled="disableActionDisabled" @click="disableEmployeeAccount">
|
||||
<i class="mdi mdi-account-cancel-outline"></i>
|
||||
<span>{{ selectedEmployee.status === '停用' ? '账号已停用' : actionState === 'disable' ? '停用中...' : '停用账号' }}</span>
|
||||
<i :class="statusActionCopy.buttonIcon"></i>
|
||||
<span>{{ statusActionCopy.buttonLabel }}</span>
|
||||
</button>
|
||||
<button class="major-action" type="button" :disabled="actionBusy" @click="saveEmployeeChanges">
|
||||
<i class="mdi mdi-check-circle-outline"></i>
|
||||
@@ -559,15 +559,15 @@
|
||||
|
||||
<ConfirmDialog
|
||||
:open="disableDialogOpen"
|
||||
badge="停用账号"
|
||||
badge-tone="warning"
|
||||
:title="`确认停用 ${selectedEmployee?.name || '该员工'} 的账号吗?`"
|
||||
description="停用后该员工将无法继续登录系统,相关个人操作入口也会立即失效。"
|
||||
:badge="statusActionCopy.badge"
|
||||
:badge-tone="statusActionCopy.badgeTone"
|
||||
:title="statusActionCopy.title"
|
||||
:description="statusActionCopy.description"
|
||||
cancel-text="取消"
|
||||
confirm-text="确认停用"
|
||||
busy-text="停用中..."
|
||||
confirm-tone="danger"
|
||||
confirm-icon="mdi mdi-account-cancel-outline"
|
||||
:confirm-text="statusActionCopy.confirmText"
|
||||
:busy-text="statusActionCopy.busyText"
|
||||
:confirm-tone="statusActionCopy.confirmTone"
|
||||
:confirm-icon="statusActionCopy.confirmIcon"
|
||||
:busy="actionState === 'disable'"
|
||||
@close="closeDisableDialog"
|
||||
@confirm="confirmDisableEmployeeAccount"
|
||||
|
||||
Reference in New Issue
Block a user