From 0687a0fc75c5eb1693340b89cbbb5a959b45d65f Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 20 Jan 2026 17:21:36 +0800
Subject: [PATCH] feat:公共getDictLabel调整
---
packages/utils/common/index.js | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/packages/utils/common/index.js b/packages/utils/common/index.js
index 5df2ca1..4b4a9a3 100644
--- a/packages/utils/common/index.js
+++ b/packages/utils/common/index.js
@@ -1,3 +1,13 @@
+/*
+ * @Author : yuan
+ * @Date : 2026-01-20 17:01:20
+ * @LastEditors : yuan
+ * @LastEditTime : 2026-01-20 17:20:21
+ * @FilePath : \packages\utils\common\index.js
+ * @Description :
+ * Copyright 2026 OBKoro1, All Rights Reserved.
+ * 2026-01-20 17:01:20
+ */
export function fieldRules(required,max) {
// export function fieldRules({ required = true, isSelect = false, max = 50,type = 'string' }) {
const trigger = ['blur', 'change']
@@ -14,7 +24,7 @@
export function getDictLabel(value, dictList) {
- return dictList.filter(item => value.includes(item.dictKey)).map(item => item.dictValue).join(',')
+ return dictList.filter(item => String(value).includes(String(item.dictKey))).map(item => item.dictValue).join(',')
}
export function blobDownload(res) {
--
Gitblit v1.9.3