AVUE
formatter | 用来格式化列内容 |
formatter:(val,value,label)=>{ let arr = val.invoiceType.split(','); let str = ''; for (let index = 0; index < arr.length; index++) { const element = arr[index]; switch (element) { case '004': str += '纸质专票 '; break; case '007': str += '纸质普票 '; break; case '026': str += '电子发票 '; break; case '028': str += '电子专票 '; break; case '81': str += '全电专票 '; break; case '82': str += '全电普票 '; break; } } return str; },
标签:case,index,arr,多选,break,专票,str,select,avue From: https://www.cnblogs.com/hzx-5/p/17919348.html