fix: 修复模态框显示时页面滚动问题
为多个组件添加watch监听,当模态框显示时隐藏页面滚动条,关闭时恢复 修复学校筛选条件中sid改为id的字段匹配问题 清理viewMap组件中多余的注释代码
This commit is contained in:
@@ -314,7 +314,7 @@
|
||||
<el-popover v-model:visible="areaPopState" placement="bottom" :width="640" :show-arrow="false" trigger="click" popper-style="padding:0; border-radius:16px !important;" :disabled="verified == 1">
|
||||
<template #reference>
|
||||
<div ref="location" class="modeOne-item flexacenter" :class="{ disabled: verified == 1 }" style="width: 640px">
|
||||
<div class="modeOne-text flexacenter" v-if="info['location'] && info['location'] !== '0'">
|
||||
<div class="modeOne-text flexacenter" v-if="info['location'] && info['location'] !== '0'">
|
||||
{{ locationData[Math.floor(info.location)]?.name }}
|
||||
<img class="form-arrows form-arrows-disabled" src="@/assets/img/edit/thin-arrow-disabled.svg" />
|
||||
{{ locationData[Math.floor(info.location)]?.data[info.location] }}
|
||||
@@ -814,6 +814,12 @@ export default {
|
||||
pageTopBar,
|
||||
userBox,
|
||||
},
|
||||
watch: {
|
||||
targetAreaState(newVal) {
|
||||
if (newVal) document.body.style.overflow = "hidden";
|
||||
else document.body.style.overflow = "unset";
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
require(url) {
|
||||
return require(url);
|
||||
@@ -934,7 +940,7 @@ export default {
|
||||
if (info["floor"]) info["floor"] = Number(info["floor"]);
|
||||
if (info["rentalduration"]) info["rentalduration"] = Number(info["rentalduration"]);
|
||||
}
|
||||
|
||||
|
||||
this.fieldinfo = fieldinfo;
|
||||
this.typeData = typeData;
|
||||
this.locationData = locationData;
|
||||
@@ -954,7 +960,6 @@ export default {
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
this.info = info;
|
||||
this.verified = data.verified;
|
||||
@@ -1206,7 +1211,7 @@ export default {
|
||||
// 提交
|
||||
submit(status = 0) {
|
||||
if (status == 1 && this.$store.state.realname == 0 && this.$store.state.userInfoWin?.uin > 0) this.$store.commit("openAttest");
|
||||
|
||||
|
||||
let info = { ...this.info };
|
||||
|
||||
if (info["images"] && info["images"].length > 1 && !info["aid"]) {
|
||||
|
||||
Reference in New Issue
Block a user