From 7da77ccc209a9c3a96f2f50a2ce1375893a5f8c3 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 31 八月 2021 13:38:56 +0800
Subject: [PATCH] 2021-08-31

---
 src/tabviews/zshare/settingcomponent/index.jsx |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/zshare/settingcomponent/index.jsx b/src/tabviews/zshare/settingcomponent/index.jsx
index a141601..6f7a7d1 100644
--- a/src/tabviews/zshare/settingcomponent/index.jsx
+++ b/src/tabviews/zshare/settingcomponent/index.jsx
@@ -85,6 +85,7 @@
             cell.$port = cell.verify ? cell.verify.linkUrl : ''
             if (cell.verify && cell.verify.printerTypeList) {
               cell.verify.printerTypeList = cell.verify.printerTypeList.map(_cell => {
+                _cell.uuid = _cell.uuid || _cell.key
                 _cell.parentId = cell.uuid
                 _cell.$port = cell.$port
 
@@ -108,6 +109,7 @@
                 cell.$port = cell.verify ? cell.verify.linkUrl : ''
                 if (cell.verify && cell.verify.printerTypeList) {
                   cell.verify.printerTypeList = cell.verify.printerTypeList.map(_cell => {
+                    _cell.uuid = _cell.uuid || _cell.key
                     _cell.parentId = cell.uuid
                     _cell.$port = cell.$port
 
@@ -128,6 +130,7 @@
                 cell.$port = cell.verify ? cell.verify.linkUrl : ''
                 if (cell.verify && cell.verify.printerTypeList) {
                   cell.verify.printerTypeList = cell.verify.printerTypeList.map(_cell => {
+                    _cell.uuid = _cell.uuid || _cell.key
                     _cell.parentId = cell.uuid
                     _cell.$port = cell.$port
 
@@ -151,6 +154,7 @@
                 cell.$port = cell.verify ? cell.verify.linkUrl : ''
                 if (cell.verify && cell.verify.printerTypeList) {
                   cell.verify.printerTypeList = cell.verify.printerTypeList.map(_cell => {
+                    _cell.uuid = _cell.uuid || _cell.key
                     _cell.parentId = cell.uuid
                     _cell.$port = cell.$port
 
@@ -197,6 +201,7 @@
         printbtns.push(item)
         if (item.verify && item.verify.printerTypeList && item.verify.printerTypeList.length > 0) {
           item.verify.printerTypeList = item.verify.printerTypeList.map(cell => {
+            cell.uuid = cell.uuid || cell.key
             cell.parentId = item.uuid
             cell.$port = item.$port
             return cell
@@ -267,6 +272,7 @@
               item.$port = item.verify ? item.verify.linkUrl : ''
               if (item.verify && item.verify.printerTypeList) {
                 item.verify.printerTypeList = item.verify.printerTypeList.map(cell => {
+                  cell.uuid = cell.uuid || cell.key
                   cell.parentId = item.uuid
                   cell.$port = item.$port
                   cell.printer = _item && _item.printerList ? (_item.printerList[cell.Value] || '') : ''
@@ -503,7 +509,7 @@
 
   render() {
     const { components, visible } = this.state
-    
+    console.log(components)
     return (
       <div className="page-setting-wrap">
         {options.sysType === 'local' ? <Button

--
Gitblit v1.8.0