【修改】专业-课程-题型 API接口修改

This commit is contained in:
任维炳
2025-04-23 17:17:00 +08:00
parent ff953d71ac
commit b8cd7b2e4e
3 changed files with 5 additions and 7 deletions

View File

@@ -12,16 +12,16 @@ export interface SpecialtyVO {
createTime: Date
}
// 查询部门(精简)列表
export const getSimpleSpecialtyist = async (): Promise<SpecialtyVO[]> => {
return await request.get({ url: '/exam/specialty/simple-list' })
}
// 查询部门列表
export const getSpecialtyPage = async (params: PageParam) => {
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) => {
return await request.get({ url: '/exam/specialty/' + id })

View File

@@ -45,7 +45,6 @@ import * as SpecialtyApi from '@/api/exam/specialty'
import * as UserApi from '@/api/system/user'
import { CommonStatusEnum } from '@/utils/constants'
import { FormRules } from 'element-plus'
import {getSpecialty} from "@/api/exam/specialty";
defineOptions({ name: 'SpecialtyForm' })

View File

@@ -105,7 +105,6 @@ import { handleTree } from '@/utils/tree'
import * as SpecialtyApi from '@/api/exam/specialty'
import SpecialtyForm from './SpecialtyForm.vue'
import * as UserApi from '@/api/system/user'
import {deleteSpecialty, getSpecialtyPage} from "@/api/exam/specialty";
defineOptions({ name: 'SystemDept' })