Browse Source

居民详情点击左侧菜单滑动对应位置

feature
mk 2 years ago
parent
commit
cb7b9ef357
  1. 12
      src/views/modules/portrayal/jumin/index.vue
  2. 2
      src/views/modules/workSys/setResiUpdate/index.vue

12
src/views/modules/portrayal/jumin/index.vue

@ -229,7 +229,7 @@
> >
</div> </div>
</div> </div>
<div class="title-small">居住信息</div> <div class="title-small" id="reside">居住信息</div>
<section <section
v-for="(item, indexK) in resiDetailObj.resideInfoDtos" v-for="(item, indexK) in resiDetailObj.resideInfoDtos"
:key="indexK" :key="indexK"
@ -244,7 +244,7 @@
<div class="f-flex" style="width: 600px"> <div class="f-flex" style="width: 600px">
<div class="f-label"><b>所属房屋</b></div> <div class="f-label"><b>所属房屋</b></div>
<span class="f-left8 f-font-color"> <span class="f-left8 f-font-color">
{{ item.agencyName?item.agencyName:'' + item.homeName || "--" }} {{ item.agencyName + item.homeName }}
</span> </span>
</div> </div>
</div> </div>
@ -1313,11 +1313,15 @@ export default {
} }
}, },
handelCLickMenu(id, index) { handelCLickMenu(id, index) {
this.active = index; this.active = index;
const bottomElement = document.getElementById(`${id}`); const bottomElement = document.getElementById(`${id}`);
bottomElement.scrollIntoView({ behavior: "smooth", block: "start" }); const topOffset = -120; //
const topPos = bottomElement.getBoundingClientRect().top + window.pageYOffset + topOffset;
window.scrollTo({ top: topPos, behavior: "smooth" });
}, },
handelCLickShowCheckPassword(type) { handelCLickShowCheckPassword(type) {
this.form.password = ""; this.form.password = "";
this.checkType = "view"; this.checkType = "view";

2
src/views/modules/workSys/setResiUpdate/index.vue

@ -1,4 +1,3 @@
<!-- 列表页模板V5 -->
<template> <template>
<div class="g-main"> <div class="g-main">
<div> <div>
@ -81,7 +80,6 @@ import { mapGetters } from "vuex";
export default { export default {
components: {}, components: {},
data() { data() {
return { return {
tableLoading: false, tableLoading: false,

Loading…
Cancel
Save