提交 75af5556 编写于 作者: fusheng.liu's avatar fusheng.liu

ui样式修改

上级 8e5c2415
<template>
<div class="inquirylist">
<el-row>
<el-col :span="8" :key="o" :offset="index > 0 ? 2 : 0">
<el-row v-loading = loading>
<el-col :span="8" :offset="index > 0 ? 2 : 0">
<el-card shadow="always" :body-style="{ padding: '0px' }">
<div class="inquiryname">
<div class="inquiryinfo">
<div class="infone">问诊单{{inquiry.listnumber}}<span class="department">({{inquiry.department}}) </span></div>
<div class="infone">{{inquiry.listnumber+item}}<span class="department">{{inquiry.department}} </span></div>
<div class="talk">{{inquiry.voice}}</div>
<div class="time">{{inquiry.time}}</div>
<span class="time">{{inquiry.time}}</span>
</div>
<div class="inquirystatus">
<span class="status">状态:{{inquiry.status}}</span>
<span class="status">{{inquiry.status}}</span>
<div class="inquiryimg" v-if="inquiry.status==''">图片</div>
<div class="inquirytime" v-if="inquiry.countdown"><span></span> 00:00:15</div>
<div class="inquirytime" v-if="inquiry.countdown"><span></span> 已问诊{{inquiry.countdown}}</div>
</div>
</div>
<div class="inquirydoctor">
<div class="visitingdoctor">
<div class="onedoctor"><span>img</span>接诊医生 <el-tag v-if="inquiry.online" size="mini" type="danger" effect="dark">离线</el-tag></div>
<div class="onedoctorname">{{inquiry.visitingdoctor}}</div>
<div class="onedoctornum"> <span>{{inquiry.visitingdoctornum}}</span> <span @click="calldoc()" class="calldoctor"><span v-if="calldoctor">呼叫医生</span> <span v-else>呼叫中...</span></span> </div>
<em class="offline" v-if="inquiry.doctorline[0]" ></em>
<div class="onedoctor"> <el-avatar src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar></div>
<div class="onedoctorname"> {{inquiry.visitingdoctor}} <span>接诊医生</span>
<div class="onedoctornum">{{inquiry.visitingdoctornum}} <span v-if="inquiry.answer">未接听</span><i v-else></i></div>
</div>
<img
@click="calldoc()"
v-if="inquiry.imgshowdoc"
style="width: 45px; height: 46px ;margin-left:20px; cursor:pointer;"
:src="inquiry.imgshow?require('../../assets/image/workbench/callout.png'):require('../../assets/image/workbench/callouting.png')"
alt />
</div>
<div class="helpdoctor">
<div class="onedoctor"><span>img</span>接诊医生 <el-tag v-if="inquiry.online" size="mini" type="danger" effect="dark">离线</el-tag></div>
<div class="onedoctorname">{{inquiry.helpdoctor}}</div>
<div class="onedoctornum"> <span>{{inquiry.helpdoctornum}}</span> <span @click="calldoc()" class="calldoctor"><span v-if="calldoctor">呼叫医生</span> <span v-else>呼叫中...</span></span> </div>
<div class="helpdoctor">
<em v-if="inquiry.doctorline[1]" class="offline"></em>
<div class="onedoctor"> <el-avatar src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></el-avatar></div>
<div class="onedoctorname"> {{inquiry.visitingdoctor}} <span>助诊医生</span>
<div class="onedoctornum">{{inquiry.visitingdoctornum}} <span v-if="inquiry.answer">未接听</span><i v-else></i></div>
</div>
<img
v-if="inquiry.imgshowhelp"
style="width: 45px; height: 46px ;margin-left:20px; cursor:pointer;"
:src="inquiry.imgshowhelp?require('../../assets/image/workbench/callout.png'):require('../../assets/image/workbench/callouting.png')"
alt />
</div>
</div>
<div class="inquiryroom">
<span class="goroom">进入诊室</span>
<span class="suggest">诊断建议</span>
<div class="goroom"><span>进入诊室</span> </div>
<div class="suggest">诊断建议 <div class="writesuggest" v-if="inquiry.write">未写</div></div>
</div>
</el-card>
</el-col>
......@@ -44,38 +59,73 @@ export default {
return {
inquiry:{
time:new Date().getFullYear()+'-07-14 14:00-15:00',
status:'异常',
department:'科',
status:'待处理',
department:'重症谷壳内科神经科',
listnumber:'3520',
countdown:'1',
countdown:'00:00:15',
online:true,
voice:'语音问诊',
visitingdoctor:'孙四百',
helpdoctor:'孙四百',
visitingdoctornum:'111111111111',
helpdoctornum:'1111111111111'
helpdoctornum:'1111111111111',
answer:null,
imgshowdoc:true,
imgshowhelp:true,
imgshow:true,
docavator:'',
write:false,
doctorline:[false ,false]
},
calldoctor:true
calldoctor:true,
timer:null,
flag:true
};
},
props:{
loading:{
type: Boolean,
default: false
},
item:{
type:Number,
default:0
}
},
created() {
// vm = this;
},
methods: {
calldoc() {
this.calldoctor = false
}
if(this.flag){
this.inquiry.imgshow = false
let nums = 120
this.flag = false
this.timer = setInterval(() => {
if(nums>0){
nums--
}else{
clearInterval(this.timer)
this.timer = null;
this.inquiry.imgshow = true
this.flag = true
}
console.log(nums,this.inquiry.imgshow);
}, 1000);
}
},
}
}
</script>
<style lang="scss" scoped>
.inquirylist{
width: 592px;
height: 266px;
display: flex;
flex-basis: 30%;
width: 30%;
margin-bottom: 10px;
margin: 20px 30px 0px;
// margin: 20px 30px 0px;
padding: 10px 5px;
// background: #fff;
overflow: hidden !important;
......@@ -84,149 +134,147 @@ export default {
width: 100%;
height: 100%;
.el-col{
width: 100%;
height: 260px;
width: 572px;
height: 234px;
margin-left: 5px;
margin-bottom: 12px;
.el-card{
height: 100%;
border-radius: 18px;
padding: 12px 32px 20px 34px ;
}
}
.el-col-offset-2{
margin-left: 1%;
}
}
.inquiryname{
display: flex;
height: 100px;
border-bottom: rgb(209, 208, 208) 1px solid;
// height: 100px;
margin-bottom: 4px;
.inquiryinfo{
padding: 8px 7px;
// padding: 8px 7px;
.infone{
font-size: 18px;
font-size: 28px;
font-weight: 700;
margin-bottom: 20px;
margin-bottom: 10px;
color: #063948;
>span{
font-size: 14px;
color: #b2aeae;
font-size: 20px;
color: #063948;
display: inline-block;
margin-left: 5px;
margin-left: 7px;
}
}
.talk{
width: 120px;
height: 24px;
background: #F0F2F5;
border-radius: 23px;
color: #6A7990;
font-size: 14px;
color: #b2aeae;
margin-bottom: 7px;
line-height: 24px;
text-align: center;
display: inline-block;
}
.time{
color: #b2aeae;
font-size: 14px;
width: 217px;
height: 24px;
background: #F0F2F5;
border-radius: 23px;
display: inline-block;
text-align: center;
line-height: 24px;
color: #6A7990;
margin-left: 5px;
padding-left: 15px;
}
}
.inquirystatus{
.status{
position: absolute;
right: 24px;
position: relative;
right: -114px;
top: 12px;
}
.inquiryimg{
position: absolute;
right: 24px;
top: 60px;
position: relative;
left: 128px;
top: 40px;
}
.inquirytime{
position: absolute;
right: 24px;
top: 40px;
position: relative;
left: 65px;
top: 12px;
font-size: 14px;
color: #b2aeae;
color: #6A7990;
}
}
}
.inquirydoctor{
height: 115px;
border-bottom: rgb(209, 208, 208) 1px solid;
margin-bottom: 10px;
// height: 115px;
padding-top: 15px;
display: flex;
.visitingdoctor{
position: relative;
flex-basis: 50%;
padding: 5px 2px 7px 7px;
border-right: rgb(209, 208, 208) 1px solid;
.el-tag{
width: 30px;
height: 14px;
font-size: 10px !important;
line-height: 12px;
padding-left: 2px;
}
.el-tag--dark.el-tag--danger{
background-color: rgb(208, 2, 27);
border-color: rgb(208, 2, 27);
}
display: flex;
padding: 5px 2px 7px 7px;s
.onedoctor{
font-size: 14px;
color: #b2aeae;
margin: 4px;
margin-top: 10px;
width: 36px;
height: 36px;
}
.offline{
position: absolute;
top: 5px;
left: 4px;
width: 16px;
height: 16px;
background-image: url('../../assets/image/workbench/offline.png');
}
.onedoctorname{
margin-top: 18px;
font-size: 14px;
// margin-top: 18px;
font-size: 18px;
color: #063948;
margin-bottom: 7px;
>span{
font-size: 14px;
}
}
.onedoctornum{
font-size: 14px;
.calldoctor{
display: inline-block;
border-radius: 12px;
border: 1px solid rgb(129, 178, 234);
font-size: 12px;
color: rgb(129, 178, 234);
width: 59px;
height: 20px;
padding-left: 4px;
margin-left: 13px;
cursor:pointer;
}
font-size: 16px;
margin-top: 2px;
}
}
.helpdoctor{
flex-basis: 50%;
padding: 5px 2px 7px 7px;
.el-tag{
width: 30px;
height: 14px;
font-size: 10px !important;
line-height: 12px;
padding-left: 2px;
}
.el-tag--dark.el-tag--danger{
background-color: rgb(208, 2, 27);
border-color: rgb(208, 2, 27);
}
position: relative;
display: flex;
margin-left: 8px;
padding: 5px 2px 7px 7px;s
.onedoctor{
font-size: 14px;
color: #b2aeae;
margin: 4px;
margin-top: 10px;
width: 36px;
height: 36px;
}
.offline{
position: absolute;
top: 5px;
left: 4px;
width: 16px;
height: 16px;
background-image: url('../../assets/image/workbench/offline.png');
}
.onedoctorname{
margin-top: 18px;
font-size: 14px;
// margin-top: 18px;
font-size: 18px;
color: #063948;
margin-bottom: 7px;
>span{
font-size: 14px;
}
}
.onedoctornum{
font-size: 14px;
.calldoctor{
display: inline-block;
border-radius: 12px;
border: 1px solid rgb(129, 178, 234);
font-size: 12px;
color: rgb(129, 178, 234);
width: 59px;
height: 20px;
padding-left: 4px;
margin-left: 13px;
cursor:pointer;
}
font-size: 16px;
margin-top: 2px;
}
}
}
......@@ -234,22 +282,41 @@ export default {
height: 45px;
display: flex;
.goroom{
display: inline-block;
font-weight: 700;
flex-basis: 50%;
cursor:pointer;
width: 238px;
height: 37px;
background: rgb(239, 246, 244);
border-radius: 23px;
text-align: center;
height: 100%;
line-height: 45px;
border-right: rgb(209, 208, 208) 1px solid;
line-height: 37px;
>span{
color: #449284;
opacity: 1;
}
}
.suggest{
cursor:pointer;
font-weight: 700;
flex-basis: 50%;
display: inline-block;
width: 238px;
color: #449284;
margin-left: 24px;
height: 37px;
background: rgb(239, 246, 244);
border-radius: 23px;
text-align: center;
height: 100%;
line-height: 45px;
line-height: 37px;
.writesuggest{
position: relative;
top: -50px;
right: -150px;
color: #fff;
font-size: 14px;
text-align: center;
line-height: 20px;
width: 48px;
height: 20px;
background: #449284;
border-radius: 7px 7px 7px 0px;
}
}
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册