From ebb08194cd776edfee687233e0119429ef583862 Mon Sep 17 00:00:00 2001 From: bobi1234 Date: Fri, 3 Aug 2018 10:37:52 +0800 Subject: [PATCH] =?UTF-8?q?user=E7=9B=B8=E5=85=B3=E6=B7=BB=E5=8A=A0js?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user-add.html | 231 +++++++++++++++---------------- user-edit.html | 231 +++++++++++++++---------------- user.html | 366 ++++++++++++++++++++++++++++--------------------- 3 files changed, 439 insertions(+), 389 deletions(-) diff --git a/user-add.html b/user-add.html index 2164112..ad83a34 100644 --- a/user-add.html +++ b/user-add.html @@ -10,127 +10,128 @@ -
- -
+
+ + - -
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- - - -
-
-
- -
- -
-
-
- -
- - -
-
-
- -
- -
-
-
-
- - -
-
-
+ + +
- - - + +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + + +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+
+ + +
+
+
+
+ + + \ No newline at end of file diff --git a/user-edit.html b/user-edit.html index abeee99..8809549 100644 --- a/user-edit.html +++ b/user-edit.html @@ -10,127 +10,128 @@ -
- -
+
+ + - -
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- - - -
-
-
- -
- -
-
-
- -
- - -
-
-
- -
- -
-
-
-
- - -
-
-
+ + +
- - - + +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + + +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+
+ + +
+
+
+
+ + + \ No newline at end of file diff --git a/user.html b/user.html index 49b30f8..676e651 100644 --- a/user.html +++ b/user.html @@ -8,175 +8,223 @@ - + -
- -
+
+ + - -
- -
- - - - - - - 共有数据: - - -
+ + +
- - - - + + - - - - + + $("#batchDisabled").click(function () { + layer.confirm("确定要批量停用吗?", {skin: 'layui-layer-lan', icon: 3, title: '提示', anim: 2}, function () { + var checkStatus = table.checkStatus('tableId'); + var rows = checkStatus.data.length; + if (rows > 0) { + var idsStr = ""; + for (var i = 0; i < checkStatus.data.length; i++) { + idsStr += checkStatus.data[i].id + ','; + } + console.log("选择的id-->" + idsStr); + layer.msg("操作成功!", {icon: 1, time: 1000}, function () { + $(".layui-laypage-btn")[0].click(); + }); + } else { + layer.msg('未选择有效数据', { + offset: 't', + anim: 6 + }); + } + }); + }) + + $("#batchDel").click(function () { + layer.confirm("确定要批量删除吗?", {skin: 'layui-layer-lan', icon: 2, title: '提示', anim: 6}, function () { + var checkStatus = table.checkStatus('tableId'); + var rows = checkStatus.data.length; + if (rows > 0) { + var idsStr = ""; + for (var i = 0; i < checkStatus.data.length; i++) { + idsStr += checkStatus.data[i].id + ','; + } + console.log("选择的id-->" + idsStr); + layer.msg("操作成功!", {icon: 1, time: 1000}, function () { + $(".layui-laypage-btn")[0].click(); + }); + } else { + layer.msg('未选择有效数据', { + offset: 't', + anim: 6 + }); + } + }); + }) + + $("#addUser").click(function () { + layer.open({ + title: '添加用户', + type: 2, + shade: false, + maxmin: true, + shade: 0.5, + anim: 4, + area: ['90%', '90%'], + content: 'user-add.html', + zIndex: layer.zIndex, + // skin: 'layui-layer-molv', + end: function () { + $(".layui-laypage-btn")[0].click(); + } + }); + }) + }) + + + + + \ No newline at end of file