40 lines
757 B
JavaScript
40 lines
757 B
JavaScript
// const meetingUtil = {
|
|
//
|
|
//
|
|
//
|
|
// async getMeetingType(){
|
|
// $.get()
|
|
// }
|
|
//
|
|
// }
|
|
|
|
class meetingUtil {
|
|
|
|
constructor() {
|
|
|
|
}
|
|
|
|
/**
|
|
* 获取全部会议类型
|
|
* @returns {Promise<*[]|*>}
|
|
*/
|
|
async getAllMeetingType() {
|
|
const resp = await $.get('/platform/meeting/basic/type/findAll')
|
|
if (resp.code === 0) {
|
|
resp.data.forEach(v => {
|
|
v['text'] = v['meetingTypeName']
|
|
v['value'] = v['id']
|
|
})
|
|
return resp.data
|
|
}
|
|
return []
|
|
}
|
|
|
|
async findMaxStateId() {
|
|
const resp = await $.get('/platform/meeting/basic/type/findMaxStateId')
|
|
if (resp.code === 0) {
|
|
return resp.data
|
|
}
|
|
}
|
|
|
|
} |