From 680916effb7cd9e8e1a6a38a27a2e28f4d5eb8d1 Mon Sep 17 00:00:00 2001 From: zhaoxiaohao <913652501@qq.com> Date: Tue, 11 Aug 2020 10:56:40 +0800 Subject: [PATCH] 修改 用户管理 修改按钮弹框的问题,去掉 debugger --- kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/system/sysArea.html | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/system/sysArea.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/system/sysArea.html index 8806195..3a0ca70 100644 --- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/system/sysArea.html +++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/system/sysArea.html @@ -8,7 +8,7 @@ </div> <div class="layui-card-body"> <div class="layui-form toolbar">  - <input id="area-search-value" class="layui-input search-input" type="text" placeholder="输入地区名称" />  + <input id="area-search-value" class="layui-input search-input" type="text" placeholder="按地区名称" />  <button id="area-btn-search" class="layui-btn icon-btn"><i class="layui-icon"></i>搜索</button> <button id="area-btn-add" class="layui-btn icon-btn permissions" permissions="save-area"><i class="layui-icon"></i>添加</button> <button id="area-btn-expand" class="layui-btn">全部展开</button> @@ -87,9 +87,9 @@ { field: 'enabled', width: 100, sort: true, templet: '#area-tpl-state', title: '状态' }, { templet: '#area-table-bar', width: 120, align: 'center', title: '操作' } ]], - done: function () { + done: function (res) { layer.closeAll('loading'); - permissionsInput(); + permissionsInput(res,config); } }); }; @@ -104,9 +104,9 @@ }, function (data) { layer.closeAll('loading'); if (data.code == 0) { - layer.msg(data.msg, { icon: 1, time: 500 }); + layer.msg(data.msg, { icon: 1, time: 2000 }); } else { - layer.msg(data.msg, { icon: 2, time: 500 }); + layer.msg(data.msg, { icon: 2, time: 2000 }); $(obj.elem).prop('checked', !obj.elem.checked); form.render('checkbox'); } @@ -167,7 +167,7 @@ } }); if (keyword !== '' && searchCount === 0) { - layer.msg("没有匹配结果", { icon: 5, time: 500 }); + layer.msg("没有匹配结果", { icon: 5, time: 2000 }); } else { treetable.expandAll('#area-table'); } -- Gitblit v1.8.0