1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
| <template>
| <div class="app-container">
| <el-table v-loading="listLoading" :data="list" element-loading-text="Loading" border fit height="100%"
| class="table-container" highlight-current-row>
| <el-table-column fixed label="序号" width="80" >
| <template slot-scope="scope">
| {{ scope.row.id }}
| </template>
| </el-table-column>
| <el-table-column label="操作人名称" >
| <template slot-scope="scope">
| {{ scope.row.name }}
| </template>
| </el-table-column>
| <el-table-column label="操作内容" >
| <template slot-scope="scope">
| {{ scope.row.content }}
| </template>
| </el-table-column>
| <el-table-column label="操作时间" >
| <template slot-scope="scope">
| {{ scope.row.time }}
| </template>
| </el-table-column>
| </el-table>
|
| <pagination v-show="total > 0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size"
| @pagination="fetchData" />
| </div>
| </template>
|
| <script>
| import Pagination from '@/components/Pagination'
| import { getSystemOperationLogPage, } from '@/api/system'
| import { deepClone } from '@/utils'
|
|
| export default {
| components: {
| Pagination
| },
| data() {
| return {
| total: 0,
| list: [],
| menus: [],
| listLoading: true,
| listQuery: {
| current: 1,
| size: 20,
| keyword: undefined,
| },
| uploadUrl: '',
| dialogVisible: false,
| dialogType: 'create',
| loading: false
| }
| },
| created() {
| this.fetchData()
| },
| methods: {
| refresh() {
| this.listQuery = {
| current: 1,
| size: 20,
| keyword: undefined
| }
| this.fetchData()
| },
| // 分页数据
| fetchData() {
| this.listLoading = true
| getSystemOperationLogPage(this.listQuery).then(response => {
| this.list = response.data.records
| this.total = response.data.total
| this.listLoading = false
| })
| },
| }
| }
| </script>
|
| <style lang="scss" scoped>
| .el-upload {
| border: 1px dashed #d9d9d9 !important;
| border-radius: 6px;
| cursor: pointer;
| position: relative;
| overflow: hidden;
|
| .el-icon-plus.avatar-uploader-icon {
| border: 1px dashed #d9d9d9 !important;
| border-radius: 6px;
| font-size: 28px;
| color: #8c939d;
| width: 128px;
| height: 128px;
| line-height: 128px;
| text-align: center;
| }
| }
|
| .avatar-uploader {
| height: 128px;
|
| img {
| width: 128px;
| height: 128px;
| }
| }
| </style>
|
|