From fdaad68c0715d6f7858b956071e3b01cd543a5cd Mon Sep 17 00:00:00 2001 From: ludc Date: 星期一, 19 六月 2023 20:32:18 +0800 Subject: [PATCH] 高级查询组件增加refer类型条件框 --- Source/UBCS-WEB/src/util/func.js | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/Source/UBCS-WEB/src/util/func.js b/Source/UBCS-WEB/src/util/func.js index c347c27..12f731b 100644 --- a/Source/UBCS-WEB/src/util/func.js +++ b/Source/UBCS-WEB/src/util/func.js @@ -102,4 +102,12 @@ } return str; } + /** + * 鍒ゆ柇鏄惁涓哄璞″苟涓嶄负绌哄璞� + * @param value + * @returns {Boolean} + */ + static isValuableObj(value) { + return typeof value === 'object' && value !== null && Object.keys(value).length > 0; + } } -- Gitblit v1.9.3