diff --git a/src/api/cases/index.js b/src/api/cases/index.js new file mode 100644 index 0000000..46c2322 --- /dev/null +++ b/src/api/cases/index.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询病例列表 +export function listCase(query) { + return request({ + url: '/business/case/list', + method: 'get', + params: query + }) +} + +// 查询病例详情 +export function getCase(id) { + return request({ + url: '/business/case/' + id, + method: 'get' + }) +} + +// 新增病例 +export function addCase(data) { + return request({ + url: '/business/case', + method: 'post', + data: data + }) +} + +// 修改病例 +export function updateCase(data) { + return request({ + url: '/business/case', + method: 'put', + data: data + }) +} + +// 删除病例 +export function delCase(id) { + return request({ + url: '/business/case/' + id, + method: 'delete' + }) +} \ No newline at end of file diff --git a/src/assets/styles/element-ui.scss b/src/assets/styles/element-ui.scss index 0bd7151..e436f9d 100644 --- a/src/assets/styles/element-ui.scss +++ b/src/assets/styles/element-ui.scss @@ -113,4 +113,11 @@ .el-menu--collapse>div>.el-submenu>.el-submenu__title .el-submenu__icon-arrow { display: none; +} + +.el-table { + th { + background: #d5f5f5 !important; + color: $base-menu-background !important; + } } \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 68e33ac..69eeab7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -126,19 +126,26 @@ export const constantRoutes = [ } ] }, - // { - // path: '/cases', - // component: Layout, - // redirect: '/cases/index', - // children: [ - // { - // path: 'index', - // component: () => import('@/views/cases/index'), - // name: 'Cases', - // meta: { title: '病例库', icon: 'example' } - // } - // ] - // }, + { + path: '/cases', + component: Layout, + redirect: '/cases/index', + children: [ + { + path: 'index', + component: () => import('@/views/cases/index'), + name: 'Cases', + meta: { title: '病例库', icon: 'example' } + }, + { + path: 'detail/:id', + component: () => import('@/views/cases/detail'), + name: 'PatientDetail', + hidden: true, + meta: { title: '病例库详情' } + } + ] + }, { path: '/utility', component: Layout, diff --git a/src/views/cases/detail.vue b/src/views/cases/detail.vue new file mode 100644 index 0000000..9d8d291 --- /dev/null +++ b/src/views/cases/detail.vue @@ -0,0 +1,910 @@ + + + + + + + + 影像文件 + + 新增 + + + + + + + 上传完成 + + 删除 + + + + + + + + + + + + + 病例状态: + {{ caseStatus === "submitted" ? "已提交" : "暂存" }} + + + + 暂存 + + + 提交 + + + 打印 + + + 关闭 + + + 分享 + + + + 远程超声检查报告 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 全部复制 + + + 一键同意 + + + 待确认 + + + + + + + + {{ $store.state.user.nickName || "未登录" }} + + + + + + + + + + + + + + 阳性 + + + + + + + + + + + + + + + + 新增 + + + 删除 + + + 编辑 + + + + + + + + + + + + + 应用 + + + + + + + 应用 + + + + + + + + + + 新增 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/cases/index.vue b/src/views/cases/index.vue new file mode 100644 index 0000000..605b86b --- /dev/null +++ b/src/views/cases/index.vue @@ -0,0 +1,1079 @@ + + + + + + + + 创建时间 + 审核时间 + 预约时间 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + + + 重置 + + + + + + + + + 新增 + + + + + + + + + {{ + scope.row.patientName + ? scope.row.patientName.replace(/^(.).*(.)$/, "$1***$2") + : "-" + }} + + + + + + {{ genderList.find((i) => i.value == scope.row.gender).label || "-" }} + + + + + {{ scope.row.age || "" }} + {{ + ageUnitList.find((i) => i.value == scope.row.ageUnit).label || "" + }} + + + + + + {{ scope.row.customPart || scope.row.checkPart || "-" }} + + + + + {{ + checkTypeList.find((i) => i.value == scope.row.checkType).label || + "-" + }} + + + + + {{ + checkResultList.find((i) => i.value == scope.row.checkResult) + .label || "-" + }} + + + + + {{ + checkRoomList.find((i) => i.value == scope.row.checkRoom).label || + "-" + }} + + + + + + + + + + + + + + + + + + 查看 + + + 编辑 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.label }} + + {{ item.category }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file