소스 검색

修复关闭confirm提示框控制台报错问题

RuoYi 4 년 전
부모
커밋
d8d8758cfa

+ 1 - 1
ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm

@@ -532,7 +532,7 @@ export default {
532 532
         }).then(() => {
533 533
           this.getList();
534 534
           this.msgSuccess("删除成功");
535
-        }).catch((err)=>{})
535
+        }).catch(() => {});
536 536
     }
537 537
   }
538 538
 };

+ 1 - 1
ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index.vue.vm

@@ -587,7 +587,7 @@ export default {
587 587
         }).then(() => {
588 588
           this.getList();
589 589
           this.msgSuccess("删除成功");
590
-        }).catch((err)=>{})
590
+        }).catch(() => {});
591 591
     },
592 592
 #if($table.sub)
593 593
 	/** ${subTable.functionName}序号 */

+ 1 - 1
ruoyi-ui/src/layout/components/Navbar.vue

@@ -104,7 +104,7 @@ export default {
104 104
         this.$store.dispatch('LogOut').then(() => {
105 105
           location.href = '/index';
106 106
         })
107
-      })
107
+      }).catch(() => {});
108 108
     }
109 109
   }
110 110
 }

+ 1 - 1
ruoyi-ui/src/utils/request.js

@@ -65,7 +65,7 @@ service.interceptors.response.use(res => {
65 65
         store.dispatch('LogOut').then(() => {
66 66
           location.href = '/index';
67 67
         })
68
-      })
68
+      }).catch(() => {});
69 69
     } else if (code === 500) {
70 70
       Message({
71 71
         message: msg,

+ 1 - 1
ruoyi-ui/src/views/monitor/job/index.vue

@@ -407,7 +407,7 @@ export default {
407 407
           return runJob(row.jobId, row.jobGroup);
408 408
         }).then(() => {
409 409
           this.msgSuccess("执行成功");
410
-        })
410
+        }).catch(() => {});
411 411
     },
412 412
     /** 任务详细信息 */
413 413
     handleView(row) {

+ 1 - 1
ruoyi-ui/src/views/monitor/online/index.vue

@@ -116,7 +116,7 @@ export default {
116 116
         }).then(() => {
117 117
           this.getList();
118 118
           this.msgSuccess("强退成功");
119
-        })
119
+        }).catch(() => {});
120 120
     }
121 121
   }
122 122
 };

+ 1 - 1
ruoyi-ui/src/views/system/config/index.vue

@@ -335,7 +335,7 @@ export default {
335 335
         }).then(() => {
336 336
           this.getList();
337 337
           this.msgSuccess("删除成功");
338
-        })
338
+        }).catch(() => {});
339 339
     },
340 340
     /** 导出按钮操作 */
341 341
     handleExport() {

+ 2 - 2
ruoyi-ui/src/views/system/dept/index.vue

@@ -178,7 +178,7 @@ export default {
178 178
           { required: true, message: "部门名称不能为空", trigger: "blur" }
179 179
         ],
180 180
         orderNum: [
181
-          { required: true, message: "菜单顺序不能为空", trigger: "blur" }
181
+          { required: true, message: "显示排序不能为空", trigger: "blur" }
182 182
         ],
183 183
         email: [
184 184
           {
@@ -310,7 +310,7 @@ export default {
310 310
         }).then(() => {
311 311
           this.getList();
312 312
           this.msgSuccess("删除成功");
313
-        })
313
+        }).catch(() => {});
314 314
     }
315 315
   }
316 316
 };

+ 2 - 2
ruoyi-ui/src/views/system/dict/data.vue

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div class="app-container">
3
-    <el-form :model="queryParams" ref="queryForm" v-show="showSearch" :inline="true">
3
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
4 4
       <el-form-item label="字典名称" prop="dictType">
5 5
         <el-select v-model="queryParams.dictType" size="small">
6 6
           <el-option
@@ -334,7 +334,7 @@ export default {
334 334
         }).then(() => {
335 335
           this.getList();
336 336
           this.msgSuccess("删除成功");
337
-        })
337
+        }).catch(() => {});
338 338
     },
339 339
     /** 导出按钮操作 */
340 340
     handleExport() {

+ 1 - 1
ruoyi-ui/src/views/system/dict/index.vue

@@ -339,7 +339,7 @@ export default {
339 339
         }).then(() => {
340 340
           this.getList();
341 341
           this.msgSuccess("删除成功");
342
-        })
342
+        }).catch(() => {});
343 343
     },
344 344
     /** 导出按钮操作 */
345 345
     handleExport() {

+ 2 - 2
ruoyi-ui/src/views/system/logininfor/index.vue

@@ -196,7 +196,7 @@ export default {
196 196
         }).then(() => {
197 197
           this.getList();
198 198
           this.msgSuccess("删除成功");
199
-        })
199
+        }).catch(() => {});
200 200
     },
201 201
     /** 清空按钮操作 */
202 202
     handleClean() {
@@ -209,7 +209,7 @@ export default {
209 209
         }).then(() => {
210 210
           this.getList();
211 211
           this.msgSuccess("清空成功");
212
-        })
212
+        }).catch(() => {});
213 213
     },
214 214
     /** 导出按钮操作 */
215 215
     handleExport() {

+ 1 - 1
ruoyi-ui/src/views/system/menu/index.vue

@@ -393,7 +393,7 @@ export default {
393 393
         }).then(() => {
394 394
           this.getList();
395 395
           this.msgSuccess("删除成功");
396
-        })
396
+        }).catch(() => {});
397 397
     }
398 398
   }
399 399
 };

+ 2 - 2
ruoyi-ui/src/views/system/notice/index.vue

@@ -224,7 +224,7 @@ export default {
224 224
           { required: true, message: "公告标题不能为空", trigger: "blur" }
225 225
         ],
226 226
         noticeType: [
227
-          { required: true, message: "公告类型不能为空", trigger: "blur" }
227
+          { required: true, message: "公告类型不能为空", trigger: "change" }
228 228
         ]
229 229
       }
230 230
     };
@@ -336,7 +336,7 @@ export default {
336 336
         }).then(() => {
337 337
           this.getList();
338 338
           this.msgSuccess("删除成功");
339
-        })
339
+        }).catch(() => {});
340 340
     }
341 341
   }
342 342
 };

+ 3 - 3
ruoyi-ui/src/views/system/operlog/index.vue

@@ -100,7 +100,7 @@
100 100
           icon="el-icon-download"
101 101
           size="mini"
102 102
           @click="handleExport"
103
-          v-hasPermi="['system:config:export']"
103
+          v-hasPermi="['system:operlog:export']"
104 104
         >导出</el-button>
105 105
       </el-col>
106 106
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@@ -286,7 +286,7 @@ export default {
286 286
         }).then(() => {
287 287
           this.getList();
288 288
           this.msgSuccess("删除成功");
289
-        })
289
+        }).catch(() => {});
290 290
     },
291 291
     /** 清空按钮操作 */
292 292
     handleClean() {
@@ -299,7 +299,7 @@ export default {
299 299
         }).then(() => {
300 300
           this.getList();
301 301
           this.msgSuccess("清空成功");
302
-        })
302
+        }).catch(() => {});
303 303
     },
304 304
     /** 导出按钮操作 */
305 305
     handleExport() {

+ 1 - 1
ruoyi-ui/src/views/system/post/index.vue

@@ -306,7 +306,7 @@ export default {
306 306
         }).then(() => {
307 307
           this.getList();
308 308
           this.msgSuccess("删除成功");
309
-        })
309
+        }).catch(() => {});
310 310
     },
311 311
     /** 导出按钮操作 */
312 312
     handleExport() {

+ 1 - 1
ruoyi-ui/src/views/system/role/index.vue

@@ -590,7 +590,7 @@ export default {
590 590
         }).then(() => {
591 591
           this.getList();
592 592
           this.msgSuccess("删除成功");
593
-        })
593
+        }).catch(() => {});
594 594
     },
595 595
     /** 导出按钮操作 */
596 596
     handleExport() {

+ 1 - 1
ruoyi-ui/src/views/system/user/index.vue

@@ -628,7 +628,7 @@ export default {
628 628
         }).then(() => {
629 629
           this.getList();
630 630
           this.msgSuccess("删除成功");
631
-        })
631
+        }).catch(() => {});
632 632
     },
633 633
     /** 导出按钮操作 */
634 634
     handleExport() {

+ 2 - 2
ruoyi-ui/src/views/tool/gen/index.vue

@@ -283,7 +283,7 @@ export default {
283 283
           return synchDb(tableName);
284 284
       }).then(() => {
285 285
           this.msgSuccess("同步成功");
286
-      })
286
+      }).catch(() => {});
287 287
     },
288 288
     /** 打开导入表弹窗 */
289 289
     openImportTable() {
@@ -333,7 +333,7 @@ export default {
333 333
       }).then(() => {
334 334
           this.getList();
335 335
           this.msgSuccess("删除成功");
336
-      })
336
+      }).catch(() => {});
337 337
     }
338 338
   }
339 339
 };