From 60d3fd098041b6e304253f3dde5c41ad1683c9d4 Mon Sep 17 00:00:00 2001 From: msgroup Date: Sat, 29 May 2021 03:50:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/manager/cms/category/form.ftl | 14 ----------- .../WEB-INF/manager/cms/category/index.ftl | 8 ------ .../WEB-INF/manager/cms/content/form.ftl | 10 -------- .../WEB-INF/manager/cms/content/index.ftl | 2 -- .../WEB-INF/manager/cms/content/main.ftl | 7 +----- .../WEB-INF/manager/cms/generate/index.ftl | 25 ------------------- 6 files changed, 1 insertion(+), 65 deletions(-) diff --git a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl index 4fcfc49d..84ad4fb2 100644 --- a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl @@ -393,8 +393,6 @@ that.categoryList = res.data.rows; that.treeList[0].children = ms.util.treeData(res.data.rows, 'id', 'categoryId', 'children'); } - }).catch(function (err) { - console.log(err); }); }, save: function () { @@ -465,8 +463,6 @@ if(data.result){ that.mdiyModelIdOptions = data.data.rows; } - }).catch(function (err) { - console.log(err); }); }, //获取当前分类 @@ -505,8 +501,6 @@ that.contentList(that.form.id); } - }).catch(function (err) { - console.log(err); }); }, contentList: function (id) { @@ -521,8 +515,6 @@ that.categoryTypeDisabled = false; } } - }).catch(function (err) { - console.log(err); }); }, //获取categoryListUrl数据源 @@ -530,8 +522,6 @@ var that = this; ms.http.get(ms.manager + "/template/queryTemplateFileForColumn.do", {}).then(function (data) { that.categoryListUrlOptions = data.data; - }).catch(function (err) { - console.log(err); }); }, //获取categoryUrl数据源 @@ -539,8 +529,6 @@ var that = this; ms.http.get(ms.manager + "/template/queryTemplateFileForColumn.do", {}).then(function (data) { that.categoryUrlOptions = data.data; - }).catch(function (err) { - console.log(err); }); }, //获取categoryFlag数据源 @@ -554,8 +542,6 @@ res = res.data; that.categoryFlagOptions = res.rows; } - }).catch(function (err) { - console.log(err); }); }, //categoryImg文件上传完成回调 diff --git a/src/main/webapp/WEB-INF/manager/cms/category/index.ftl b/src/main/webapp/WEB-INF/manager/cms/category/index.ftl index 5e9fdaa7..9d39ade1 100644 --- a/src/main/webapp/WEB-INF/manager/cms/category/index.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/category/index.ftl @@ -169,8 +169,6 @@ type: 'warning' }); } - }).catch(function (err) { - console.log(err); }); }, //应用子栏目模板 @@ -193,8 +191,6 @@ type: 'warning' }); } - }).catch(function (err) { - console.log(err); }); }, //根据字典数据值获取字典标签名 @@ -234,8 +230,6 @@ that.emptyText = ''; that.dataList = ms.util.treeData(res.data.rows, 'id', 'categoryId', 'children'); } - }).catch(function (err) { - console.log(err); }); setTimeout(function () { if (that.loadState) { @@ -306,8 +300,6 @@ res = res.data; that.categoryFlagOptions = res.rows; } - }).catch(function (err) { - console.log(err); }); }, //表格数据转换 diff --git a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl index 43efb095..e1435029 100644 --- a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl @@ -453,8 +453,6 @@ } that.changeModel(); } - }).catch(function (err) { - console.log(err); }); }, //根据封面获取当前文章 @@ -499,8 +497,6 @@ type: 'warning' }); } - }).catch(function (err) { - console.log(err); }); }, //获取contentCategoryId数据源 @@ -521,8 +517,6 @@ //获取到栏目数据之后再进行初始化 that.init(); } - }).catch(function (err) { - console.log(err); }); }, //获取contentType数据源 @@ -536,8 +530,6 @@ data = data.data; that.contentTypeOptions = data.rows; } - }).catch(function (err) { - console.log(err); }); }, //contentImg文件上传完成回调 @@ -598,8 +590,6 @@ that.form = res.data.rows[0]; } - }).catch(function (err) { - console.log(err); }); }, //只有在渲染完栏目数据之后才会初始化 diff --git a/src/main/webapp/WEB-INF/manager/cms/content/index.ftl b/src/main/webapp/WEB-INF/manager/cms/content/index.ftl index 1e047ff2..02ce7747 100644 --- a/src/main/webapp/WEB-INF/manager/cms/content/index.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/content/index.ftl @@ -86,8 +86,6 @@ children: that.treeData }]; } - }).catch(function (err) { - console.log(err); }); setTimeout(function () { if (that.loadState) { diff --git a/src/main/webapp/WEB-INF/manager/cms/content/main.ftl b/src/main/webapp/WEB-INF/manager/cms/content/main.ftl index 2dca306f..14e8e471 100644 --- a/src/main/webapp/WEB-INF/manager/cms/content/main.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/content/main.ftl @@ -318,9 +318,8 @@ that.total = res.data.total; that.dataList = res.data.rows; } - }).catch(function (err) { + }).finally(function () { that.loading = false; - console.log(err); }); setTimeout(function () { if (that.loadState) { @@ -451,8 +450,6 @@ } that.list(); - }).catch(function (err) { - console.log(err); }); }, //获取contentType数据源 @@ -466,8 +463,6 @@ data = data.data; that.contentTypeOptions = data.rows; } - }).catch(function (err) { - console.log(err); }); } }, diff --git a/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl b/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl index 7b7b821f..a288d687 100644 --- a/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl @@ -176,13 +176,6 @@ type: 'error' }); } - }).catch(function (err) { - that.$notify({ - title: '更新失败!', - message: err, - type: 'error' - }); - console.log(err); }).finally(function () { that.homeLoading = false; }); @@ -217,13 +210,6 @@ type: 'error' }); } - }).catch(function (err) { - that.$notify({ - title: '更新失败!', - message: err, - type: 'error' - }); - console.log(err); }).finally(function () { that.columnLoading = false; }); @@ -248,13 +234,6 @@ type: 'error' }); } - }).catch(function (err) { - that.$notify({ - title: '更新失败!', - message: err, - type: 'error' - }); - console.log(err); }).finally(function () { that.articleLoading = false; }); @@ -272,8 +251,6 @@ }); //没有就找其他的 that.template = template || (that.templateOptions.length > 0 ? that.templateOptions[0] : ""); - }).catch(function (err) { - console.log(err); }); }, getTree: function () { @@ -285,8 +262,6 @@ //res.data.rows.push({id:0,categoryId: null,categoryTitle:'顶级栏目管理'}); that.treeList[0].children = ms.util.treeData(res.data.rows, 'id', 'categoryId', 'children'); } - }).catch(function (err) { - console.log(err); }); } },