Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
account
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dfb806af
authored
Aug 19, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改日志
1 parent
dca58d10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
97 additions
and
6 deletions
html/employee/detail.html
html/merchant/detail.html
html/employee/detail.html
View file @
dfb806a
...
@@ -74,6 +74,13 @@
...
@@ -74,6 +74,13 @@
<div
class=
"layui-tab-content"
></div>
<div
class=
"layui-tab-content"
></div>
</div>
</div>
</div>
</div>
<div>
<h3
class=
"content-title sub-title"
>
修改日志
</h3>
<div
class=
"layui-tab tabmutiple-content"
style=
"padding: 0 20px;background-color: #fff;"
>
<table
class=
"layui-table"
id=
"recordTable"
></table>
<div
id=
"recordPage"
class=
"align-center"
></div>
</div>
</div>
<div
class=
"footer-close"
>
<div
class=
"footer-close"
>
<button
type=
"button"
class=
"layui-btn layui-btn-normal"
id=
"return"
>
关闭
</button>
<button
type=
"button"
class=
"layui-btn layui-btn-normal"
id=
"return"
>
关闭
</button>
</div>
</div>
...
@@ -83,19 +90,77 @@
...
@@ -83,19 +90,77 @@
<script
src=
"https://www.layuicdn.com/layui/layui.js"
></script>
<script
src=
"https://www.layuicdn.com/layui/layui.js"
></script>
<script
src=
"/js/load.js"
></script>
<script
src=
"/js/load.js"
></script>
<script>
<script>
layui
.
use
([
'request'
,
'helper'
,
'treeTab'
],
function
()
{
layui
.
use
([
'request'
,
'helper'
,
'treeTab'
,
'table'
,
'laypage'
],
function
()
{
/** 变量 */
/** 变量 */
var
$
=
layui
.
$
var
$
=
layui
.
$
var
request
=
layui
.
request
var
request
=
layui
.
request
var
helper
=
layui
.
helper
var
helper
=
layui
.
helper
var
id
=
qs
(
'id'
)
var
id
=
qs
(
'id'
)
var
treeTab
=
layui
.
treeTab
var
treeTab
=
layui
.
treeTab
var
table
=
layui
.
table
var
laypage
=
layui
.
laypage
var
merchantId
=
qs
(
'merchantId'
)
var
merchantId
=
qs
(
'merchantId'
)
var
basicArr
=
[
'staffName'
,
'staffPhone'
,
'roleName'
,
'roleIds'
,
'merchantName'
]
var
basicArr
=
[
'staffName'
,
'staffPhone'
,
'roleName'
,
'roleIds'
,
'merchantName'
]
var
employeeData
=
{}
var
employeeData
=
{}
var
visibleInferiorMerName
=
$
(
'#visibleInferiorMerName'
)
var
visibleInferiorMerName
=
$
(
'#visibleInferiorMerName'
)
var
recordPage
=
{
pageNum
:
1
,
pageSize
:
10
}
var
recordPageOptions
=
{
elem
:
'recordPage'
,
groups
:
5
,
layout
:
[
'count'
,
'page'
,
'skip'
],
jump
:
function
(
obj
,
first
)
{
recordPage
.
pageNum
=
obj
.
curr
recordPage
.
pageSize
=
obj
.
limit
//首次不执行
if
(
!
first
)
{
//do something
getRecordTable
()
}
}
}
var
recordTable
=
table
.
render
({
elem
:
'#recordTable'
,
page
:
false
,
skin
:
'nob'
,
cols
:
[
[{
field
:
'operator'
,
title
:
'登录账户'
,
align
:
'center'
},
{
field
:
'productName'
,
title
:
'登录产品'
,
align
:
'center'
},
{
field
:
'ip'
,
title
:
'登录IP'
,
align
:
'center'
,
width
:
120
},
{
field
:
'modifyContent'
,
title
:
'修改内容'
,
align
:
'center'
},
{
field
:
'userName'
,
title
:
'操作人'
,
align
:
'center'
},
{
field
:
'createdTime'
,
title
:
'操作时间'
,
align
:
'center'
,
width
:
160
}]
]
})
/** 调用方法 */
/** 调用方法 */
getById
()
getById
()
getRecordTable
()
/** 触发事件 */
/** 触发事件 */
$
(
'#return'
).
on
(
'click'
,
function
()
{
$
(
'#return'
).
on
(
'click'
,
function
()
{
...
@@ -147,6 +212,32 @@
...
@@ -147,6 +212,32 @@
}
}
})
})
}
}
// 修改记录
function
getRecordTable
(
isResetPageNum
)
{
var
params
=
{
bussinessId
:
id
,
moduleName
:
'员工模块'
,
pageNum
:
recordPage
.
pageNum
,
pageSize
:
recordPage
.
pageSize
,
method
:
'cn.com.glsx.merchants.menu.findLog'
}
request
(
params
,
function
(
res
)
{
var
data
=
res
.
data
$
.
each
(
data
.
data
,
function
(
index
,
item
)
{
data
.
data
[
index
].
modifyContent
=
item
.
module
+
'-'
+
item
.
action
})
var
options
=
{
data
:
data
.
data
,
}
recordPageOptions
.
count
=
data
.
count
if
(
isResetPageNum
)
{
recordPageOptions
.
curr
=
1
}
laypage
.
render
(
recordPageOptions
)
recordTable
.
reload
(
options
)
})
}
})
})
</script>
</script>
...
...
html/merchant/detail.html
View file @
dfb806a
...
@@ -246,7 +246,7 @@
...
@@ -246,7 +246,7 @@
</div>
</div>
</div>
</div>
<div
class=
"layui-tab-item updateRecord"
>
<div
class=
"layui-tab-item updateRecord"
>
<table
class=
"layui-table"
id=
"recordTable"
lay-filter=
"merchant-table-filter"
></table>
<table
class=
"layui-table"
id=
"recordTable"
></table>
<div
id=
"recordPage"
class=
"align-center"
></div>
<div
id=
"recordPage"
class=
"align-center"
></div>
<!-- <span class="no-data"> 暂无记录</span> -->
<!-- <span class="no-data"> 暂无记录</span> -->
</div>
</div>
...
@@ -317,10 +317,6 @@
...
@@ -317,10 +317,6 @@
skin
:
'nob'
,
skin
:
'nob'
,
cols
:
[
cols
:
[
[{
[{
field
:
'userName'
,
title
:
'操作人'
,
align
:
'center'
},
{
field
:
'operator'
,
field
:
'operator'
,
title
:
'登录账户'
,
title
:
'登录账户'
,
align
:
'center'
align
:
'center'
...
@@ -338,6 +334,10 @@
...
@@ -338,6 +334,10 @@
title
:
'修改内容'
,
title
:
'修改内容'
,
align
:
'center'
align
:
'center'
},
{
},
{
field
:
'userName'
,
title
:
'操作人'
,
align
:
'center'
},
{
field
:
'createdTime'
,
field
:
'createdTime'
,
title
:
'操作时间'
,
title
:
'操作时间'
,
align
:
'center'
,
align
:
'center'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment