From ac371d08c1729d5b28aad86ef113fde21a7a181b Mon Sep 17 00:00:00 2001 From: "HDM58\\hdm58" Date: Sat, 6 Jan 2024 16:17:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E5=91=98=E5=B7=A5?= =?UTF-8?q?=E7=A6=81=E7=94=A8=E5=90=8E=EF=BC=8C=E5=9C=A8=E9=80=9A=E8=AE=AF?= =?UTF-8?q?=E5=BD=95=E4=B8=AD=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/home/controller/Index.php | 5 +---- app/home/view/index/mail_list.html | 34 +++--------------------------- 2 files changed, 4 insertions(+), 35 deletions(-) diff --git a/app/home/controller/Index.php b/app/home/controller/Index.php index aa44c9f..4ba8004 100644 --- a/app/home/controller/Index.php +++ b/app/home/controller/Index.php @@ -221,10 +221,7 @@ class Index extends BaseController if (!empty($param['keywords'])) { $where[] = ['id|username|name|nickname|mobile|desc', 'like', '%' . $param['keywords'] . '%']; } - $where[] = ['status', '<', 2]; - if (isset($param['status']) && $param['status']!='') { - $where[] = ['status', '=', $param['status']]; - } + $where[] = ['status', '=', 1]; if (!empty($param['did'])) { $department_array = get_department_son($param['did']); $where[] = ['did', 'in', $department_array]; diff --git a/app/home/view/index/mail_list.html b/app/home/view/index/mail_list.html index 7340daa..d27acf9 100644 --- a/app/home/view/index/mail_list.html +++ b/app/home/view/index/mail_list.html @@ -21,13 +21,6 @@
-
- -
@@ -68,9 +61,6 @@ ,page:{curr:1} }); $('[name="keywords"]').val(''); - $('[name="status"]').val(''); - $('[name="type"]').val(''); - layui.form.render('select'); } }); } @@ -85,23 +75,7 @@ page: true, //开启分页 limit: 20, cols: [ - [ - { - field: 'status', - title: '状态', - align: 'center', - width: 80, - templet: function (d) { - var html = '正常'; - if(d.status == 2){ - html = '已离职' - } - else if(d.status == 0){ - html = '被禁用' - } - return html; - } - },{ + [{ field: 'thumb', title: '头像', toolbar: '#thumb', @@ -119,8 +93,7 @@ width: 120 },{ field: 'email', - title: '电子邮箱', - align: 'center' + title: '电子邮箱' },{ field: 'sex', title: '性别', @@ -178,8 +151,7 @@ form.on('submit(webform)', function (data) { layui.pageTable.reload({ where: { - keywords: data.field.keywords, - status: data.field.status + keywords: data.field.keywords }, page: { curr: 1