<template>
	<div>
		<div class="content">
			<dataTable :table-data="tableData" :columns="columns" :page-obj="pageObj" :breads="breads" :checklist="checklist"
			 url="log/logList">
				<el-table-column slot="name" label="姓名" align="center" width="100">
					<template slot-scope="scope">
						<div>{{scope.row.name?scope.row.name:"无"}}</div>
					</template>
				</el-table-column>

				<el-table-column slot="args" label="请求参数" align="center" width="100">
					<template slot-scope="scope">
						<div>{{scope.row.args?scope.row.args:"无"}}</div>
					</template>
				</el-table-column>
				<el-table-column slot="operate" label="操作" align="center" fixed="right" width="100">
					<template slot-scope="scope">
						<el-button type="text" size="small" @click="examine(scope.row)">审核</el-button>
					</template>
				</el-table-column>
			</dataTable>
		</div>
	</div>
</template>

<script>
	import dataTable from '@components/dataTable.vue'
	export default {
		name: 'bidingList',
		components: {
			dataTable
		},
		data() {
			return {
				checklist: [{
					title: '姓名',
					type: 'input',
					model: 'name'
				}, {
					title: '用户操作',
					type: 'input',
					model: 'operation'
				}],
				breads: ['系统管理', '日志列表'],
				tableData: [{}],
				columns: [{
						slot: "name"
					},
					{
						label: '用户操作',
						prop: 'operation'
					},
					{
						label: '请求方式',
						prop: 'method'
					},
					{
						slot: "args"
					},
					{
						label: '请求时长',
						prop: 'elapsed'
					},
					{
						label: '状态',
						prop: 'status'
					},
					{
						label: '操作IP',
						prop: 'ip'
					},
					{
						label: '创建时间',
						prop: 'createTime'
					}
				],
				pageObj: {
					size: 10,
					currentPage: 1,
					func: (currentPage) => {
						this.pageTurning(currentPage)
					}
				}
			}
		},
		methods: {
			examine() {
				this.$router.push('/admin/bid/bidingDetail')
			}
		}
	}
</script>

<style scoped>

</style>
