From 1f1b2fcc05f6b0f83bf7602f453cc73dd6e9b7ce Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 20 七月 2022 15:04:13 +0800
Subject: [PATCH] 添加国标数默认展开状态

---
 src/pages/syslog/views/pollingLog.vue |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/pages/syslog/views/pollingLog.vue b/src/pages/syslog/views/pollingLog.vue
index 92bcb10..2897bf9 100644
--- a/src/pages/syslog/views/pollingLog.vue
+++ b/src/pages/syslog/views/pollingLog.vue
@@ -131,6 +131,7 @@
         show-checkbox
         check-on-click-node
         default-expand-all
+        :default-checked-keys="selectedIDs"
       ></el-tree>
 
       <span slot="footer" class="dialog-footer">
@@ -178,6 +179,7 @@
       procID: "",
       procName: "",
       pickNum: 0,
+      selectedIDs: [],
       pickerOptions: {
         shortcuts: [
           {
@@ -237,6 +239,8 @@
     },
     confirmCamera() {
       const selectedIDs = this.$refs.cameraTree.getCheckedKeys();
+      this.selectedIDs = selectedIDs;
+      console.log(selectedIDs);
       this.pickNum = selectedIDs.length;
       this.procID = selectedIDs.join(",");
       this.getScheduleLog();

--
Gitblit v1.8.0