Commit ae8b3f86 by wangshuangqing

修改主题颜色

判断左侧高亮显示
确定进入开始页面
parent 9c89734d
...@@ -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-01-11 23:19:56 * @LastEditTime: 2023-01-12 11:35:48
* @Description: * @Description:
--> -->
<template> <template>
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<!-- 左侧内容 --> <!-- 左侧内容 -->
<div class="outClinicalpathway_top_left"> <div class="outClinicalpathway_top_left">
<div class="outClinicalpathway_top_left_one"> <div class="outClinicalpathway_top_left_one">
<span><img src="../assets/img/peo.png" alt="" /></span> <!-- <span><img src="../assets/img/peo.png" alt="" /></span> -->
<div class="outClinicalpathway_top_left_one_t1"> <div class="outClinicalpathway_top_left_one_t1">
患者姓名:<span>{{ topdata.patientName }}</span> 患者姓名:<span>{{ topdata.patientName }}</span>
</div> </div>
...@@ -30,8 +30,16 @@ ...@@ -30,8 +30,16 @@
</div> </div>
<!-- 右侧按钮 --> <!-- 右侧按钮 -->
<div class="outClinicalpathway_top_right"> <div class="outClinicalpathway_top_right">
<el-button type="primary" @click="joinorder()">加入医嘱</el-button> <el-button
<el-button type="primary" @click="variation()">病情变异</el-button> style="background-color: #0283bb; color: #ffff"
@click="joinorder()"
>加入医嘱</el-button
>
<el-button
style="background-color: #0283bb; color: #ffff"
@click="variation()"
>病情变异</el-button
>
</div> </div>
</div> </div>
<!--病情变异弹框开始 --> <!--病情变异弹框开始 -->
...@@ -96,7 +104,7 @@ ...@@ -96,7 +104,7 @@
? 'outClinicalpathway_table_left_timespan' ? 'outClinicalpathway_table_left_timespan'
: 'outClinicalpathway_table_left_timespan2' : 'outClinicalpathway_table_left_timespan2'
" "
@click="timeclick(activity, index)" @click="timeclick(activity)"
>{{ activity.inhosdays }}</span >{{ activity.inhosdays }}</span
> >
</el-timeline-item> </el-timeline-item>
...@@ -162,6 +170,7 @@ export default { ...@@ -162,6 +170,7 @@ export default {
setup() { setup() {
//表格自适应高度 //表格自适应高度
const route = useRoute(); const route = useRoute();
const router = useRouter();
const fromRef = ref(); const fromRef = ref();
const monthlyPlanTable = ref(); const monthlyPlanTable = ref();
const multipleTable = ref(); const multipleTable = ref();
...@@ -304,8 +313,6 @@ export default { ...@@ -304,8 +313,6 @@ export default {
// console.log("val", val); // console.log("val", val);
}; };
// console.log("state.multipleSelection", state.multipleSelection);
//获取左侧时间线数据 //获取左侧时间线数据
const getlefttime = () => { const getlefttime = () => {
http http
...@@ -315,13 +322,34 @@ export default { ...@@ -315,13 +322,34 @@ export default {
) )
.then((data) => { .then((data) => {
state.activities = data; state.activities = data;
// console.log("state.activities", state.activities);
state.options = data; state.options = data;
state.activities.every(item=>{
if(item.flag==true){
for (let i= 0; i < state.activities.length; i++) {
state.timeindex = state.activities[state.activities.length-1].inhosdays
timeclick(state.activities[state.activities.length-1]);
}
}else{
let obj = null;
//find返回数组中符合条件的第一个元素 有false
state.activities.find((item) => {
if (item.flag == false) {
obj = item;
state.timeindex = obj.inhosdays;
timeclick(obj);
}
});
}
})
}) })
.catch((error) => {}); .catch((error) => {});
}; };
//点击左侧时间线 获取右侧表格数据 //点击左侧时间线 获取右侧表格数据
const timeclick = (val, index) => { const timeclick = (val) => {
state.timeindex = val.inhosdays; state.timeindex = val.inhosdays;
state.case_routeid = val.case_routeid; state.case_routeid = val.case_routeid;
state.inhosdays = val.inhosdays; state.inhosdays = val.inhosdays;
...@@ -334,7 +362,7 @@ export default { ...@@ -334,7 +362,7 @@ export default {
state.tableData = data; state.tableData = data;
// console.log(" state.tableData", state.tableData); // console.log(" state.tableData", state.tableData);
state.tableData.map((el) => { state.tableData.map((el) => {
// console.log(" el",el); // console.log(" el",el);
if (el.children) { if (el.children) {
for (let i = 0; i < el.children.length; i++) { for (let i = 0; i < el.children.length; i++) {
if (el.children[i].ischeck == 1) { if (el.children[i].ischeck == 1) {
...@@ -370,6 +398,7 @@ export default { ...@@ -370,6 +398,7 @@ export default {
//病情变异 //病情变异
const variation = () => { const variation = () => {
state.editdialogFormVisible = true; state.editdialogFormVisible = true;
}; };
//确定 //确定
const fromOKbtn = () => { const fromOKbtn = () => {
...@@ -390,6 +419,13 @@ export default { ...@@ -390,6 +419,13 @@ export default {
reason: "", reason: "",
}), }),
(state.editdialogFormVisible = false); (state.editdialogFormVisible = false);
router.push({
path: "Entrypath",
query: {
pid: route.value.query.pid,
},
});
}) })
.catch((error) => {}); .catch((error) => {});
}; };
...@@ -436,19 +472,11 @@ export default { ...@@ -436,19 +472,11 @@ export default {
@import "../styles/mixin.scss"; @import "../styles/mixin.scss";
// @import "../styles/media/components/outClinicalpathway.scss"; // @import "../styles/media/components/outClinicalpathway.scss";
// 左侧表格点击高亮背景色 //多选框选中状态背景颜色
::v-deep .el-table__body tr.current-row > td { ::v-deep .el-checkbox__input.is-checked .el-checkbox__inner {
background-color: #ffff !important; background-color: #0085ba !important;
} border-color: #1097e0 !important;
// 点击文本颜色
::v-deep .current-row {
color: #55a6da !important;
} }
// 点击icon颜色
::v-deep .current-row .el-table__expand-icon {
color: #55a6da !important;
}
.outClinicalpathway { .outClinicalpathway {
// height: calc(100% - 50px); // height: calc(100% - 50px);
// background-color: white; // background-color: white;
...@@ -478,7 +506,7 @@ export default { ...@@ -478,7 +506,7 @@ export default {
&_one { &_one {
width: 100%; width: 100%;
height: 30%; height: 30%;
background-color: #f2fafd; background-color: #0283b9;
margin-bottom: 10px; margin-bottom: 10px;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -502,13 +530,14 @@ export default { ...@@ -502,13 +530,14 @@ export default {
color: #acacac; color: #acacac;
font-weight: 400; font-weight: 400;
padding-left: 20px; padding-left: 20px;
margin-left: 10px;
span { span {
width: 80%; width: 80%;
height: 80%; height: 80%;
color: #787878; color: #181617;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
font-weight: 600;
align-items: center; align-items: center;
} }
} }
...@@ -525,10 +554,10 @@ export default { ...@@ -525,10 +554,10 @@ export default {
span { span {
width: 80%; width: 80%;
height: 80%; height: 80%;
color: #787878; color: #181617;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
font-weight: 600;
align-items: center; align-items: center;
} }
} }
...@@ -547,8 +576,8 @@ export default { ...@@ -547,8 +576,8 @@ export default {
span { span {
width: 80%; width: 80%;
height: 80%; height: 80%;
font-weight: 600;
color: #787878; color: #181617;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
...@@ -568,8 +597,8 @@ export default { ...@@ -568,8 +597,8 @@ export default {
span { span {
width: 60%; width: 60%;
height: 80%; height: 80%;
font-weight: 600;
color: #787878; color: #181617;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
...@@ -599,8 +628,8 @@ export default { ...@@ -599,8 +628,8 @@ export default {
width: 80%; width: 80%;
height: 20px; height: 20px;
display: flex; display: flex;
background-color: #f2fafd; background-color: #0283bb;
color: #5dbee9; color: #ffff;
} }
&_timespan2 { &_timespan2 {
width: 80%; width: 80%;
......
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