Files
2026-09-08 19:49:21 +08:00

13 lines
343 B
JavaScript

const mCondolence = {
typeList: [],
async getType() {
const {data} = await $.get("/platform/condolence/type/getAll")
data.forEach(v => {
v.text = v.name + '(' + v.code + ')'
v.value = v.id
})
data.unshift({text: "全部类型", value: null})
this.typeList = data
}
}