Commit 67a098fc authored by songrui's avatar songrui

工作台滚动修改

parent 0e2534b9
...@@ -66,7 +66,7 @@ export default { ...@@ -66,7 +66,7 @@ export default {
if (!token) { if (!token) {
token = sessionStorage.getItem('token') token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
token = 'f0c1b081-b6d8-4958-a40f-0750cc272271' token = '1b8515e3-66a8-458b-b4d9-0cef6f73b8c1'
} }
} }
if (token) { if (token) {
......
...@@ -100,6 +100,7 @@ ...@@ -100,6 +100,7 @@
v-if="check.inspectFileList?.length"/> v-if="check.inspectFileList?.length"/>
</div> </div>
</div> </div>
<span class="py-1" v-if="!checkInfo.length">-</span>
</div> </div>
</van-collapse-item> </van-collapse-item>
</van-collapse> </van-collapse>
......
...@@ -33,10 +33,7 @@ export default { ...@@ -33,10 +33,7 @@ export default {
} }
}, },
// 疾病类型 // 疾病类型
diseaseType: { diseaseType: [String, Number],
type: [String, Number],
required: true
},
teleport: [String, Element] teleport: [String, Element]
}, },
emits: ['update:show', 'update:value', 'change'], emits: ['update:show', 'update:value', 'change'],
......
...@@ -78,12 +78,20 @@ export default { ...@@ -78,12 +78,20 @@ export default {
// 工作台查询范围 1:本科室 2:本人 // 工作台查询范围 1:本科室 2:本人
configRange: 1, configRange: 1,
configValue: { range: 1 }, configValue: { range: 1 },
configOption: null configOption: null,
// tab滚动记录
scrollRecord: 0
} }
}, },
created() { created() {
this.init() this.init()
}, },
activated() {
if (this.scrollRecord) {
const dom = this.$refs['tab-inner']
dom.scrollTo({ left: this.scrollRecord > 0 ? this.scrollRecord : 0 })
}
},
methods: { methods: {
init() { init() {
this.tabActive = this.configTab[0] this.tabActive = this.configTab[0]
...@@ -127,6 +135,7 @@ export default { ...@@ -127,6 +135,7 @@ export default {
// dom.children[index].scrollIntoView({ behavior: 'smooth', inline: 'start' }) // dom.children[index].scrollIntoView({ behavior: 'smooth', inline: 'start' })
const scrollNum = dom.children[index].offsetLeft - (dom.clientWidth - dom.children[index].clientWidth) / 2 const scrollNum = dom.children[index].offsetLeft - (dom.clientWidth - dom.children[index].clientWidth) / 2
dom.scrollTo({ left: scrollNum > 0 ? scrollNum : 0, behavior: 'smooth' }) dom.scrollTo({ left: scrollNum > 0 ? scrollNum : 0, behavior: 'smooth' })
this.scrollRecord = scrollNum
} }
} }
} }
......
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