zjs_project 1 yıl önce
ebeveyn
işleme
dd4dc7afe9

+ 1 - 1
src/components/newBottomCom/viewPlot/viewPlot.vue

@@ -164,7 +164,7 @@
 					}
 				};
 				util.trackRequest(param);
-				this.$parent.$parent.userSelectPlot(plot);//告知页面,用户选择的布局id
+				this.$parent.$parent.userSelectPlot(plot,this.selectSpace);//告知页面,用户选择的布局id
 				this.lastTabIndex = this.tabIndex;
 			},
 			//去往详情页面

+ 2 - 2
src/pages/webgl_rxdz_test/webgl_rxdz_test.vue

@@ -1604,12 +1604,12 @@
 				this.changeSpaceColor(this.selectSpace.spaceId,1);//设置选中空间的颜色
 			},
 			//用户选择的布局id-需要切换到这个布局去
-			userSelectPlot(layoutObj){
+			userSelectPlot(layoutObj,space=null){
 				if(!layoutObj){
 					console.warn("***userSelectPlot***数据错误")
 					return false
 				}
-				let spaceId = this.selectSpace.spaceId;
+				let spaceId = space ? space.spaceId : this.selectSpace.spaceId;
 				console.warn("***userSelectPlot***",spaceId,layoutObj)
 				this.changeSingleLayout(spaceId,layoutObj);
 				this.updataLable(spaceId,layoutObj);