From a1cba8c1d16b73da4509a6baab219f7ed2f9d7ff Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: Tue, 23 Sep 2025 10:33:13 +0800
Subject: [PATCH] =?UTF-8?q?v1.9=20=E4=BF=AE=E5=A4=8Dadmin=20=E5=91=98?=
=?UTF-8?q?=E5=B7=A5=E6=97=A0=E6=B3=95=E5=88=A0=E9=99=A4=E5=92=8C=E6=80=A7?=
=?UTF-8?q?=E5=88=AB=E5=85=A8=E6=98=AF=E5=A5=B3=E7=9A=84bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/staff/deleteStaff.vue | 19 ++++++++-----------
src/views/staff/aStaffList.vue | 2 +-
src/views/staff/staffList.vue | 4 ++--
3 files changed, 11 insertions(+), 14 deletions(-)
diff --git a/src/components/staff/deleteStaff.vue b/src/components/staff/deleteStaff.vue
index 8ca2cf657..41c5d5fac 100644
--- a/src/components/staff/deleteStaff.vue
+++ b/src/components/staff/deleteStaff.vue
@@ -21,24 +21,21 @@ import { deleteStaff } from '@/api/staff/staffApi'
export default {
name: 'DeleteStaff',
- props: {
- visible: {
- type: Boolean,
- default: false
- },
- staffInfo: {
- type: Object,
- default: () => ({})
- }
- },
data() {
return {
- loading: false
+ loading: false,
+ staffInfo: {},
+ visible: false
}
},
methods: {
handleClose() {
this.$emit('update:visible', false)
+ this.visible = false
+ },
+ open(staffInfo) {
+ this.staffInfo = staffInfo
+ this.visible = true
},
async deleteStaff() {
try {
diff --git a/src/views/staff/aStaffList.vue b/src/views/staff/aStaffList.vue
index a2bad48bc..67d401da8 100644
--- a/src/views/staff/aStaffList.vue
+++ b/src/views/staff/aStaffList.vue
@@ -41,7 +41,7 @@
- {{ scope.row.sex === 0 ? $t('staff.male') : $t('staff.female') }}
+ {{ scope.row.sex == 0 ? $t('staff.male') : $t('staff.female') }}
diff --git a/src/views/staff/staffList.vue b/src/views/staff/staffList.vue
index 12a41dee5..f4d6da998 100644
--- a/src/views/staff/staffList.vue
+++ b/src/views/staff/staffList.vue
@@ -87,7 +87,7 @@
-
+
@@ -186,7 +186,7 @@ export default {
},
openDeleteStaff(staff) {
this.currentStaff = { ...staff }
- this.deleteStaffVisible = true
+ this.$refs.deleteStaff.open(staff)
},
_moreCondition() {
this.staffInfo.moreCondition = !this.staffInfo.moreCondition