From b1a0cb7ada2be9b2970d8ef80357eaea5be7aaf0 Mon Sep 17 00:00:00 2001 From: hdm Date: Wed, 31 May 2023 17:37:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=8F=9C=E5=8D=95=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=9B=9E=E8=B0=83=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/home/view/rule/add.html | 4 +++- app/home/view/rule/index.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/home/view/rule/add.html b/app/home/view/rule/add.html index 95b8be7..af6262d 100644 --- a/app/home/view/rule/add.html +++ b/app/home/view/rule/add.html @@ -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); diff --git a/app/home/view/rule/index.html b/app/home/view/rule/index.html index 8a4e4e2..6594827 100644 --- a/app/home/view/rule/index.html +++ b/app/home/view/rule/index.html @@ -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 特定属性集