From e87846bfc7e467836d958632b15a22a901eb51d2 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 09 一月 2025 15:33:56 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/components/flow/Dept/MyDept.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/components/flow/Dept/MyDept.vue b/src/components/flow/Dept/MyDept.vue
index ea0b709..27abe9a 100644
--- a/src/components/flow/Dept/MyDept.vue
+++ b/src/components/flow/Dept/MyDept.vue
@@ -1,7 +1,7 @@
 <template>
   <div>
     <el-dialog
-      :title="`閫夋嫨鍊欓�夐儴闂╜"
+      :title="title"
       :visible.sync="show"
       width="65%"
       :destroy-on-close="true"
@@ -34,6 +34,11 @@
     show: {
       required: true,
       type: Boolean
+    },
+    title: {
+      type: String,
+      required: false,
+      default: '鍊欓�夐儴闂�'
     },
     checkeds: {
       required: true
@@ -82,7 +87,7 @@
     },
     handleCheckChange(data, checked, indeterminate) {
       if (checked) {
-        if (this.checkList.indexOf(data) === -1) {
+        if (this.checkList.every(item => item.id !== data.id)) {
           this.checkList.push(data)
         }
       } else {

--
Gitblit v1.8.0