<template>
	<el-card shadow="never" header="操作记录">
		<piTable ref="table" :apiObj="apiObj" height="auto" paginationLayout="total, prev, pager, next" hideDo :pageSize="10">
			<pi-table-column label="序号" type="index" width="100px"></pi-table-column>
			<pi-table-column label="名称" prop="title" width="200px"></pi-table-column>
			<pi-table-column label="状态" prop="code" width="100px">
				<template #default="scope">
					<el-tag v-if="scope.row.code===200" type="success">成功</el-tag>
					<el-tag v-else type="warning">失败</el-tag>
				</template>
			</pi-table-column>
			<pi-table-column label="IP" prop="ip" width="200px"></pi-table-column>
			<pi-table-column label="浏览器" prop="ua"></pi-table-column>
			<pi-table-column label="时间" prop="create_time" width="200px"></pi-table-column>
		</piTable>
	</el-card>
</template>

<script>
export default {
	data() {
		return {
			apiObj: this.$API.auth.log
		}
	}
}
</script>

<style>
</style>
