From 9e67d8272e9b6896a7c64821a4b1bd044b26cd25 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
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 e44faeea..e3b36042 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 @@
                     <div class="form-group">
                         <label class="col-sm-4 control-label">用户性别:</label>
                         <div class="col-sm-8">
-                            <div class="input-group" style="width: 100%">
+                            <div class="input-group">
                                 <select name="sex" class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}">
 				                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
 				                </select>
@@ -248,14 +248,12 @@
 			}
 		}
 
-        jQuery(document).ready(function() {
+		$(function() {
             $('#post').select2({
                 placeholder:"请选择岗位",
-                width: 'auto',
                 allowClear: true
             });
         })
-
     </script>
 </body>
 </html>
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 c2857f1c..acef2c50 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 @@
                     <div class="form-group">
                         <label class="col-sm-4 control-label">用户性别:</label>
                         <div class="col-sm-8">
-                            <div class="input-group" style="width: 100%">
+                            <div class="input-group">
                                <select name="sex" class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}">
 				                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{sex}"></option>
 				                </select>
@@ -218,6 +218,13 @@
     			layer.close(index);
 			}
 		}
+
+		$(function() {
+            $('#post').select2({
+                placeholder:"请选择岗位",
+                allowClear: true
+            });
+        })
     </script>
 </body>
 </html>
\ No newline at end of file