Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
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 f9508638
authored
Nov 10, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
操作记录
1 parent
2bf04e6b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
151 additions
and
0 deletions
src/api/modules/operate.js
src/views/operate/index.vue
src/api/modules/operate.js
0 → 100644
View file @
f950863
import
{
http
}
from
'@/main'
const
findMerchantAndStaffLog
=
params
=>
{
params
.
method
=
'merchants.api.menu.findMerchantAndStaffLog'
return
http
({
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
findMerchantAndStaffLog
}
src/views/operate/index.vue
0 → 100644
View file @
f950863
<!-- 修改记录 -->
<
template
>
<div
class=
"config-employee"
>
<div
class=
"config-employee-main"
>
<div
class=
"container"
>
<GLTable
ref=
"employeeRef"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
></GLTable>
</div>
</div>
</div>
</
template
>
<
script
>
// import { getDetailLogApi } from '@/api/modules/employee'
export
default
{
name
:
'record'
,
data
()
{
return
{
searchForm
:
{},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
getListApi
:
this
.
$apis
.
operate
.
findMerchantAndStaffLog
,
tableParams
:
{
listName
:
'data'
,
tableColumns
:
[
{
label
:
'登录账户'
,
prop
:
'userName'
,
line
:
2
,
formatter
:
cellValue
=>
{
return
cellValue
.
userName
||
'-'
}
},
{
label
:
'登录IP'
,
prop
:
'ip'
,
line
:
2
,
formatter
:
cellValue
=>
{
return
cellValue
.
ip
||
'-'
}
},
{
label
:
'修改内容'
,
prop
:
'action'
,
formatter
:
cellValue
=>
{
return
cellValue
.
module
+
'-'
+
cellValue
.
action
}
},
{
label
:
'操作人'
,
prop
:
'operator'
,
line
:
2
,
formatter
:
cellValue
=>
{
return
cellValue
.
operator
||
'-'
}
},
{
label
:
'操作时间'
,
prop
:
'createdTime'
,
width
:
'180px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
createdTime
||
'-'
}
}
]
}
}
},
mounted
()
{
console
.
log
(
this
.
$globalState
.
session
)
},
methods
:
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
this
.
searchForm
=
{
merchantNo
:
this
.
$globalState
.
session
.
merchantId
}
resolve
()
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.config-employee
{
&-main
{
background
:
#ffffff
;
}
}
.edit-title
{
font-size
:
16px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
600
;
color
:
#333333
;
padding
:
20px
20px
;
border-bottom
:
1px
solid
#e5e5e5
;
}
.config-employee
.container
{
background
:
#ffffff
;
padding
:
20px
;
}
.config-employee
.flex
{
display
:
flex
;
justify-content
:
space-between
;
}
/* .config-employee .edit-container {
margin-bottom: 84px;
} */
.config-employee
.footer
{
position
:
fixed
;
bottom
:
0
;
width
:
100%
;
height
:
64px
;
text-align
:
center
;
line-height
:
64px
;
background
:
#ffffff
;
z-index
:
999
;
}
.config-employee
.flex
{
display
:
flex
;
justify-content
:
space-between
;
}
.config-employee
.filter-tree
{
width
:
360px
;
max-height
:
200px
;
overflow
:
scroll
;
}
.config-employee
.el-checkbox
:last-of-type
{
margin-right
:
8px
;
}
.config-employee
.filter-tree
.el-tree-node__label
{
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
</
style
>
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