From bfadd84fbc2b23c59695e5a94778ab7ac40fea03 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 26 六月 2021 22:54:17 +0800 Subject: [PATCH] 2021-06-26 --- src/tabviews/custom/index.jsx | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index b37e55b..034d635 100644 --- a/src/tabviews/custom/index.jsx +++ b/src/tabviews/custom/index.jsx @@ -737,12 +737,19 @@ return component } - if (component.wrap && component.wrap.datatype === 'static') { - component.format = '' + if (component.setting) { + component.setting.useMSearch = component.setting.useMSearch === 'true' + component.setting.syncRefresh = (component.setting.useMSearch && component.setting.syncRefresh === 'true') } - if (!component.setting) return component // 涓嶄娇鐢ㄧ郴缁熷嚱鏁版椂 - if (!component.format) return component // 娌℃湁鍔ㄦ�佹暟鎹� 鏁版嵁鏍煎紡 array 鎴� object + if (component.wrap && component.wrap.datatype === 'static') { + component.format = '' + component.setting = component.setting || {} + component.setting.useMSearch = false + component.setting.syncRefresh = false + } + + if (!component.setting || !component.format) return component // 1銆佷笉浣跨敤绯荤粺鍑芥暟鏃讹紱2銆� 娌℃湁鍔ㄦ�佹暟鎹� 鏁版嵁鏍煎紡 array 鎴� object if (component.setting.interType !== 'system') { // 涓嶄娇鐢ㄧ郴缁熷嚱鏁版椂 component.setting.sync = 'false' component.setting.laypage = component.setting.laypage === 'true' @@ -790,7 +797,7 @@ // dataName 绯荤粺鐢熸垚鐨勬暟鎹簮鍚嶇О // pageable 鏄惁鍒嗛〉锛岀粍浠跺睘鎬э紝涓嶅垎椤电殑缁勪欢鎵嶅彲浠ョ粺涓�鏌ヨ if (component.floor === 1 && component.dataName && (!component.pageable || (component.pageable && !component.setting.laypage)) && component.setting.onload === 'true' && component.setting.sync === 'true') { - if (isEmpty && component.setting.useMSearch === 'true') { + if (isEmpty && component.setting.useMSearch) { component.setting.sync = 'false' component.setting.onload = 'false' } else { @@ -805,7 +812,7 @@ component.setting.sync = 'false' component.setting.onload = 'false' } else { - if (component.setting.useMSearch === 'true') { + if (component.setting.useMSearch) { let keys = searchlist.map(item => item.key) mainSearch.forEach(item => { if (!keys.includes(item.key)) { -- Gitblit v1.8.0