Bella 2 роки тому
батько
коміт
320bee2c0a

+ 22 - 0
src/components/common/BottomForm/CustomModelDialog.vue

@@ -28,6 +28,12 @@
       ></el-checkbox>
     </el-checkbox-group>
     <span slot="footer" class="dialog-footer">
+      <input
+        type="button"
+        value="叠置分析"
+        class="overlay-btn"
+        @click="executeOverlay"
+      />
       <el-button @click="clearDialogVisible()">取 消</el-button>
       <el-button type="primary" @click="saveModel()">保存模型</el-button>
     </span>
@@ -147,6 +153,10 @@ export default {
         }
       });
     },
+    // 执行叠置分析
+    executeOverlay() {
+      console.log("execute overlay");
+    },
   },
 };
 </script>
@@ -187,4 +197,16 @@ export default {
   color: #e6e6e6;
   margin-right: 0;
 }
+.overlay-btn {
+  width: 80px;
+  height: 40px;
+  position: absolute;
+  left: 50px;
+  bottom: 20px;
+  border-radius: 4px;
+  cursor: pointer;
+  color: #e6e6e6;
+  border: none;
+  background: rgba(129, 140, 164, 1);
+}
 </style>

+ 1 - 1
src/components/common/BottomMenus.vue

@@ -173,7 +173,7 @@ export default {
       //   this.$store.state.bottomMenuIndexs.subIndex == subIndex
       // );
       if (index == 1) {
-        if (subIndex == 0 || subIndex == 1) {
+        if (subIndex === 0 || subIndex === 1 || subIndex ===3) {
           return (
             this.$store.state.bottomMenuIndexs.index == index &&
             this.$store.state.bottomMenuIndexs.subIndex == subIndex