使用: {{ stateName(row) }}
引入:import { filterapplyState, filterContractState } from '@/filters/code-formatter'
computed:{
stateName() {
return function(row) {
let name = ''
if (row.applyState === 3) {
name = filterContractState(row.contractState)
} else {
name = filterapplyState(row.applyState)
}
return name
}
}
}