From c6b1fcbe738549121b73f9a3b403651af4724251 Mon Sep 17 00:00:00 2001 From: luofann Date: Fri, 19 Apr 2024 12:07:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E6=9D=A1=E4=BB=B6=E5=88=A4=E6=96=AD=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/pc/src/views/commonMix/field.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/frontend/pc/src/views/commonMix/field.js b/frontend/pc/src/views/commonMix/field.js index 14e92bf55..2b027644c 100644 --- a/frontend/pc/src/views/commonMix/field.js +++ b/frontend/pc/src/views/commonMix/field.js @@ -113,7 +113,7 @@ export default { // 当前节点的类型和expressions的数据一样时,进行处理 if (item.key === list[i].show_conditions.expressions[j].key) { if (list[i].show_conditions.expressions.length === 1) { - list[i].showFeild = this.conditionSwitch( + list[i].showFeild = !this.conditionSwitch( item, list[i].show_conditions.expressions[j] ); @@ -134,7 +134,7 @@ export default { } } // 判断当前字段与关联字段的关系 - list[i].showFeild = statusList.every(status => !!status); + list[i].showFeild = statusList.some(status => !status); } else { // 判断其他字段和关联字段的关系 const statusList = []; @@ -149,7 +149,7 @@ export default { } } } - list[i].showFeild = statusList.some(status => !!status); + list[i].showFeild = statusList.every(status => !status); } } } @@ -217,14 +217,12 @@ export default { } case 'issuperset': { const issupersetList = value.value.split(','); - const statusList = issupersetList.map(val => item.val.indexOf(val) === -1); - statusInfo = statusList.every(status => !status); + statusInfo = issupersetList.includes(item.val); break; } case 'notissuperset': { const valnoList = value.value.split(','); - const statusnoList = valnoList.map(val => item.val.indexOf(val) === -1); - statusInfo = !statusnoList.every(status => !status); + statusInfo = !valnoList.includes(item.val); break; } default: {