Commit 0f325232 by wangshuangqing

点击有交互效果 改变背景颜色

parent d8c9567c
...@@ -274,9 +274,11 @@ ...@@ -274,9 +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)"
@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
...@@ -290,9 +292,10 @@ ...@@ -290,9 +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)" @click="getruleId(item.ruleId,ind)"
> >
<span <span
v-show="item.projectRuleLevel == '禁止'" v-show="item.projectRuleLevel == '禁止'"
...@@ -375,7 +378,7 @@ export default { ...@@ -375,7 +378,7 @@ export default {
.catch((error) => {}); .catch((error) => {});
}; };
//点击异常分类 显示异常信息 //点击异常分类 显示异常信息
const gettype=(name)=>{ const gettype=(name,ind)=>{
console.log('name',name); console.log('name',name);
state.showCountDatas = true; state.showCountDatas = true;
state.showbottom = true; state.showbottom = true;
...@@ -383,7 +386,8 @@ export default { ...@@ -383,7 +386,8 @@ export default {
http http
.post(`/medical/get/GetPRHisData?&code=${route.value.query.id}&projectType=${name}`, {}) .post(`/medical/get/GetPRHisData?&code=${route.value.query.id}&projectType=${name}`, {})
.then((data) => { .then((data) => {
state.liInd=-1;
state.span1Ind=ind;
state.options = data.projectRules; state.options = data.projectRules;
// state.typeCountDatas = data.typeCountDatas; // state.typeCountDatas = data.typeCountDatas;
// if (data.typeCountDatas == null) { // if (data.typeCountDatas == null) {
...@@ -402,10 +406,11 @@ export default { ...@@ -402,10 +406,11 @@ export default {
//点击获取中间的表格数据 //点击获取中间的表格数据
const getruleId=(ruleId)=>{ const getruleId=(ruleId,ind)=>{
http http
.post(`/medical/Post/GetiFHisByItemCode?code=${route.value.query.id}&ruleId=${ruleId}`, {}) .post(`/medical/Post/GetiFHisByItemCode?code=${route.value.query.id}&ruleId=${ruleId}`, {})
.then((data) => { .then((data) => {
state.liInd=ind;
state.tableData = data; state.tableData = data;
}) })
...@@ -567,6 +572,8 @@ export default { ...@@ -567,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();
...@@ -1059,6 +1066,7 @@ export default { ...@@ -1059,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;
...@@ -1183,7 +1191,11 @@ export default { ...@@ -1183,7 +1191,11 @@ 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;
height: 36px; height: 36px;
...@@ -1232,7 +1244,7 @@ export default { ...@@ -1232,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;
...@@ -1261,6 +1273,9 @@ export default { ...@@ -1261,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