panhui 6 лет назад
Родитель
Сommit
3934d2f0fb

+ 6 - 6
src/main/vue/src/components/VuforiaImageInfo.vue

@@ -230,16 +230,16 @@ export default {
       this.formData.mapIndex = jsonp.index
     },
     mapAddition() {
-      if (this.areaWidth < 3000) {
-        this.areaWidth += 300
-        this.areaHeight += 300
-      }
+      // if (this.areaWidth < 3000) {
+        this.areaWidth += 500
+        this.areaHeight += 500
+      // }
 
     },
     subtraction() {
       if (this.areaWidth > 1000) {
-        this.areaWidth -= 100
-        this.areaHeight -= 100
+        this.areaWidth -= 500
+        this.areaHeight -= 500
       }
     },
     cancel() {

+ 6 - 6
src/main/vue/src/pages/AimPlaceInfo.vue

@@ -386,16 +386,16 @@ export default {
       this.formData.mapIndex = jsonp.index
     },
     mapAddition() {
-      if (this.areaWidth < 900) {
-        this.areaWidth += 100
-        this.areaHeight += 100
-      }
+      // if (this.areaWidth < 900) {
+        this.areaWidth += 500
+        this.areaHeight += 500
+      // }
 
     },
     subtraction() {
       if (this.areaWidth > 600) {
-        this.areaWidth -= 100
-        this.areaHeight -= 100
+        this.areaWidth -= 500
+        this.areaHeight -= 500
       }
     },
     onSave() {

+ 6 - 6
src/main/vue/src/pages/AreaShowPoint.vue

@@ -265,16 +265,16 @@ export default {
       this.formData.mapIndex = jsonp.index
     },
     mapAddition() {
-      if (this.areaWidth < 3000) {
-        this.areaWidth += 300
-        this.areaHeight += 300
-      }
+      // if (this.areaWidth < 3000) {
+        this.areaWidth += 500
+        this.areaHeight += 500
+      // }
 
     },
     subtraction() {
       if (this.areaWidth > 1000) {
-        this.areaWidth -= 100
-        this.areaHeight -= 100
+        this.areaWidth -= 500
+        this.areaHeight -= 500
       }
     },
     onSave() {

+ 4 - 4
src/main/vue/src/pages/DrugAreaCanvas.vue

@@ -176,8 +176,8 @@ export default {
   },
   methods: {
     add() {
-      if (this.mapHeight <= (this.totalHeight - 100) * 3) {
-        this.mapHeight += (this.totalHeight - 100) / 5
+      // if (this.mapHeight <= (this.totalHeight - 100) * 3) {
+        this.mapHeight += (this.totalHeight - 100) /2
 
         setTimeout(() => {
           this.mapWidth = this.$refs.bgImg.offsetWidth
@@ -185,12 +185,12 @@ export default {
           this.$refs.canvas.height = this.mapHeight
           this.drawContent()
         }, 500)
-      }
+      // }
 
     },
     subtraction() {
       if (this.mapHeight > this.totalHeight - 100) {
-        this.mapHeight -= (this.totalHeight - 100) / 5
+        this.mapHeight -= (this.totalHeight - 100) / 2
         if (this.mapHeight < this.totalHeight - 100) {
           this.mapHeight = this.totalHeight - 100
         }

+ 4 - 4
src/main/vue/src/pages/DrugContentCanvas.vue

@@ -130,8 +130,8 @@ export default {
   },
   methods: {
     add() {
-      if (this.mapHeight <= (this.totalHeight - 100) * 3) {
-        this.mapHeight += (this.totalHeight - 100) / 5
+      // if (this.mapHeight <= (this.totalHeight - 100) * 3) {
+        this.mapHeight += (this.totalHeight - 100) / 2
 
         setTimeout(() => {
           this.mapWidth = this.$refs.bgImg.offsetWidth
@@ -139,12 +139,12 @@ export default {
           this.$refs.canvas.height = this.mapHeight
           this.drawContent()
         }, 500)
-      }
+      // }
 
     },
     subtraction() {
       if (this.mapHeight > this.totalHeight - 100) {
-        this.mapHeight -= (this.totalHeight - 100) / 5
+        this.mapHeight -= (this.totalHeight - 100) / 2
         if (this.mapHeight < this.totalHeight - 100) {
           this.mapHeight = this.totalHeight - 100
         }

+ 6 - 6
src/main/vue/src/pages/ThingInfo.vue

@@ -382,16 +382,16 @@ export default {
       console.log("222")
     },
     mapAddition() {
-      if (this.areaWidth < 900) {
-        this.areaWidth += 100
-        this.areaHeight += 100
-      }
+      // if (this.areaWidth < 900) {
+        this.areaWidth += 500
+        this.areaHeight += 500
+      // }
 
     },
     subtraction() {
       if (this.areaWidth > 600) {
-        this.areaWidth -= 100
-        this.areaHeight -= 100
+        this.areaWidth -= 500
+        this.areaHeight -= 500
       }
     }
   },

+ 8 - 8
src/main/vue/src/pages/VuforiaImageInfo.vue

@@ -200,17 +200,17 @@ export default {
       this.formData.mapIndex = jsonp.index
     },
     mapAddition() {
-      if (this.areaWidth < 900) {
-        this.areaWidth += 100
-        this.areaHeight += 100
-      }
+      // if (this.areaWidth < 900) {
+        this.areaWidth += 500
+        this.areaHeight += 500
+      // }
 
     },
     subtraction() {
-      if (this.areaWidth > 600) {
-        this.areaWidth -= 100
-        this.areaHeight -= 100
-      }
+      // if (this.areaWidth > 600) {
+        this.areaWidth -= 500
+        this.areaHeight -= 500
+      // }
     },
     onSave() {
       this.$refs.form.validate((valid) => {