From c0fa32dc711110a8bfd95939439ad8cd3782e3ab Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 24 七月 2023 11:00:16 +0800 Subject: [PATCH] 2023-07-24 --- src/tabviews/zshare/topSearch/index.jsx | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/tabviews/zshare/topSearch/index.jsx b/src/tabviews/zshare/topSearch/index.jsx index 77ce4ca..c5f3537 100644 --- a/src/tabviews/zshare/topSearch/index.jsx +++ b/src/tabviews/zshare/topSearch/index.jsx @@ -151,9 +151,6 @@ // 鏁版嵁婧愭煡璇㈣鍙� if (item.resourceType === '1' && item.dataSource) { - if (item.multiple === 'dropdown') { - item.parentField = 'pid' - } let _option = Utils.getSelectQueryOptions(item) if (window.GLOB.debugger === true || (window.debugger === true && options.sysType !== 'cloud')) { @@ -228,10 +225,11 @@ } resetCheckcard = (item) => { + let pid = item.resourceType === '0' ? 'pid' : item.parentField let _options = [] let _others = [] item.oriOptions.forEach(op => { - if (op.pid === item.mark) { + if (op[pid] === item.mark) { _options.push(op) } else { _others.push(op) @@ -242,7 +240,7 @@ op.children = [] _others = _others.filter(cell => { - if (cell.pid === op.$value) { + if (cell[pid] === op.$value) { op.children.push(cell) return false } -- Gitblit v1.8.0