|
@@ -2,8 +2,8 @@
|
|
* 通知管理初始化
|
|
* 通知管理初始化
|
|
*/
|
|
*/
|
|
var Notice = {
|
|
var Notice = {
|
|
- id: "NoticeTable", //表格id
|
|
|
|
- seItem: null, //选中的条目
|
|
|
|
|
|
+ id: "NoticeTable", //表格id
|
|
|
|
+ seItem: null, //选中的条目
|
|
table: null,
|
|
table: null,
|
|
layerIndex: -1
|
|
layerIndex: -1
|
|
};
|
|
};
|
|
@@ -46,7 +46,7 @@ Notice.openAddNotice = function () {
|
|
area: ['800px', '500px'], //宽高
|
|
area: ['800px', '500px'], //宽高
|
|
fix: false, //不固定
|
|
fix: false, //不固定
|
|
maxmin: true,
|
|
maxmin: true,
|
|
- content: Feng.ctxPath + '/notice/notice_add'
|
|
|
|
|
|
+ content: Feng.ctxPath + '/admin/notice/add'
|
|
});
|
|
});
|
|
this.layerIndex = index;
|
|
this.layerIndex = index;
|
|
};
|
|
};
|
|
@@ -62,7 +62,7 @@ Notice.openNoticeDetail = function () {
|
|
area: ['800px', '420px'], //宽高
|
|
area: ['800px', '420px'], //宽高
|
|
fix: false, //不固定
|
|
fix: false, //不固定
|
|
maxmin: true,
|
|
maxmin: true,
|
|
- content: Feng.ctxPath + '/notice/notice_update/' + Notice.seItem.id
|
|
|
|
|
|
+ content: Feng.ctxPath + '/admin/notice/edit/id/' + Notice.seItem.id
|
|
});
|
|
});
|
|
this.layerIndex = index;
|
|
this.layerIndex = index;
|
|
}
|
|
}
|
|
@@ -74,14 +74,14 @@ Notice.openNoticeDetail = function () {
|
|
Notice.delete = function () {
|
|
Notice.delete = function () {
|
|
if (this.check()) {
|
|
if (this.check()) {
|
|
|
|
|
|
- var operation = function(){
|
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/notice/delete", function (data) {
|
|
|
|
|
|
+ var operation = function () {
|
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/notice/delete", function (data) {
|
|
Feng.success("删除成功!");
|
|
Feng.success("删除成功!");
|
|
Notice.table.refresh();
|
|
Notice.table.refresh();
|
|
}, function (data) {
|
|
}, function (data) {
|
|
Feng.error("删除失败!" + data.responseJSON.message + "!");
|
|
Feng.error("删除失败!" + data.responseJSON.message + "!");
|
|
});
|
|
});
|
|
- ajax.set("noticeId", Notice.seItem.id);
|
|
|
|
|
|
+ ajax.set("id", Notice.seItem.id);
|
|
ajax.start();
|
|
ajax.start();
|
|
};
|
|
};
|
|
|
|
|
|
@@ -89,16 +89,16 @@ Notice.delete = function () {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
-Notice.top = function(){
|
|
|
|
|
|
+Notice.top = function () {
|
|
if (this.check()) {
|
|
if (this.check()) {
|
|
- var operation = function(){
|
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/notice/top", function (data) {
|
|
|
|
|
|
+ var operation = function () {
|
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/admin/notice/top", function (data) {
|
|
Feng.success("置顶成功!");
|
|
Feng.success("置顶成功!");
|
|
Notice.table.refresh();
|
|
Notice.table.refresh();
|
|
}, function (data) {
|
|
}, function (data) {
|
|
Feng.error("置顶成功!" + data.responseJSON.message + "!");
|
|
Feng.error("置顶成功!" + data.responseJSON.message + "!");
|
|
});
|
|
});
|
|
- ajax.set("noticeId", Notice.seItem.id);
|
|
|
|
|
|
+ ajax.set("id", Notice.seItem.id);
|
|
ajax.start();
|
|
ajax.start();
|
|
};
|
|
};
|
|
|
|
|
|
@@ -118,7 +118,7 @@ Notice.search = function () {
|
|
|
|
|
|
$(function () {
|
|
$(function () {
|
|
var defaultColunms = Notice.initColumn();
|
|
var defaultColunms = Notice.initColumn();
|
|
- var table = new BSTable(Notice.id, "/notice/list", defaultColunms);
|
|
|
|
- table.setPaginationType("client");
|
|
|
|
|
|
+ var table = new BSTable(Notice.id, "/admin/notice/list", defaultColunms);
|
|
|
|
+ //table.setPaginationType("client");
|
|
Notice.table = table.init();
|
|
Notice.table = table.init();
|
|
});
|
|
});
|