From ac3fc53f2c2f69690dbc0b7d5637624bb4457f73 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 25 三月 2022 23:05:18 +0800 Subject: [PATCH] 2022-03-25 --- src/tabviews/custom/index.jsx | 58 +++++++++++++++++++++++++++++++++++++++++----------------- 1 files changed, 41 insertions(+), 17 deletions(-) diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index 614ad03..3e41197 100644 --- a/src/tabviews/custom/index.jsx +++ b/src/tabviews/custom/index.jsx @@ -523,6 +523,23 @@ } } + if (item.wrap && item.wrap.supType === 'multi') { // 鏁版嵁鍗″涓婄骇缁勪欢 + if (item.supNodes && item.supNodes[0]) { + item.setting.supModule = item.supNodes[0].componentId + } else { + item.wrap.supType = 'single' + item.supNodes = null + item.setting.supModule = '' + } + } else if (item.setting && item.setting.supModule) { + let pid = item.setting.supModule.pop() + if (pid && pid !== 'empty') { + item.setting.supModule = pid + } else { + item.setting.supModule = '' + } + } + // 鎼滅储鏉′欢鍒濆鍖� if (item.search && item.search.length > 0) { item.search = Utils.initSearchVal(item.search) @@ -584,6 +601,10 @@ cell.$tabId = tabId cell.$view = 'CustomPage' + if (cell.syncComponentId === item.uuid) { + cell.syncComponentId = '' + } + if (cell.OpenType === 'funcbutton' && cell.funcType === 'print' && cell.verify) { // 鎵撳嵃鏈鸿缃� cell = this.getPrinter(cell, item.uuid) } @@ -619,6 +640,10 @@ cell.$tabId = tabId cell.$view = 'CustomPage' + if (cell.syncComponentId === item.uuid) { + cell.syncComponentId = '' + } + if (cell.OpenType === 'funcbutton' && cell.funcType === 'print' && cell.verify) { // 鎵撳嵃鏈鸿缃� cell = this.getPrinter(cell, item.uuid) } @@ -642,6 +667,10 @@ cell.$MenuID = this.props.MenuID cell.$tabId = tabId cell.$view = 'CustomPage' + + if (cell.syncComponentId === item.uuid) { + cell.syncComponentId = '' + } if (cell.OpenType === 'funcbutton' && cell.funcType === 'print' && cell.verify) { // 鎵撳嵃鏈鸿缃� cell = this.getPrinter(cell, item.uuid) @@ -671,6 +700,10 @@ cell.$tabId = tabId cell.$view = 'CustomPage' + if (cell.syncComponentId === item.uuid) { + cell.syncComponentId = '' + } + if (cell.OpenType === 'funcbutton' && cell.funcType === 'print' && cell.verify) { // 鎵撳嵃鏈鸿缃� cell = this.getPrinter(cell, item.uuid) } @@ -693,6 +726,10 @@ cell.$MenuID = this.props.MenuID cell.$tabId = tabId cell.$view = 'CustomPage' + + if (cell.syncComponentId === item.uuid) { + cell.syncComponentId = '' + } if (cell.OpenType === 'funcbutton' && cell.funcType === 'print' && cell.verify) { // 鎵撳嵃鏈鸿缃� cell = this.getPrinter(cell, item.uuid) @@ -720,6 +757,10 @@ cell.$tabId = tabId cell.$view = 'CustomPage' + if (cell.syncComponentId === item.uuid) { + cell.syncComponentId = '' + } + if (cell.OpenType === 'funcbutton' && cell.funcType === 'print' && cell.verify) { // 鎵撳嵃鏈鸿缃� cell = this.getPrinter(cell, item.uuid) } @@ -737,23 +778,6 @@ if (item.subtype === 'editable') { item.submit.logLabel = item.$menuname + '-鎻愪氦' item.submit.$menuId = item.uuid - } - } - - if (item.wrap && item.wrap.supType === 'multi') { // 鏁版嵁鍗″涓婄骇缁勪欢 - if (item.supNodes && item.supNodes[0]) { - item.setting.supModule = item.supNodes[0].componentId - } else { - item.wrap.supType = 'single' - item.supNodes = null - item.setting.supModule = '' - } - } else if (item.setting && item.setting.supModule) { - let pid = item.setting.supModule.pop() - if (pid && pid !== 'empty') { - item.setting.supModule = pid - } else { - item.setting.supModule = '' } } -- Gitblit v1.8.0