[前端] 修改announcement模块轻微问题
1. 去掉翻页函数多余的参数 2.去掉新增公告刷新函数调用时多传的参数 3.去掉模板空的style标签 [CI SKIP]
This commit is contained in:
@@ -24,12 +24,12 @@ require(["jquery", "avalon", "csrf", "bs_alert", "editor", "validation"], functi
|
|||||||
else
|
else
|
||||||
return "隐藏";
|
return "隐藏";
|
||||||
},
|
},
|
||||||
getNext: function (el) {
|
getNext: function () {
|
||||||
if (!vm.next_page)
|
if (!vm.next_page)
|
||||||
return;
|
return;
|
||||||
getPageData(vm.page + 1);
|
getPageData(vm.page + 1);
|
||||||
},
|
},
|
||||||
getPrevious: function (el) {
|
getPrevious: function () {
|
||||||
if (!vm.previous_page)
|
if (!vm.previous_page)
|
||||||
return;
|
return;
|
||||||
getPageData(vm.page - 1);
|
getPageData(vm.page - 1);
|
||||||
@@ -156,8 +156,7 @@ require(["jquery", "avalon", "csrf", "bs_alert", "editor", "validation"], functi
|
|||||||
bs_alert("提交成功!");
|
bs_alert("提交成功!");
|
||||||
$("#title").val("");
|
$("#title").val("");
|
||||||
announcementEditor.setValue("");
|
announcementEditor.setValue("");
|
||||||
getPageData(1, function (data) {
|
getPageData(1);
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
bs_alert(data.data);
|
bs_alert(data.data);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
<style></style>
|
|
||||||
|
|
||||||
<div ms-controller="announcement" class="col-md-9">
|
<div ms-controller="announcement" class="col-md-9">
|
||||||
<h1>Announcement</h1>
|
<h1>Announcement</h1>
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
|
|||||||
Reference in New Issue
Block a user