Commit d9d7ef63 by wangshuangqing

修改调用医嘱接口方式

parent f70ebd2c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: wsq * @Author: wsq
* @Date: 2022-04-22 15:20:58 * @Date: 2022-04-22 15:20:58
* @LastEditors: wsq * @LastEditors: wsq
* @LastEditTime: 2023-02-27 15:53:26 * @LastEditTime: 2023-02-27 16:24:33
* @Description: * @Description:
--> -->
<template> <template>
...@@ -786,14 +786,13 @@ export default { ...@@ -786,14 +786,13 @@ export default {
}; };
//单选 //单选
const radiochange = () => { const radiochange = () => {
if (state.radio == 1) {
//获取表格数据
http http
.post( .post(
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=${route.value.query.pid}&case_routeid=${state.case_routeid}&searchQuery=${state.inhosdays}`, `/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=${route.value.query.pid}&case_routeid=${state.case_routeid}&searchQuery=${state.inhosdays}`,
{} {}
) )
.then((data) => { .then((data) => {
if (state.radio == 1) {
state.tableData = data.route1; state.tableData = data.route1;
state.tableData.map((el) => { state.tableData.map((el) => {
...@@ -808,17 +807,8 @@ export default { ...@@ -808,17 +807,8 @@ export default {
} }
}); });
state.newtable1 = state.tableData; state.newtable1 = state.tableData;
})
.catch((error) => {});
} else if (state.radio == 2) { } else if (state.radio == 2) {
http
.post(
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=${route.value.query.pid}&case_routeid=${state.case_routeid}&searchQuery=${state.inhosdays}`,
{}
)
.then((data) => {
state.tableData = data.route2; state.tableData = data.route2;
state.tableData.map((el) => { state.tableData.map((el) => {
// console.log(" el",el); // console.log(" el",el);
if (el.children) { if (el.children) {
...@@ -831,9 +821,9 @@ export default { ...@@ -831,9 +821,9 @@ export default {
} }
}); });
state.newtable2 = state.tableData; state.newtable2 = state.tableData;
}
}) })
.catch((error) => {}); .catch((error) => {});
}
}; };
//点击左侧时间线 获取右侧表格数据 //点击左侧时间线 获取右侧表格数据
const timeclick = (val) => { const timeclick = (val) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment