Commit f9508638 by 前端

操作记录

1 parent 2bf04e6b
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 }
<!-- 修改记录 -->
<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>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!