From 1b1631a2f96f527d7191d1c7ad5b89e58aa299e8 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 14 二月 2025 15:20:02 +0800
Subject: [PATCH] 扩展属性回显bug

---
 src/components/Process/panel/PropertiesPanel.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/components/Process/panel/PropertiesPanel.vue b/src/components/Process/panel/PropertiesPanel.vue
index 1b1af02..791f6bb 100644
--- a/src/components/Process/panel/PropertiesPanel.vue
+++ b/src/components/Process/panel/PropertiesPanel.vue
@@ -191,14 +191,20 @@
           return ex.$type === `flowable:Properties`;
         }) ?? [];
       // 淇濆瓨鎵�鏈夌殑 鎵╁睍灞炴�у瓧娈�
-      this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((pre, current) => pre.concat(current.values), []);
-      console.log("bpmnElementPropertyList",this.bpmnElementPropertyList)
+      this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((pre, current) => {
+        // 妫�鏌� current.values 鏄惁鏄暟缁勶紝濡傛灉涓嶆槸鍒欎娇鐢ㄧ┖鏁扮粍
+        const values = current.values ? current.values : [];
+        return pre.concat(values);
+      }, []);
+      console.log("bpmnElementProperties",this.bpmnElementProperties)
       // 鍥炴樉
       this.canConfigPropertyList.forEach(item => {
         const find = this.bpmnElementPropertyList.find(el => el.name === item.name);
         if (find) {
           if (item.vueType === 'switch') {
             item.value = find.value === '鏄�' ? true : false
+          }else if (item.vueType === 'select') {
+            item.value = find.value
           }
         } else {
           item.value = null

--
Gitblit v1.8.0