Commit a849b0a8 authored by liang's avatar liang

随访质控优化

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