You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
332 B
14 lines
332 B
import store from '@/store'
|
|
|
|
export function filterDict(type, value) {
|
|
const dict = store.getters.dictObject
|
|
// console.log(dict, type, value)
|
|
// debugger
|
|
const result = dict[type].filter((item) => item.dictValue == value)
|
|
if (result.length > 0) {
|
|
return result[0].dictLabel
|
|
} else {
|
|
return '未匹配到'
|
|
}
|
|
}
|