|
@@ -20,12 +20,12 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import YqxqMap from './components/YqxqMap';
|
|
|
-import FourContent from './components/FourContent';
|
|
|
-import Xxxx from '@/views/BjWlydManageView/components/Xxxx';
|
|
|
+import YqxqMap from "./components/YqxqMap";
|
|
|
+import FourContent from "./components/FourContent";
|
|
|
+import Xxxx from "@/views/BjWlydManageView/components/Xxxx";
|
|
|
|
|
|
export default {
|
|
|
- name: 'index',
|
|
|
+ name: "index",
|
|
|
components: {
|
|
|
YqxqMap,
|
|
|
FourContent,
|
|
@@ -34,17 +34,17 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
detailShow: false,
|
|
|
- id: '',
|
|
|
+ id: "",
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
- let users = JSON.parse(localStorage.getItem('userInfo'));
|
|
|
+ let users = JSON.parse(localStorage.getItem("userInfo"));
|
|
|
if (users) {
|
|
|
} else {
|
|
|
- alert('您还未登陆,请先登录');
|
|
|
- this.$router.replace('/login');
|
|
|
+ alert("您还未登陆,请先登录");
|
|
|
+ this.$router.replace("/login");
|
|
|
}
|
|
|
- this.$vm.$on('mapClickHandle', (f) => {
|
|
|
+ this.$vm.$on("mapClickHandle", (f, key) => {
|
|
|
this.clickCallback(f);
|
|
|
});
|
|
|
},
|
|
@@ -55,10 +55,13 @@ export default {
|
|
|
},
|
|
|
detailClose(b) {
|
|
|
this.detailShow = b;
|
|
|
- this.id = '';
|
|
|
+ this.id = "";
|
|
|
b && this.$refs.list.getTsxzListData();
|
|
|
},
|
|
|
clickCallback(it) {
|
|
|
+ if (!it || !it.dksyh) {
|
|
|
+ this.detailShow = false;
|
|
|
+ }
|
|
|
this.detailShow = true;
|
|
|
this.id = it.dksyh;
|
|
|
|
|
@@ -75,7 +78,7 @@ export default {
|
|
|
.YqxqView {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- background: url('~@/assets/images/bg.png') no-repeat;
|
|
|
+ background: url("~@/assets/images/bg.png") no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
overflow: hidden;
|
|
|
display: flex;
|