From 8858f75852aaf7fda80cff89415640b431cf60f7 Mon Sep 17 00:00:00 2001 From: pengda <10266652509@qq.com> Date: Fri, 11 Apr 2025 11:00:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=85=8D=E7=99=BB=E9=99=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- control/index.php | 5 ++++- view/js/subCount.js | 25 +++++++++++++++++++------ view/templates/index/user_list.html | 3 +++ 3 files changed, 26 insertions(+), 7 deletions(-) diff --git a/control/index.php b/control/index.php index ea06388..20027b9 100644 --- a/control/index.php +++ b/control/index.php @@ -54,7 +54,9 @@ class index extends publicBase { $user_info = $this->get_user_info(); if (!$user_info['is_super_admin']) $this->ajax_json(false, '您还有此权限'); - $condition = array('is_super_admin' => ADMIN_USER_NOT_SUPER); + $condition = array('aid'=>$user_info['aid']); + if ($user_info['aid'] == 0) $condition = array(); + $cur_page = $this->post('currentPage') ? $this->post('currentPage') : 1; $page_size = $this->post('pageSize') ? $this->post('pageSize') : 20; @@ -68,6 +70,7 @@ class index extends publicBase { 'last_page' => ceil($total / $page_size), 'cur_page' => $cur_page, 'list' => $user_list, + 'aid' => $user_info['aid'], ); $this->ajax_json(true, '获取成功', $rdata); diff --git a/view/js/subCount.js b/view/js/subCount.js index c8340ae..72de4ca 100644 --- a/view/js/subCount.js +++ b/view/js/subCount.js @@ -82,22 +82,35 @@ $(document).ready(function () { function renderData(data){ totalPages = data.last_page; var pageData = data.list + var login_aid = data.aid + $('#tbody-wrap').empty() renderList() var html = ''; pageData.forEach((item)=>{ - html += `
AID | + {/if}账号昵称 | 姓名 | 添加时间 |
---|