Commit 29d2441f by wangshuangqing

Merge branch 'feature/切换显示异常问题' into develop

parents 0322cb71 0f325232
...@@ -274,8 +274,11 @@ ...@@ -274,8 +274,11 @@
<div class="outpatientDetails_bottom_rght2_top_mes"> <div class="outpatientDetails_bottom_rght2_top_mes">
<span <span
class="outpatientDetails_bottom_rght2_top_mes_span1" class="outpatientDetails_bottom_rght2_top_mes_span1"
:class="{ outpatientDetails_bottom_rght2_top_mes_span1background: ind == span1Ind }"
v-for="(item, ind) in typeCountDatas" v-for="(item, ind) in typeCountDatas"
:key="ind" :key="ind"
@click="gettype(item.name,ind)"
>{{ item.name }}:<span :style="{ color: item.color }">{{ >{{ item.name }}:<span :style="{ color: item.color }">{{
item.count item.count
}}</span></span }}</span></span
...@@ -289,8 +292,10 @@ ...@@ -289,8 +292,10 @@
<div class="outpatientDetails_bottom_rght2_bottom"> <div class="outpatientDetails_bottom_rght2_bottom">
<div <div
class="outpatientDetails_bottom_rght2_bottom_li" class="outpatientDetails_bottom_rght2_bottom_li"
:class="{outpatientDetails_bottom_rght2_bottom_liInd:ind==liInd}"
v-for="(item, ind) in options" v-for="(item, ind) in options"
:key="ind" :key="ind"
@click="getruleId(item.ruleId,ind)"
> >
<span <span
v-show="item.projectRuleLevel == '禁止'" v-show="item.projectRuleLevel == '禁止'"
...@@ -356,7 +361,7 @@ export default { ...@@ -356,7 +361,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 +377,50 @@ export default { ...@@ -372,6 +377,50 @@ export default {
}) })
.catch((error) => {}); .catch((error) => {});
}; };
//点击异常分类 显示异常信息
const gettype=(name,ind)=>{
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.liInd=-1;
state.span1Ind=ind;
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,ind)=>{
http
.post(`/medical/Post/GetiFHisByItemCode?code=${route.value.query.id}&ruleId=${ruleId}`, {})
.then((data) => {
state.liInd=ind;
state.tableData = data;
})
.catch((error) => {
});
};
//医嘱质控 //医嘱质控
const getControl = () => { const getControl = () => {
http http
...@@ -523,6 +572,8 @@ export default { ...@@ -523,6 +572,8 @@ export default {
lowMagnification: 0, //低倍率值 lowMagnification: 0, //低倍率值
highMagnification: 0, //高倍率值 highMagnification: 0, //高倍率值
bottomheight: "60%", //底部高度 bottomheight: "60%", //底部高度
span1Ind: -1,
liInd: -1,
}); });
//表格自适应高度 //表格自适应高度
const route = useRoute(); const route = useRoute();
...@@ -543,6 +594,8 @@ export default { ...@@ -543,6 +594,8 @@ export default {
// tableCot, // tableCot,
GetProjectRulesData, GetProjectRulesData,
getControl, getControl,
gettype,
getruleId
}; };
}, },
}; };
...@@ -1013,6 +1066,7 @@ export default { ...@@ -1013,6 +1066,7 @@ export default {
margin-bottom: 21px; margin-bottom: 21px;
font-size: 13px; font-size: 13px;
color: #6a707e; color: #6a707e;
cursor: pointer;/*鼠标移上有小手*/
div { div {
width: 98%; width: 98%;
height: 46px; height: 46px;
...@@ -1137,6 +1191,10 @@ export default { ...@@ -1137,6 +1191,10 @@ export default {
font-weight: 400; font-weight: 400;
color: #5d5d5d; color: #5d5d5d;
margin-right: 5px; margin-right: 5px;
cursor: pointer;/*鼠标移上有小手*/
}
&_span1background{
background: #d9f0fa;
} }
&_span2 { &_span2 {
width: 101px; width: 101px;
...@@ -1186,7 +1244,7 @@ export default { ...@@ -1186,7 +1244,7 @@ export default {
&_li { &_li {
width: 100%; width: 100%;
height: 25%; height: 25%;
cursor: pointer;/*鼠标移上有小手*/
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
...@@ -1215,6 +1273,9 @@ export default { ...@@ -1215,6 +1273,9 @@ export default {
width: 97%; width: 97%;
} }
} }
&_liInd{
background: #f3fafd;
}
} }
} }
} }
......
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