From 21c8080a1fc57c21687ed99737470659a1005dfb Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 26 Jul 2019 13:18:36 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=A0=B9=E6=8D=AE=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E7=9A=84lgbSelect=E9=87=8D=E6=9E=84Dicts=20Menus?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Views/Admin/Dicts.cshtml | 32 ++--- Bootstrap.Admin/Views/Admin/Menus.cshtml | 123 ++++++------------ .../wwwroot/lib/longbow/longbow.common.js | 2 +- 3 files changed, 54 insertions(+), 103 deletions(-) diff --git a/Bootstrap.Admin/Views/Admin/Dicts.cshtml b/Bootstrap.Admin/Views/Admin/Dicts.cshtml index 6e94cc6c..4cfdaeeb 100644 --- a/Bootstrap.Admin/Views/Admin/Dicts.cshtml +++ b/Bootstrap.Admin/Views/Admin/Dicts.cshtml @@ -29,17 +29,12 @@
-
- - - - - -
+ +
@@ -67,16 +62,11 @@
-
- - - - - -
+ +
diff --git a/Bootstrap.Admin/Views/Admin/Menus.cshtml b/Bootstrap.Admin/Views/Admin/Menus.cshtml index 8081d660..9564ff18 100644 --- a/Bootstrap.Admin/Views/Admin/Menus.cshtml +++ b/Bootstrap.Admin/Views/Admin/Menus.cshtml @@ -43,47 +43,33 @@
-
- - - - - -
+ +
-
- - - - - -
+ +
-
- - - - - -
+ +
@@ -162,61 +148,36 @@
-
- - - - - -
+
- +
-
- - - - - -
+
-
- - - - - -
+
diff --git a/Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js b/Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js index eca76277..2a9442bb 100644 --- a/Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js +++ b/Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js @@ -420,7 +420,7 @@ else { var data = []; this.lgbSelect('get', function (source) { data = source; }); - var find = data.filter(function () { return this.value === value; }); + var find = data.filter(function (item, index) { return item.value === value; }); if (find.length === 1) text = find[0].text; } }