Jelajahi Sumber

项目大屏调整

ellisran 1 Minggu lalu
induk
melakukan
08d2ab23bd

+ 4 - 3
app/public/js/project_screen_setting.js

@@ -91,11 +91,11 @@ $(function() {
         const screen = selectedScreen();
         if (!screen) return;
         const remaining = screens.filter(x => x.id !== screen.id);
-        let hint = '删除后该大屏配置会被移除,已有业务数据不会受到影响。';
+        let hint = '移除后,已有业务数据不会受到影响。';
         if (parseInt(screen.is_default) === 1 && remaining.length) {
             hint += ` “${remaining[0].name}”将自动成为默认大屏。`;
         } else if (parseInt(screen.is_default) === 1) {
-            hint += ' 这是最后一个大屏,删除后左侧项目大屏入口将隐藏。';
+            hint += ' 这是最后一个大屏,移除后左侧项目大屏入口将隐藏。';
         }
         $('#project-screen-delete-name').text(screen.name);
         $('#project-screen-delete-hint').text(hint);
@@ -176,7 +176,7 @@ $(function() {
             selectedId = screens.length ? String(screens[0].id) : '';
             renderScreens();
             $('#project-screen-delete-modal').modal('hide');
-            toastr.success('大屏删除成功');
+            toastr.success('大屏移除成功');
         });
     });
 
@@ -200,6 +200,7 @@ $(function() {
             const adminIcon = account.is_admin ? ' <span class="ml-1" title="管理员"><i class="fa fa-user-circle-o"></i></span>' : '';
             permissionOriginal[account.id] = authorized;
             html.push(`<tr data-id="${account.id}"><td>${escapeHtml(account.account)}${adminIcon}</td><td>${escapeHtml(account.name)}</td><td>${escapeHtml(account.company)}</td><td>${escapeHtml(account.role)}</td>`);
+            html.push(`<td class="text-nowrap">${escapeHtml(account.mobile)}</td>`);
             html.push(`<td><input type="checkbox" class="project-screen-permission-check" ${checked} ${disabled}></td></tr>`);
         });
         $('#project-screen-permission-body').html(html.join(''));

+ 2 - 1
app/view/setting/module.ejs

@@ -62,7 +62,7 @@
                                                 <span id="project-screen-selected-name">大屏预览</span>
                                                 <div class="ml-auto">
                                                     <button type="button" class="btn btn-outline-primary btn-sm" id="project-screen-default">设为默认</button>
-                                                    <button type="button" class="btn btn-outline-danger btn-sm ml-1" id="project-screen-delete">删除</button>
+                                                    <button type="button" class="btn btn-outline-danger btn-sm ml-1" id="project-screen-delete">移除</button>
                                                 </div>
                                             </div>
                                             <div class="project-screen-preview-stage d-flex align-items-center justify-content-center overflow-auto">
@@ -100,6 +100,7 @@
                                                     <th>用户</th>
                                                     <th>公司</th>
                                                     <th>职位</th>
+                                                    <th width="140" class="text-nowrap">手机号</th>
                                                     <th width="90">查看 <input type="checkbox" class="ml-2 align-middle" id="project-screen-permission-all"></th>
                                                 </tr>
                                                 </thead>

+ 3 - 3
app/view/setting/module_modal.ejs

@@ -20,15 +20,15 @@
     <div class="modal-dialog" role="document">
         <div class="modal-content">
             <div class="modal-header">
-                <h5 class="modal-title">删除大屏</h5>
+                <h5 class="modal-title">移除大屏</h5>
             </div>
             <div class="modal-body">
-                <p class="mb-1">确定删除“<strong id="project-screen-delete-name"></strong>”吗?</p>
+                <p class="mb-1">确定移除“<strong id="project-screen-delete-name"></strong>”吗?</p>
                 <p class="text-muted mb-0" id="project-screen-delete-hint"></p>
             </div>
             <div class="modal-footer">
                 <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
-                <button type="button" class="btn btn-danger btn-sm" id="project-screen-delete-confirm">确认删除</button>
+                <button type="button" class="btn btn-danger btn-sm" id="project-screen-delete-confirm">确认移除</button>
             </div>
         </div>
     </div>