From 1da6506bf58270bacc2a4345002c6b082835580e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 21 十月 2021 23:17:08 +0800 Subject: [PATCH] 2021-10-21 --- src/tabviews/zshare/settingcomponent/index.jsx | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/tabviews/zshare/settingcomponent/index.jsx b/src/tabviews/zshare/settingcomponent/index.jsx index a141601..c877b05 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] || '') : '' @@ -323,7 +329,7 @@ let data = '' try { data = JSON.parse(event.data) - } catch { + } catch (e) { data = '' } @@ -503,7 +509,7 @@ render() { const { components, visible } = this.state - + return ( <div className="page-setting-wrap"> {options.sysType === 'local' ? <Button -- Gitblit v1.8.0