vue3+ts项目开发笔记
//字典 begin
const optionsROOM_APPLICATION = ref([])
const getDictData = () => {
let dictTypes = ['ROOM_APPLICATION']
getSimpleDictItemList({ dictTypes: dictTypes, pageSize: 1000 })
.then((response) => {
if (response.length > 0) {
optionsROOM_APPLICATION.value = []
response.forEach((item) => {
if (item.dictType == 'room_application') {
optionsROOM_APPLICATION.value.push(item)
}
})
}
})
.catch((err) => {
console.log(err)
})
}
页:
[1]