From b9a0e8541f0959db5d848f7b893c8838851ce411 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 09 四月 2020 13:29:49 +0800 Subject: [PATCH] 2020-04-09 --- src/templates/zshare/modalform/index.jsx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates/zshare/modalform/index.jsx b/src/templates/zshare/modalform/index.jsx index da2cc4e..d81a7e0 100644 --- a/src/templates/zshare/modalform/index.jsx +++ b/src/templates/zshare/modalform/index.jsx @@ -506,9 +506,9 @@ values.dataSource = '' let emptys = [] if (values.type === 'multiselect' || values.type === 'select') { - emptys = values.options.filter(op => !(op.Value && op.Text)) + emptys = values.options.filter(op => !((op.Value || op.Value === 0) && (op.Text || op.Text === 0))) } else { - emptys = values.options.filter(op => !(op.Value && op.Text && op.ParentID)) + emptys = values.options.filter(op => !((op.Value || op.Value === 0) && (op.Text || op.Text === 0) && (op.ParentID || op.ParentID === 0))) } if (emptys.length > 0) { isvalid = false -- Gitblit v1.8.0