【修改】专业-课程-题型 API接口修改
This commit is contained in:
@@ -12,16 +12,16 @@ export interface SpecialtyVO {
|
|||||||
createTime: Date
|
createTime: Date
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询部门(精简)列表
|
|
||||||
export const getSimpleSpecialtyist = async (): Promise<SpecialtyVO[]> => {
|
|
||||||
return await request.get({ url: '/exam/specialty/simple-list' })
|
|
||||||
}
|
|
||||||
|
|
||||||
// 查询部门列表
|
// 查询部门列表
|
||||||
export const getSpecialtyPage = async (params: PageParam) => {
|
export const getSpecialtyPage = async (params: PageParam) => {
|
||||||
return await request.get({ url: '/exam/specialty/list', params })
|
return await request.get({ url: '/exam/specialty/list', params })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询部门列表
|
||||||
|
export const getSpecialtyPart = async () => {
|
||||||
|
return await request.get({ url: '/exam/specialty/part' })
|
||||||
|
}
|
||||||
|
|
||||||
// 查询部门详情
|
// 查询部门详情
|
||||||
export const getSpecialty = async (id: number) => {
|
export const getSpecialty = async (id: number) => {
|
||||||
return await request.get({ url: '/exam/specialty/' + id })
|
return await request.get({ url: '/exam/specialty/' + id })
|
||||||
|
@@ -45,7 +45,6 @@ import * as SpecialtyApi from '@/api/exam/specialty'
|
|||||||
import * as UserApi from '@/api/system/user'
|
import * as UserApi from '@/api/system/user'
|
||||||
import { CommonStatusEnum } from '@/utils/constants'
|
import { CommonStatusEnum } from '@/utils/constants'
|
||||||
import { FormRules } from 'element-plus'
|
import { FormRules } from 'element-plus'
|
||||||
import {getSpecialty} from "@/api/exam/specialty";
|
|
||||||
|
|
||||||
defineOptions({ name: 'SpecialtyForm' })
|
defineOptions({ name: 'SpecialtyForm' })
|
||||||
|
|
||||||
|
@@ -105,7 +105,6 @@ import { handleTree } from '@/utils/tree'
|
|||||||
import * as SpecialtyApi from '@/api/exam/specialty'
|
import * as SpecialtyApi from '@/api/exam/specialty'
|
||||||
import SpecialtyForm from './SpecialtyForm.vue'
|
import SpecialtyForm from './SpecialtyForm.vue'
|
||||||
import * as UserApi from '@/api/system/user'
|
import * as UserApi from '@/api/system/user'
|
||||||
import {deleteSpecialty, getSpecialtyPage} from "@/api/exam/specialty";
|
|
||||||
|
|
||||||
defineOptions({ name: 'SystemDept' })
|
defineOptions({ name: 'SystemDept' })
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user