function filters (列名) {
let txt = ''
// eslint-disable-next-line camelcase
switch (列名) {
case '判断1':
txt = '显示的值'
break
case '判断2':
txt = '显示的值'
break
case '判断3':
txt = '显示的值'
break
}
return txt
}
要想查询的话,首先在查询接口那里写
searchCode.value.列名= 列名.value.value
在最后的return里这样写
options: [
{ label: '显示的数据1', value: 后台的数据1 },
{ label: '显示的数据2', value: 后台的数据2 },
{ label: '显示的数据3', value: 后台的数据3 }
],