diff --git a/public/template/therapeuticTemplate.xlsx b/public/template/therapeuticTemplate.xlsx new file mode 100644 index 0000000..e4ada79 Binary files /dev/null and b/public/template/therapeuticTemplate.xlsx differ diff --git a/src/api/dictManage/therapeutic.js b/src/api/dictManage/therapeutic.js new file mode 100644 index 0000000..f662df0 --- /dev/null +++ b/src/api/dictManage/therapeutic.js @@ -0,0 +1,56 @@ +import request from "@/utils/request"; + +const BASE_URL = "/internal"; + +/** + * 治疗方案 + */ +// 治疗方案列表 +export function getTherapeuticListApi(params) { + return request({ + url: `${BASE_URL}/medical-treatment-plan`, + method: "get", + params, + }); +} + +// 新增治疗方案 +export function addTherapeuticApi(data) { + return request({ + url: `${BASE_URL}/medical-treatment-plan`, + method: "post", + data, + }); +} + +// 编辑治疗方案 +export function editTherapeuticApi(data) { + return request({ + url: `${BASE_URL}/medical-treatment-plan`, + method: "put", + data, + }); +} + +// 批量删除 +export function batchDelTherapeuticApi(data) { + return request({ + url: `${BASE_URL}/medical-treatment-plan`, + method: "delete", + data, + }); +} +// 治疗方案详情 +export function getTherapeuticApi(id) { + return request({ + url: `${BASE_URL}/medical-treatment-plan/${id}`, + method: "get", + }); +} +// 治疗方案详情 +export function delTherapeuticApi(id) { + return request({ + url: `${BASE_URL}/medical-treatment-plan/${id}`, + method: "get", + }); +} diff --git a/src/views/dictManage/diseaseManage/diseaseList/index.vue b/src/views/dictManage/diseaseManage/diseaseList/index.vue index b6a5849..24d56d7 100644 --- a/src/views/dictManage/diseaseManage/diseaseList/index.vue +++ b/src/views/dictManage/diseaseManage/diseaseList/index.vue @@ -20,6 +20,7 @@ :options="deptList" :autoFetch="false" :props="{ emitPath: true }" + @change="onChangeDept" /> @@ -108,9 +109,9 @@