refactor(system): 优化系统模块接口命名和参数校验
- 重构了多个控制器的查询接口,统一命名规范 - 新增参数校验,提高接口健壮性 - 更新了前端 API调用,以适应后端接口变更 - 优化了部分前端组件的错误提示文案
This commit is contained in:
@@ -185,7 +185,7 @@ import crudUser from '@/api/system/user'
|
||||
import { isvalidPhone } from '@/utils/validate'
|
||||
import { queryDeptList, queryDeptSuperiorTree } from '@/api/system/dept'
|
||||
import { queryRoleList, getLevel } from '@/api/system/role'
|
||||
import { getAllJob } from '@/api/system/job'
|
||||
import { queryAllEnableJob } from '@/api/system/job'
|
||||
import CRUD, { presenter, header, form, crud } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
@@ -450,7 +450,7 @@ export default {
|
||||
},
|
||||
// 获取弹窗内岗位数据
|
||||
getJobs() {
|
||||
getAllJob().then(res => {
|
||||
queryAllEnableJob().then(res => {
|
||||
this.jobs = res.content
|
||||
}).catch(() => { })
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user