优化操作流程界面,修改任务列表搜索和排序等
This commit is contained in:
@@ -145,7 +145,8 @@
|
||||
$.post('{{urlfor "ServerController.AjaxSave"}}', form_data, function (out) {
|
||||
if (out.status == 0) {
|
||||
layer.msg("操作成功",{icon: 1,shade:0.3,time:1000},function () {
|
||||
window.history.go(-1)
|
||||
// window.history.go(-1)//
|
||||
window.location.reload()
|
||||
})
|
||||
} else {
|
||||
layer.msg(out.message)
|
||||
|
||||
@@ -143,7 +143,8 @@
|
||||
$.post('{{urlfor "ServerController.AjaxSave"}}', form_data, function (out) {
|
||||
if (out.status == 0) {
|
||||
layer.msg("操作成功",{icon: 1,shade:0.3,time:1000},function () {
|
||||
window.location.href = "/server/list"
|
||||
//window.location.href = "/server/list"
|
||||
windwo.location.reload();
|
||||
})
|
||||
} else {
|
||||
layer.msg(out.message)
|
||||
|
||||
@@ -144,7 +144,8 @@
|
||||
$.post('{{urlfor "ServerController.AjaxSave"}}', form_data, function (out) {
|
||||
if (out.status == 0) {
|
||||
layer.msg("操作成功",{icon: 1,shade:0.3,time:1000},function () {
|
||||
window.history.go(-1)
|
||||
// window.history.go(-1)
|
||||
window.location.reload()
|
||||
})
|
||||
} else {
|
||||
layer.msg(out.message)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="layui-layout layui-layout-admin" style="padding-left: 20px;">
|
||||
<div class="layui-row" style="margin-top: 20px;">
|
||||
<div class="layui-col-xs6">
|
||||
<a class="layui-btn" data-type="tabAdd" href="/server/add">新增</a>
|
||||
<button class="layui-btn" data-type="tabAdd" id="add">新增</button>
|
||||
</div>
|
||||
<div class="layui-col-xs6 search_text">
|
||||
<form class="layui-form" action="" onsubmit="javascript:return false;">
|
||||
@@ -68,11 +68,16 @@
|
||||
}
|
||||
};
|
||||
|
||||
$("#add").on("click",function() {
|
||||
window.parent.openTab("/server/add",'新增资源',"admin_server_add-0",'fa-plus');
|
||||
})
|
||||
|
||||
//监听工具条
|
||||
table.on('tool(table_filter)', function(obj){
|
||||
var data = obj.data;
|
||||
var server_name = data.server_name
|
||||
if(obj.event === 'edit'){
|
||||
window.location.href="/server/edit?id="+data.id
|
||||
window.parent.openTab("/server/edit?id="+data.id,server_name+'编辑',"admin_server_edit-"+data.id,'fa-edit');
|
||||
} else if(obj.event === 'del'){
|
||||
layer.confirm('真的删除【'+data.server_name+'】服务器资源么', function(index){
|
||||
var jsData = {'id':data.id}
|
||||
@@ -91,7 +96,8 @@
|
||||
})
|
||||
|
||||
} else if(obj.event === 'copy'){
|
||||
window.location.href="/server/copy?id="+data.id
|
||||
window.parent.openTab("/server/copy?id="+data.id,server_name+'复制',"admin_server_copy-"+data.id,'fa-copy');
|
||||
// window.location.href="/server/copy?id="+data.id
|
||||
}else{
|
||||
layer.msg('操作不存在');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user