吉安感知网项目-前端
chenyao
2026-06-03 b4f08a561973b998036f6ffa9e843cfd5ee877be
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]