From 922de14215a1881d063f98faf14848d01d9c4ab0 Mon Sep 17 00:00:00 2001 From: duhe Date: Wed, 26 Feb 2025 17:52:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=96=BE=E7=97=85=E7=9B=AE=E5=BD=95=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=8F=98=E6=9B=B4=E5=AF=B9=E5=BA=94=20up=20b?= =?UTF-8?q?y=20dh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../catalog/disease/components/disease.js | 4 +-- .../src/views/catalog/disease/index.vue | 31 ++++++++++++------- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/openhis-ui-vue3/src/views/catalog/disease/components/disease.js b/openhis-ui-vue3/src/views/catalog/disease/components/disease.js index e8f173a1..f23551c2 100644 --- a/openhis-ui-vue3/src/views/catalog/disease/components/disease.js +++ b/openhis-ui-vue3/src/views/catalog/disease/components/disease.js @@ -13,7 +13,7 @@ export function getDiseaseList(query) { // 查询病种目录详细 export function getDiseaseOne(id) { return request({ - url: '/datadictionary/disease/information-one' + parseStrEmpty(id), + url: '/datadictionary/disease/information-one/' + parseStrEmpty(id), method: 'get' }) } @@ -47,7 +47,7 @@ export function editDisease(data) { // 病种目录分类查询 export function getDiseaseCategory() { return request({ - url: '/datadictionary/disease/information-category', + url: '/datadictionary/disease/information-init', method: 'get' }) } diff --git a/openhis-ui-vue3/src/views/catalog/disease/index.vue b/openhis-ui-vue3/src/views/catalog/disease/index.vue index b204e3c3..83c48d95 100644 --- a/openhis-ui-vue3/src/views/catalog/disease/index.vue +++ b/openhis-ui-vue3/src/views/catalog/disease/index.vue @@ -49,26 +49,26 @@ v-show="showSearch" label-width="68px" > - + - + @@ -322,6 +322,8 @@ const multiple = ref(true); const total = ref(0); const title = ref(""); const conditionDefinitionOptions = ref(undefined); +// 是否停用 +const statusFlagOptions = ref(undefined); // const initPassword = ref(undefined); // const postOptions = ref([]); // const roleOptions = ref([]); @@ -331,8 +333,9 @@ const data = reactive({ queryParams: { pageNum: 1, pageSize: 50, - diseaseName: undefined, // 疾病名称 - status: undefined, // 状态(包括 1:预置,2:启用,3:停用) + searchKey: undefined, // 疾病名称 + statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用) + sourceEnum: undefined, // 来源(包括 1:病种目录分类,2:自定义) }, rules: { name: [{ required: true, message: "名称不能为空", trigger: "blur" }], @@ -357,12 +360,16 @@ const filterNode = (value, data) => { function getDiseaseCategoryList() { getDiseaseCategory().then((response) => { console.log(response, "response病种目录分类查询下拉树结构"); - conditionDefinitionOptions.value = response.data; + conditionDefinitionOptions.value = response.data.diseaseCategoryList; + statusFlagOptions.value = response.data.statusFlagOptions; + }); } /** 查询病种目录列表 */ function getList() { loading.value = true; + // queryParams.value.statusEnum = +queryParams.value.statusEnum + console.log(queryParams.value, "queryParams.value"); getDiseaseList(queryParams.value).then((res) => { loading.value = false; console.log(res, "res"); @@ -373,7 +380,7 @@ function getList() { } /** 节点单击事件 */ function handleNodeClick(data) { - queryParams.value.deptId = data.id; + queryParams.value.sourceEnum = data.id; handleQuery(); } /** 搜索按钮操作 */