吉安感知网项目-前端
罗广辉
2026-01-20 de1b2a2d4e856fd4769f3d96d8c4f048fe5f9004
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.find(item => item.dictKey === value)?.dictValue || value || '-'
   return dictList.filter(item => String(value).includes(String(item.dictKey))).map(item => item.dictValue).join(',')
}
export function blobDownload(res) {