优化菜单编辑回调方法
This commit is contained in:
parent
114996f224
commit
b1a0cb7ada
@ -154,7 +154,9 @@
|
||||
let callback = function (e) {
|
||||
layer.msg(e.msg);
|
||||
if (e.code == 0) {
|
||||
tool.sideClose(1000);
|
||||
setTimeout(function(){
|
||||
parent.location.reload();
|
||||
},1000);
|
||||
}
|
||||
}
|
||||
tool.post("/home/rule/add", data.field, callback);
|
||||
|
@ -24,7 +24,7 @@
|
||||
function gouguInit() {
|
||||
var treeTable = layui.treeTable, tool = layui.tool;
|
||||
|
||||
layui.pageTable = treeTable.render({
|
||||
layui.trees = treeTable.render({
|
||||
elem: '#treeTable'
|
||||
,url: "/home/rule/index"
|
||||
,tree: { // treeTable 特定属性集
|
||||
|
Loading…
x
Reference in New Issue
Block a user