feat(router): 添加医生工作站等功能模块路由配置
- 新增医生工作站路由,包含待写病历功能 - 添加全部功能模块路由,支持功能列表和配置页面 - 集成待办事项模块路由,完善工作流功能 - 配置相关API接口和服务类,实现用户配置管理 - 实现待写病历列表展示和相关业务逻辑 - 完善首页统计数据显示功能
This commit is contained in:
62
openhis-ui-vue3/src/api/system/userConfig.js
Normal file
62
openhis-ui-vue3/src/api/system/userConfig.js
Normal file
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询用户配置列表
|
||||
export function listUserConfig(query) {
|
||||
return request({
|
||||
url: '/system/userConfig/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询用户配置详细
|
||||
export function getUserConfig(configId) {
|
||||
return request({
|
||||
url: '/system/userConfig/' + configId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增用户配置
|
||||
export function addUserConfig(data) {
|
||||
return request({
|
||||
url: '/system/userConfig',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改用户配置
|
||||
export function updateUserConfig(data) {
|
||||
return request({
|
||||
url: '/system/userConfig',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除用户配置
|
||||
export function delUserConfig(configId) {
|
||||
return request({
|
||||
url: '/system/userConfig/' + configId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取当前用户的指定配置
|
||||
export function getCurrentUserConfig(configKey) {
|
||||
return request({
|
||||
url: '/system/userConfig/currentUserConfig',
|
||||
method: 'get',
|
||||
params: { configKey }
|
||||
})
|
||||
}
|
||||
|
||||
// 保存当前用户的配置
|
||||
export function saveCurrentUserConfig(configKey, configValue) {
|
||||
return request({
|
||||
url: '/system/userConfig/saveCurrentUserConfig',
|
||||
method: 'post',
|
||||
params: { configKey, configValue }
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user