Browse Source

弹窗关闭事件BUG修复。

DESKTOP-6LTVLN7\Liumouren 2 years ago
parent
commit
b12989be58

+ 7 - 5
src/components/common/BottomForm/CreateTaskForm.vue

@@ -182,11 +182,13 @@ export default {
     },
     // 弹窗关闭询问
     handleClose() {
-      this.$confirm("确认关闭?")
-        .then(_ => {
-          this.clearDialogVisible("createTaskForm");
-        })
-        .catch(_ => {});
+      if (this.dialogVisible) {
+        this.$confirm("确认关闭?")
+          .then(_ => {
+            this.clearDialogVisible("createTaskForm");
+          })
+          .catch(_ => {});
+      }
     },
     // 申请任务取消
     clearDialogVisible(formName) {

+ 7 - 5
src/components/common/BottomForm/MyMission.vue

@@ -266,11 +266,13 @@ export default {
     },
     // 弹窗关闭询问
     handleClose() {
-      this.$confirm("确认关闭?")
-        .then(_ => {
-          this.clearDialogVisible();
-        })
-        .catch(_ => {});
+      if (this.dialogVisible) {
+        this.$confirm("确认关闭?")
+          .then(_ => {
+            this.clearDialogVisible();
+          })
+          .catch(_ => {});
+      }
     },
     // 我的任务取消
     clearDialogVisible() {

+ 9 - 9
src/views/HomeView.vue

@@ -13,7 +13,7 @@
           menuIndex: '2',
           subMenuIndex: '5',
           legendIcon: legendIcon,
-          legendTitle: legendTitle,
+          legendTitle: legendTitle
         }"
       />
       <div class="select-title">所属街道</div>
@@ -29,7 +29,7 @@
           <MenuCard
             :menuData="{
               type: 'card',
-              title: streetSelectVal+'资源问题',
+              title: streetSelectVal + '资源问题',
               titleWidth: 40,
               boxWidth: '780'
             }"
@@ -156,7 +156,7 @@
           boxHeight: '180',
           menuIndex: '1',
           legendIcon: legendIcon,
-          legendTitle: legendTitle,
+          legendTitle: legendTitle
         }"
       />
     </div>
@@ -203,7 +203,7 @@
       </MenuCard>
     </div>
     <!-- 底部菜单 2 -- 疑点筛查 -->
-    <div id="leftMenusB" v-if="$ifMenu('3', '')">
+    <div id="leftMenusB" v-show="$ifMenu('3', '')">
       <BottomMenus />
     </div>
   </div>
@@ -241,7 +241,7 @@ export default {
     BottomMenus,
     ComprehensiveAnalysis,
     TagProblemCard,
-    Legend,
+    Legend
   },
   data() {
     return {
@@ -424,16 +424,16 @@ export default {
       legendIcon: [
         {
           background: "#E565FF",
-          border: "none",
+          border: "none"
         },
         {
           background: "#0055FF",
-          border: "none",
+          border: "none"
         },
         {
           background: "#00FFD5",
-          border: "none",
-        },
+          border: "none"
+        }
       ],
       btnChecked: "A",
       AData: {