|
|
|
|
@ -285,7 +285,7 @@
|
|
|
|
|
</el-card>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<Anchor show-ink :offset-top="64">
|
|
|
|
|
<Anchor class="myanchor" show-ink :offset-top="64" @on-select="anchorSelect">
|
|
|
|
|
<AnchorLink href="#detail-pictures" title="资产图集" v-if="
|
|
|
|
|
(detail.id_assets_atlas_files_house_id_relation &&
|
|
|
|
|
detail.id_assets_atlas_files_house_id_relation.length > 0) ||
|
|
|
|
|
@ -414,7 +414,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"prop": "name",
|
|
|
|
|
"label": "地块名称",
|
|
|
|
|
"label": "资产名称",
|
|
|
|
|
"width": 0,
|
|
|
|
|
"align": "left",
|
|
|
|
|
"fixed": "left"
|
|
|
|
|
@ -549,7 +549,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"prop": "name",
|
|
|
|
|
"label": "地块名称",
|
|
|
|
|
"label": "资产名称",
|
|
|
|
|
"minWidth": 200,
|
|
|
|
|
"fixed": "left",
|
|
|
|
|
"align": "left"
|
|
|
|
|
@ -688,7 +688,7 @@ export default {
|
|
|
|
|
width: 46,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '地块名称',
|
|
|
|
|
label: '资产名称',
|
|
|
|
|
prop: 'assets',
|
|
|
|
|
width: 180,
|
|
|
|
|
fixed: 'left',
|
|
|
|
|
@ -853,6 +853,34 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
anchorSelect (href) {
|
|
|
|
|
const cubic = value => Math.pow(value, 3);
|
|
|
|
|
const easeInOutCubic = value => value < 0.5
|
|
|
|
|
? cubic(value * 2) / 2
|
|
|
|
|
: 1 - cubic((1 - value) * 2) / 2;
|
|
|
|
|
const { y } = document.querySelector(href)?.getBoundingClientRect()
|
|
|
|
|
let scrollTop = y - 70
|
|
|
|
|
const el = document.querySelector(".app-main-scroll");
|
|
|
|
|
el.scrollTo({
|
|
|
|
|
left: 0,
|
|
|
|
|
top: scrollTop,
|
|
|
|
|
behavior: "smooth"
|
|
|
|
|
})
|
|
|
|
|
// const beginTime = Date.now();
|
|
|
|
|
// const beginValue = el.scrollTop;
|
|
|
|
|
// const rAF = window.requestAnimationFrame || (func => setTimeout(func, 16));
|
|
|
|
|
// const frameFunc = () => {
|
|
|
|
|
// const progress = (Date.now() - beginTime) / 500;
|
|
|
|
|
// if (progress < 1) {
|
|
|
|
|
// el.scrollTop = beginValue * (1 - easeInOutCubic(progress));
|
|
|
|
|
// rAF(frameFunc);
|
|
|
|
|
// } else {
|
|
|
|
|
// el.scrollTop = 0;
|
|
|
|
|
// }
|
|
|
|
|
// };
|
|
|
|
|
// rAF(frameFunc);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
copyLocation () {
|
|
|
|
|
const input = document.createElement("input");
|
|
|
|
|
input.setAttribute("readonly", "readonly"); // 设置为只读, 防止在 ios 下拉起键盘
|
|
|
|
|
@ -1321,6 +1349,10 @@ a:hover {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.myanchor {
|
|
|
|
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
.map-marker {
|
|
|
|
|
|