|
@@ -14,7 +14,18 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
// 监听全局事件总线中的卷帘对比事件(JLControl)
|
|
|
- this.$bus.$on("JLControl",this.JLControl);
|
|
|
+ this.$bus.$on("JLControl", () => {
|
|
|
+ this.JLControl();
|
|
|
+ });
|
|
|
+ this.$bus.$on("caseAuditEvent", () => {
|
|
|
+ this.caseAuditEvent();
|
|
|
+ });
|
|
|
+ this.$bus.$on("labelCaseEvent", () => {
|
|
|
+ this.labelCaseEvent();
|
|
|
+ });
|
|
|
+ this.$bus.$on("customModelEvent", () => {
|
|
|
+ this.customModelEvent();
|
|
|
+ });
|
|
|
//地图初始化
|
|
|
this.mapInit();
|
|
|
this.getJSonData();
|
|
@@ -22,12 +33,30 @@ export default {
|
|
|
destroy() {
|
|
|
// 当容器销毁时,需要停止监听该事件
|
|
|
this.$bus.$off("JLControl");
|
|
|
+ // 疑点审计
|
|
|
+ this.$bus.$off("caseAuditEvent");
|
|
|
+ // 标记疑点
|
|
|
+ this.$bus.$off("labelCaseEvent");
|
|
|
+ // 自定义模型
|
|
|
+ this.$bus.$off("customModelEvent");
|
|
|
},
|
|
|
methods: {
|
|
|
// 卷帘对比
|
|
|
- JLControl(){
|
|
|
+ JLControl() {
|
|
|
console.log("用户点击了卷帘对比菜单!");
|
|
|
},
|
|
|
+ // 疑点审计
|
|
|
+ caseAuditEvent() {
|
|
|
+ console.log("case audit");
|
|
|
+ },
|
|
|
+ // 标记疑点
|
|
|
+ labelCaseEvent() {
|
|
|
+ console.log("label case");
|
|
|
+ },
|
|
|
+ // 自定义模型
|
|
|
+ customModelEvent() {
|
|
|
+ console.log("custom model");
|
|
|
+ },
|
|
|
mapInit: function () {
|
|
|
map2DViewer.map = L.map("map2DViewer", {
|
|
|
attributionControl: false,
|
|
@@ -40,8 +69,8 @@ export default {
|
|
|
var guid = publicFun.buildGuid("baseLayer");
|
|
|
var layer = L.esri
|
|
|
.tiledMapLayer({
|
|
|
- url:
|
|
|
- // "http://aimap.pudong.sh:5236/maps/rest/services/basemap-shanghai-gem-blue-sh2000/mapserver/"
|
|
|
+ url:
|
|
|
+ // "http://aimap.pudong.sh:5236/maps/rest/services/basemap-shanghai-gem-blue-sh2000/mapserver/"
|
|
|
systemConfig.mapService +
|
|
|
"?servertype=Street_Purplish_Blue&token=" +
|
|
|
systemConfig.token,
|