瀏覽代碼

modify canvas

haojianlong 5 年之前
父節點
當前提交
e8176b949d

+ 2 - 2
package.json

@@ -21,8 +21,8 @@
         "vue-router": "^3.0.1",
         "vuex": "^3.1.0",
         "@sybotan-web/base": "2.0.51",
-        "@sybotan-web/draw": "2.0.104",
-        "@sybotan-web/graphy": "2.0.81"
+        "@sybotan-web/draw": "2.0.105",
+        "@sybotan-web/graphy": "2.0.82"
     },
     "devDependencies": {
         "ajv": "^6.9.1",

+ 4 - 1
src/views/data_admin/buildGraphy/graphyCanvas-copy.vue

@@ -624,7 +624,10 @@ export default {
     //插旗 item - 点击的空间item
     setNewFlag(item) {
       if (this.setFlag) {
-
+        console.log(item)
+        if (item.isBusiness) {
+          this.view.scene.addImgList([{ X: item.centerOfGravityPoint.x, Y: item.centerOfGravityPoint.y }])
+        }
       }
       this.setFlag = false
     }

+ 5 - 7
src/views/data_admin/buildGraphy/graphyTabs.vue

@@ -40,8 +40,8 @@ getLocation 定位
           <div>
             <form-input :width="100" @change="changeInput" :value="pointDetails.Name" :keys="'Name'" :label="'点位标签'" :isRule="false">
             </form-input>
-            <form-input :width="100" @change="changeInput" :value="pointDetails.LocalId" :keys="'LocalId'" :label="'点位本地编码'"
-              :isRule="false"></form-input>
+            <form-input :width="100" @change="changeInput" :value="pointDetails.LocalId" :keys="'LocalId'" :label="'点位本地编码'" :isRule="false">
+            </form-input>
           </div>
         </div>
       </div>
@@ -156,7 +156,6 @@ export default {
       pointData: [], //tab为本层的点位标签
       pointShow: false, //标签详情的弹窗
       pointDetails: {}, //标签详情信息对象
-      index: 0,
       installPic: [], //安装位置
       panorama: [], //全景照片
       rimPic: [], //周边照片
@@ -171,7 +170,6 @@ export default {
   methods: {
     //tabs被点击
     handleClick(tab, event) {
-      this.index = tab.index;
       this.pointData = [];
       this.getPointList();
     },
@@ -248,7 +246,7 @@ export default {
       this.mapPush(this.pointDetails.ImageList, this.videoPic);
       this.mapPush(this.pointDetails.ImageList, this.elsePic);
       let pa = {
-        Content:[this.pointDetails]
+        Content: [this.pointDetails]
       }
       updateLocationPoint(pa, res => {
         this.$message.success("修改成功");
@@ -300,14 +298,14 @@ export default {
           PageSize: 500,
           Filters: ''
         }
-        if (this.index == 0) {
+        if (this.activeName2 == "point") {
           pa.Filters = `FloorId='${this.pointParam.FloorId}'`
         } else {
           pa.Filters = 'FloorId isNull'
         }
         queryLocationPoint(pa, res => {
           this.pointData = res.Content;
-          if (this.index == 0) {
+          if (this.activeName2 == "point") {
             this.$emit("getPointList", res.Content);
           }
           this.isLoading = false;