2021-04-08 20:28:54 +08:00
|
|
|
|
<template>
|
2021-04-13 20:33:12 +08:00
|
|
|
|
<div>
|
2021-04-08 20:28:54 +08:00
|
|
|
|
<nz-data-list
|
|
|
|
|
|
ref="dataList"
|
2021-04-13 20:33:12 +08:00
|
|
|
|
:api="url"
|
2021-08-23 18:50:08 +08:00
|
|
|
|
:layout="['searchInput', 'elementSet', 'pagination']"
|
2021-04-08 20:28:54 +08:00
|
|
|
|
:custom-table-title.sync="tools.customTableTitle"
|
2021-04-09 10:25:11 +08:00
|
|
|
|
:from="fromRoute.operationLog"
|
2021-04-22 17:43:13 +08:00
|
|
|
|
@search="search"
|
2021-04-13 20:33:12 +08:00
|
|
|
|
:search-msg="searchMsg">
|
2021-04-08 20:28:54 +08:00
|
|
|
|
<template v-slot:default="slotProps">
|
2021-04-13 20:33:12 +08:00
|
|
|
|
<operation-log-table
|
2021-04-08 20:28:54 +08:00
|
|
|
|
ref="dataTable"
|
2021-05-18 19:18:14 +08:00
|
|
|
|
v-loading="tools.loading"
|
2021-10-22 17:47:42 +08:00
|
|
|
|
:loading="tools.loading"
|
2021-04-13 20:33:12 +08:00
|
|
|
|
:api="url"
|
|
|
|
|
|
:custom-table-title="tools.customTableTitle"
|
2021-04-08 20:28:54 +08:00
|
|
|
|
:height="mainTableHeight"
|
2021-04-13 20:33:12 +08:00
|
|
|
|
:table-data="tableData"
|
|
|
|
|
|
@del="del"
|
|
|
|
|
|
@edit="edit"
|
|
|
|
|
|
@orderBy="tableDataSort"
|
|
|
|
|
|
@reload="getTableData"
|
|
|
|
|
|
@selectionChange="selectionChange"
|
|
|
|
|
|
@showBottomBox="(targetTab, object) => { $refs.dataList.showBottomBox(targetTab, object) }"></operation-log-table>
|
2021-04-08 20:28:54 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
<!-- 分页组件 -->
|
|
|
|
|
|
<template v-slot:pagination>
|
|
|
|
|
|
<Pagination ref="Pagination" :pageObj="pageObj" :tableId="tableId" @pageNo='pageNo' @pageSize='pageSize'></Pagination>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</nz-data-list>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
|
|
|
import nzDataList from '@/components/common/table/nzDataList'
|
2021-04-13 20:33:12 +08:00
|
|
|
|
import dataListMixin from '@/components/common/mixin/dataList'
|
|
|
|
|
|
import operationLogTable from '@/components/common/table/settings/operationLogTable'
|
2021-04-08 20:28:54 +08:00
|
|
|
|
|
|
|
|
|
|
export default {
|
2021-04-13 20:33:12 +08:00
|
|
|
|
name: 'oparetionLog',
|
2021-04-08 20:28:54 +08:00
|
|
|
|
components: {
|
2021-04-13 20:33:12 +08:00
|
|
|
|
nzDataList,
|
|
|
|
|
|
operationLogTable
|
2021-04-08 20:28:54 +08:00
|
|
|
|
},
|
2021-04-13 20:33:12 +08:00
|
|
|
|
mixins: [dataListMixin],
|
2021-04-08 20:28:54 +08:00
|
|
|
|
data () {
|
|
|
|
|
|
return {
|
2021-04-22 17:43:13 +08:00
|
|
|
|
url: 'sys/log',
|
2021-04-08 20:28:54 +08:00
|
|
|
|
tableId: 'operationLogTable', // 需要分页的table的id,用于记录每页数量
|
|
|
|
|
|
searchMsg: { // 给搜索框子组件传递的信息
|
|
|
|
|
|
searchLabelList: [
|
|
|
|
|
|
{
|
|
|
|
|
|
id: 11,
|
|
|
|
|
|
name: this.$t('config.operationlog.type'),
|
|
|
|
|
|
type: 'input',
|
|
|
|
|
|
label: 'type',
|
|
|
|
|
|
disabled: false
|
|
|
|
|
|
}, {
|
|
|
|
|
|
id: 12,
|
|
|
|
|
|
name: this.$t('config.operationlog.username'),
|
|
|
|
|
|
type: 'input',
|
|
|
|
|
|
label: 'username',
|
|
|
|
|
|
disabled: false
|
|
|
|
|
|
}, {
|
|
|
|
|
|
id: 13,
|
|
|
|
|
|
name: this.$t('config.operationlog.operation'),
|
|
|
|
|
|
type: 'selectString',
|
|
|
|
|
|
label: 'operation',
|
|
|
|
|
|
disabled: false
|
2021-04-22 18:03:56 +08:00
|
|
|
|
}, {
|
2021-04-22 17:43:13 +08:00
|
|
|
|
id: 14,
|
|
|
|
|
|
name: this.$t('config.operationlog.operaId'),
|
|
|
|
|
|
type: 'input',
|
|
|
|
|
|
label: 'operaId',
|
|
|
|
|
|
disabled: false
|
2021-04-22 18:03:56 +08:00
|
|
|
|
}, {
|
2021-04-22 17:43:13 +08:00
|
|
|
|
id: 16,
|
|
|
|
|
|
name: this.$t('config.operationlog.state'),
|
|
|
|
|
|
type: 'selectString',
|
|
|
|
|
|
label: 'state',
|
2021-09-27 18:06:41 +08:00
|
|
|
|
readonly: true,
|
2021-04-22 17:43:13 +08:00
|
|
|
|
disabled: false
|
|
|
|
|
|
}, {
|
|
|
|
|
|
id: 17,
|
|
|
|
|
|
name: this.$t('config.operationlog.params'),
|
|
|
|
|
|
type: 'input',
|
|
|
|
|
|
label: 'params',
|
|
|
|
|
|
disabled: false
|
2021-04-22 18:03:56 +08:00
|
|
|
|
}
|
2021-04-08 20:28:54 +08:00
|
|
|
|
]
|
2021-04-22 18:03:56 +08:00
|
|
|
|
}
|
2021-04-08 20:28:54 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|