Commit d8c9567c by wangshuangqing

1.点击异常类目切换对应数据

2.点击异常细目切换定应表格数据
parent 0322cb71
...@@ -276,6 +276,7 @@ ...@@ -276,6 +276,7 @@
class="outpatientDetails_bottom_rght2_top_mes_span1" class="outpatientDetails_bottom_rght2_top_mes_span1"
v-for="(item, ind) in typeCountDatas" v-for="(item, ind) in typeCountDatas"
:key="ind" :key="ind"
@click="gettype(item.name)"
>{{ item.name }}:<span :style="{ color: item.color }">{{ >{{ item.name }}:<span :style="{ color: item.color }">{{
item.count item.count
}}</span></span }}</span></span
...@@ -291,6 +292,7 @@ ...@@ -291,6 +292,7 @@
class="outpatientDetails_bottom_rght2_bottom_li" class="outpatientDetails_bottom_rght2_bottom_li"
v-for="(item, ind) in options" v-for="(item, ind) in options"
:key="ind" :key="ind"
@click="getruleId(item.ruleId)"
> >
<span <span
v-show="item.projectRuleLevel == '禁止'" v-show="item.projectRuleLevel == '禁止'"
...@@ -356,7 +358,7 @@ export default { ...@@ -356,7 +358,7 @@ export default {
} }
}; };
//异常问题接口 //异常问题接口 显示全部异常信息
const GetProjectRulesData = () => { const GetProjectRulesData = () => {
http http
.post(`/medical/get/GetPRHisData?&code=${route.value.query.id}`, {}) .post(`/medical/get/GetPRHisData?&code=${route.value.query.id}`, {})
...@@ -372,6 +374,48 @@ export default { ...@@ -372,6 +374,48 @@ export default {
}) })
.catch((error) => {}); .catch((error) => {});
}; };
//点击异常分类 显示异常信息
const gettype=(name)=>{
console.log('name',name);
state.showCountDatas = true;
state.showbottom = true;
http
.post(`/medical/get/GetPRHisData?&code=${route.value.query.id}&projectType=${name}`, {})
.then((data) => {
state.options = data.projectRules;
// state.typeCountDatas = data.typeCountDatas;
// if (data.typeCountDatas == null) {
// state.showCountDatas = false;
// }
if (data.projectRules == null) {
state.showbottom = false;
}
})
.catch((error) => {
});
};
//点击获取中间的表格数据
const getruleId=(ruleId)=>{
http
.post(`/medical/Post/GetiFHisByItemCode?code=${route.value.query.id}&ruleId=${ruleId}`, {})
.then((data) => {
state.tableData = data;
})
.catch((error) => {
});
};
//医嘱质控 //医嘱质控
const getControl = () => { const getControl = () => {
http http
...@@ -543,6 +587,8 @@ export default { ...@@ -543,6 +587,8 @@ export default {
// tableCot, // tableCot,
GetProjectRulesData, GetProjectRulesData,
getControl, getControl,
gettype,
getruleId
}; };
}, },
}; };
......
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