From 9e67d8272e9b6896a7c64821a4b1bd044b26cd25 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Tue, 9 Jul 2019 17:54:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=A8=E6=88=B7=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=B2=97=E4=BD=8D=E9=80=89=E6=8B=A9=E6=A1=86=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/system/user/add.html | 6 ++---- .../src/main/resources/templates/system/user/edit.html | 9 ++++++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/system/user/add.html b/ruoyi-admin/src/main/resources/templates/system/user/add.html index e44faeea0..e3b36042a 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/add.html @@ -71,7 +71,7 @@
-
+
@@ -248,14 +248,12 @@ } } - jQuery(document).ready(function() { + $(function() { $('#post').select2({ placeholder:"请选择岗位", - width: 'auto', allowClear: true }); }) - diff --git a/ruoyi-admin/src/main/resources/templates/system/user/edit.html b/ruoyi-admin/src/main/resources/templates/system/user/edit.html index c2857f1c8..acef2c50f 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/edit.html @@ -85,7 +85,7 @@
-
+
@@ -218,6 +218,13 @@ layer.close(index); } } + + $(function() { + $('#post').select2({ + placeholder:"请选择岗位", + allowClear: true + }); + }) \ No newline at end of file