|
@@ -20,7 +20,7 @@ import canvasFun from "@/components/business_space/newGraphy/canvasFun";
|
|
|
import { SColor, SPoint } from "@saga-web/draw/lib";
|
|
|
import { DivideFloorScene, SpaceItem, ZoneItem } from "@saga-web/cad-engine/lib";
|
|
|
import { FloorView } from "@saga-web/cad-engine/lib/FloorView";
|
|
|
-import { getFloorMsgByFloorID, queryZone, shaftSpaceQuery } from '@/api/scan/request';
|
|
|
+import { getFloorMsgByFloorID, queryZone, shaftSpaceQuery, shaftZoneLink } from '@/api/scan/request';
|
|
|
import { resolve, reject } from 'q';
|
|
|
const colorArr = [
|
|
|
"#fed44c",
|
|
@@ -208,7 +208,20 @@ export default {
|
|
|
},
|
|
|
//保存编辑
|
|
|
saveEdit(){
|
|
|
-
|
|
|
+ let param = {
|
|
|
+ BuildingId:this.buildingData[0],
|
|
|
+ FloorId:this.buildingData[1],
|
|
|
+ Type:this.space,
|
|
|
+ data:{
|
|
|
+ ShaftId:this.$route.query.ShaftId,
|
|
|
+ SpaceIdList:this.relatedSpaceIdList
|
|
|
+ }
|
|
|
+ }
|
|
|
+ shaftZoneLink(param, res => {
|
|
|
+ if(res.Result == "success"){
|
|
|
+ this.$message.success("保存成功")
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
//是否可点
|
|
|
setSelectAble(val) {
|