Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Evan Liu
hms
提交
33059414
H
hms
项目概览
Evan Liu
/
hms
通知
10
Star
5
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hms
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
33059414
编写于
8月 14, 2021
作者:
刘
刘兴
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
打开分页功能
上级
fc559a29
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
78 deletion
+11
-78
HMS/src/main/webapp/userList.jsp
HMS/src/main/webapp/userList.jsp
+11
-78
未找到文件。
HMS/src/main/webapp/userList.jsp
浏览文件 @
33059414
...
...
@@ -161,6 +161,14 @@
,
toolbar
:
'
#userToolBar
'
//开启头部工具栏,并为其绑定左侧模板
,
defaultToolbar
:
[
'
filter
'
,
'
exports
'
,
'
print
'
]
,
cellMinWidth
:
180
,
parseData
:
function
(
res
){
return
{
"
code
"
:
res
.
code
,
"
msg
"
:
res
.
msg
,
"
count
"
:
res
.
data
.
totalSize
,
"
data
"
:
res
.
data
.
list
}
}
,
title
:
'
操作员列表
'
,
cols
:
[[
{
type
:
'
checkbox
'
,
fixed
:
'
left
'
}
...
...
@@ -172,13 +180,15 @@
,
{
fixed
:
'
right
'
,
title
:
'
操作
'
,
toolbar
:
'
#user_list_bar
'
}
]]
,
page
:
true
,
limit
:
5
,
limits
:[
5
,
10
,
20
,
30
,
40
,
50
,
60
,
70
,
80
,
90
,
100
]
});
//头工具栏事件
table
.
on
(
'
toolbar(user_list)
'
,
function
(
obj
)
{
switch
(
obj
.
event
)
{
case
'
getUserByName
'
:
console
.
log
(
$
(
"
#username
"
).
val
())
//
console.log($("#username").val())
table
.
reload
(
'
user_list
'
,
{
url
:
'
user/searchUser
'
,
where
:
{
names
:
$
(
"
#username
"
).
val
()},
...
...
@@ -306,81 +316,4 @@
});
});
</script>
<%--<script>--%>
<%-- $(function() {--%>
<%-- $.ajax({--%>
<%-- url:"user/getAllUser",--%>
<%-- type:"get",--%>
<%-- dataType:"json",--%>
<%-- beforeSend: function () {--%>
<%-- //显示登录加载提示--%>
<%-- this.index = layer.load(0, {shade: false, time: 10 * 1000})--%>
<%-- },--%>
<%-- complete: function () {--%>
<%-- layer.close(this.index);--%>
<%-- },--%>
<%-- success:function (data) {--%>
<%-- if (data.code === 200 && data.user != null ) {--%>
<%-- // 获取成功--%>
<%-- layer.msg(data.message, {icon: 1, time: 3000});--%>
<%-- let users = data.user;--%>
<%-- for (const n of users) {--%>
<%-- let list = "<tr>" +--%>
<%-- "<td>" + n.id + "</td>" +--%>
<%-- "<td>" + n.name + "</td>" +--%>
<%-- "<td>" + n.password + "</td>" +--%>
<%-- "<td>" + n.phone + "</td>" +--%>
<%-- "<td>" + n.state + "</td>" +--%>
<%-- "</tr>";--%>
<%-- $('#userList').append(list);--%>
<%-- }--%>
<%-- }--%>
<%-- },--%>
<%-- error:function (err) {--%>
<%-- layer.msg('服务器被吃啦!请稍后重试', {icon: 7, time: 3000});--%>
<%-- }--%>
<%-- });--%>
<%-- });--%>
<%-- function getUserByName() {--%>
<%-- let username = $("#username").val();--%>
<%-- $.ajax({--%>
<%-- url:"user/queryByUsername",--%>
<%-- type:"get",--%>
<%-- dataType:"json",--%>
<%-- data:{--%>
<%-- name:username--%>
<%-- },--%>
<%-- beforeSend: function () {--%>
<%-- //显示登录加载提示--%>
<%-- this.index = layer.load(0, {shade: false, time: 10 * 1000})--%>
<%-- },--%>
<%-- complete: function () {--%>
<%-- layer.close(this.index);--%>
<%-- },--%>
<%-- success:function (data) {--%>
<%-- if (data.code === 200 && data.user != null ) {--%>
<%-- // 获取成功--%>
<%-- layer.msg(data.message, {icon: 1, time: 3000});--%>
<%-- let users2 = data.user;--%>
<%-- for (const n of users2) {--%>
<%-- let list = "<tr>" +--%>
<%-- "<td>" + n.id + "</td>" +--%>
<%-- "<td>" + n.name + "</td>" +--%>
<%-- "<td>" + n.password + "</td>" +--%>
<%-- "<td>" + n.phone + "</td>" +--%>
<%-- "<td>" + n.state + "</td>" +--%>
<%-- "</tr>";--%>
<%-- $('#userList').append(list);--%>
<%-- }--%>
<%-- }--%>
<%-- },--%>
<%-- error:function (err) {--%>
<%-- layer.msg('服务器被吃啦!请稍后重试', {icon: 7, time: 3000});--%>
<%-- }--%>
<%-- });--%>
<%-- }--%>
<%--</script>--%>
</html>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录