فهرست منبع

添加账号单位默认

ellisran 1 سال پیش
والد
کامیت
684fe993f3

+ 4 - 4
app/public/js/setting_unit_list_order.js

@@ -56,10 +56,10 @@ const unitListOrder = (function () {
 
     function resetHeaderHtml() {
         $('#unit_header').html(`<tr>
-                                        <th>序号</th>
-                                        <th>单位名称 ${unitListOrder.getOrderButton('name')}</th>
-                                        <th>账号数</th>
-                                        <th>类型 ${unitListOrder.getOrderButton('type')}</th>
+                                        <th class="text-center">序号</th>
+                                        <th class="text-center">单位名称 ${unitListOrder.getOrderButton('name')}</th>
+                                        <th class="text-center">账号数</th>
+                                        <th class="text-center">类型 ${unitListOrder.getOrderButton('type')}</th>
                                         <th class="text-center">备注</th></tr>`);
     }
 

+ 6 - 6
app/view/setting/user.ejs

@@ -43,12 +43,12 @@
                                 <table class="table table-hover table-bordered table-sm">
                                     <thead>
                                     <tr>
-                                        <th>账号</th>
-                                        <th>姓名</th>
-                                        <th>单位</th>
-                                        <th>职位</th>
-                                        <th>手机</th>
-                                        <th>电话</th>
+                                        <th class="text-center">账号</th>
+                                        <th class="text-center">姓名</th>
+                                        <th class="text-center">单位</th>
+                                        <th class="text-center">职位</th>
+                                        <th class="text-center">手机</th>
+                                        <th class="text-center">电话</th>
                                         <th class="text-center">操作</th></tr>
                                     </thead>
                                     <tbody>

+ 5 - 1
app/view/setting/user_modal.ejs

@@ -42,7 +42,9 @@
                     <!--<input class="form-control form-control-sm" name="company" value="" type="text">-->
                     <input value="7" name="account_group" type="hidden">
                     <select class="form-control form-control-sm" name="company">
+                        <% if (unitList.length === 0) { %>
                         <option>请选择</option>
+                        <% } %>
                         <% for (const u of unitList) { %>
                             <option><%- u.name %></option>
                         <% } %>
@@ -119,7 +121,9 @@
                     <!--<input class="form-control form-control-sm" value="" name="company" type="text">-->
                     <input value="" name="account_group" type="hidden">
                     <select class="form-control form-control-sm" name="company">
-                        <option>请选择</option>
+                        <% if (unitList.length === 0) { %>
+                            <option>请选择</option>
+                        <% } %>
                         <% for (const u of unitList) { %>
                             <option><%- u.name %></option>
                         <% } %>

+ 4 - 4
app/view/setting/user_unit.ejs

@@ -27,10 +27,10 @@
                                 <table class="table table-hover table-bordered table-sm">
                                     <thead id="unit_header">
                                     <tr>
-                                        <th>序号</th>
-                                        <th>单位名称</th>
-                                        <th>账号数</th>
-                                        <th>类型</th>
+                                        <th class="text-center">序号</th>
+                                        <th class="text-center">单位名称</th>
+                                        <th class="text-center">账号数</th>
+                                        <th class="text-center">类型</th>
                                         <th class="text-center">备注</th></tr>
                                     </thead>
                                     <tbody id="unit_list" style="cursor: pointer">

+ 3 - 1
app/view/setting/user_unit_modal.ejs

@@ -41,7 +41,9 @@
                     <label>单位名称<b class="text-danger">*</b></label>
                     <input value="7" name="account_group" type="hidden">
                     <select class="form-control form-control-sm" name="company">
-                        <option value="0">请选择</option>
+                        <% if (unitList.length === 0) { %>
+                            <option>请选择</option>
+                        <% } %>
                         <% for (const u of unitList) { %>
                             <option><%- u.name %></option>
                         <% } %>