|
@@ -5,7 +5,12 @@
|
|
|
:key="litem.scxbsm"
|
|
|
:name="litem.title"
|
|
|
>
|
|
|
- <template slot="title"> {{ litem.scxname }} </template>
|
|
|
+ <template slot="title">
|
|
|
+ {{ litem.scxname }}
|
|
|
+ <span v-if="litem.distance" class="distance">
|
|
|
+ ( {{ litem.distance }}米以内 {{ litem.number }} 个 )
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
<scjgContent
|
|
|
:ref="`contentRef${litem.scxbsm}`"
|
|
|
:litem="litem"
|
|
@@ -54,11 +59,15 @@ export default {
|
|
|
addrefs(key, ref) {
|
|
|
this.$emit("addrefs", key, ref);
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
mapview(data) {
|
|
|
this.$emit("mapview", data);
|
|
|
},
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
-
|
|
|
+<style lang="scss" scoped>
|
|
|
+.distance {
|
|
|
+ margin-left: 10px;
|
|
|
+}
|
|
|
+</style>
|