吉安感知网项目-前端
张含笑
2026-01-27 dd57e0e9a989e7ee8b3e3473a7ee6a1dff06a4ae
packages/utils/common/index.js
@@ -4,8 +4,8 @@
 * @LastEditors  : yuan
 * @LastEditTime : 2026-01-20 17:20:21
 * @FilePath     : \packages\utils\common\index.js
 * @Description  :
 * Copyright 2026 OBKoro1, All Rights Reserved.
 * @Description  :
 * Copyright 2026 OBKoro1, All Rights Reserved.
 * 2026-01-20 17:01:20
 */
export function fieldRules(required,max) {
@@ -22,9 +22,13 @@
   return rules
}
export function getDictLabel(value, dictList) {
   return dictList.filter(item => String(value).includes(String(item.dictKey))).map(item => item.dictValue).join(',')
export function getDictLabel(value, dictList = []) {
   if (value === null || value === undefined || value === '') return '';
   const values = String(value).split(',');
   return dictList
      .filter(item => values.includes(String(item.dictKey)))
      .map(item => item.dictValue)
      .join(',');
}
export function blobDownload(res) {