Commit a849b0a8 authored by liang's avatar liang

随访质控优化

parent 6a9a007a
......@@ -232,6 +232,7 @@ export default {
unionName: data["unionName"],
patientId: data.patientId,
checkStatus: data["checkStatus"],
checkNote: data["checkNote"],
},
})
} else {
......
......@@ -19,7 +19,7 @@
</el-header>
<el-container>
<el-aside width="auto" v-if="titlePosition === 'left'">
<div class="follow-tab">
<div class="follow-tab" ref="follow-tab">
<el-tabs
v-model="activeTab"
tab-position="right"
......@@ -192,7 +192,14 @@ export default {
patientFrom: this.$store.getters["table/selectedIndex"],
}).then((res) => {
this.followList = res.data.filter((_) => _.followBatch > 0)
this.activeTab = String(this.followList.length)
const len = this.followList.length
this.activeTab = String(len)
const el = this.$refs["follow-tab"]
if (el && len > 10) {
setTimeout(() => {
el.scrollTop = (len - 10) * 60
}, 0)
}
})
},
getFollowInfo() {
......@@ -258,8 +265,8 @@ export default {
.tab-label {
border-bottom: 1px solid #ccc;
padding: 0 20px;
height: 60px;
line-height: 60px;
height: 52px;
line-height: 52px;
}
.el-tabs__header {
margin-left: 0px;
......@@ -283,8 +290,8 @@ export default {
width: 180px;
padding: 0;
background: #fafafa;
height: 60px;
line-height: 60px;
height: 52px;
line-height: 52px;
transition: all 1s;
}
.el-tabs__item.is-active {
......@@ -297,11 +304,10 @@ export default {
border: 1px solid #cccccc;
height: 100%;
background: #fafafa;
padding-right: 15px;
height: calc(100vh - 280px);
overflow-y: overlay;
li {
padding: 16px;
padding: 18px 22px;
border-bottom: 1px solid #ccc;
// cursor: pointer;
.time {
......
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