Ver código fonte

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

RuoYi 4 anos atrás
pai
commit
d8d8758cfa

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

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

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

@@ -104,7 +104,7 @@ export default {
104
         this.$store.dispatch('LogOut').then(() => {
104
         this.$store.dispatch('LogOut').then(() => {
105
           location.href = '/index';
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
         store.dispatch('LogOut').then(() => {
65
         store.dispatch('LogOut').then(() => {
66
           location.href = '/index';
66
           location.href = '/index';
67
         })
67
         })
68
-      })
68
+      }).catch(() => {});
69
     } else if (code === 500) {
69
     } else if (code === 500) {
70
       Message({
70
       Message({
71
         message: msg,
71
         message: msg,

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

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

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

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

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

@@ -178,7 +178,7 @@ export default {
178
           { required: true, message: "部门名称不能为空", trigger: "blur" }
178
           { required: true, message: "部门名称不能为空", trigger: "blur" }
179
         ],
179
         ],
180
         orderNum: [
180
         orderNum: [
181
-          { required: true, message: "菜单顺序不能为空", trigger: "blur" }
181
+          { required: true, message: "显示排序不能为空", trigger: "blur" }
182
         ],
182
         ],
183
         email: [
183
         email: [
184
           {
184
           {
@@ -310,7 +310,7 @@ export default {
310
         }).then(() => {
310
         }).then(() => {
311
           this.getList();
311
           this.getList();
312
           this.msgSuccess("删除成功");
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
 <template>
1
 <template>
2
   <div class="app-container">
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
       <el-form-item label="字典名称" prop="dictType">
4
       <el-form-item label="字典名称" prop="dictType">
5
         <el-select v-model="queryParams.dictType" size="small">
5
         <el-select v-model="queryParams.dictType" size="small">
6
           <el-option
6
           <el-option
@@ -334,7 +334,7 @@ export default {
334
         }).then(() => {
334
         }).then(() => {
335
           this.getList();
335
           this.getList();
336
           this.msgSuccess("删除成功");
336
           this.msgSuccess("删除成功");
337
-        })
337
+        }).catch(() => {});
338
     },
338
     },
339
     /** 导出按钮操作 */
339
     /** 导出按钮操作 */
340
     handleExport() {
340
     handleExport() {

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

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

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

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

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

@@ -393,7 +393,7 @@ export default {
393
         }).then(() => {
393
         }).then(() => {
394
           this.getList();
394
           this.getList();
395
           this.msgSuccess("删除成功");
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
           { required: true, message: "公告标题不能为空", trigger: "blur" }
224
           { required: true, message: "公告标题不能为空", trigger: "blur" }
225
         ],
225
         ],
226
         noticeType: [
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
         }).then(() => {
336
         }).then(() => {
337
           this.getList();
337
           this.getList();
338
           this.msgSuccess("删除成功");
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
           icon="el-icon-download"
100
           icon="el-icon-download"
101
           size="mini"
101
           size="mini"
102
           @click="handleExport"
102
           @click="handleExport"
103
-          v-hasPermi="['system:config:export']"
103
+          v-hasPermi="['system:operlog:export']"
104
         >导出</el-button>
104
         >导出</el-button>
105
       </el-col>
105
       </el-col>
106
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
106
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@@ -286,7 +286,7 @@ export default {
286
         }).then(() => {
286
         }).then(() => {
287
           this.getList();
287
           this.getList();
288
           this.msgSuccess("删除成功");
288
           this.msgSuccess("删除成功");
289
-        })
289
+        }).catch(() => {});
290
     },
290
     },
291
     /** 清空按钮操作 */
291
     /** 清空按钮操作 */
292
     handleClean() {
292
     handleClean() {
@@ -299,7 +299,7 @@ export default {
299
         }).then(() => {
299
         }).then(() => {
300
           this.getList();
300
           this.getList();
301
           this.msgSuccess("清空成功");
301
           this.msgSuccess("清空成功");
302
-        })
302
+        }).catch(() => {});
303
     },
303
     },
304
     /** 导出按钮操作 */
304
     /** 导出按钮操作 */
305
     handleExport() {
305
     handleExport() {

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

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

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

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

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

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

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

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