吉安感知网项目-前端
罗广辉
2026-05-22 32fab9684f6642bf8c6c9b3d913b3124ce997f4d
packages/utils/common/index.js
@@ -38,6 +38,16 @@
      .join(',');
}
// id转label xt
export function getDictLabelXT(value, dictList = []) {
   if (value === null || value === undefined || value === '') return '';
   const values = String(value).split(',');
   return dictList
      .filter(item => values.includes(String(item.dictValue)))
      .map(item => item.dictLabel)
      .join(',');
}
export function blobDownload(res) {
   const disposition = res.headers?.['content-disposition'] || res.headers?.['Content-Disposition']
   const encodedName = disposition.split('filename=')[1]