5 changed files with 106 additions and 4 deletions
@ -1,3 +1,3 @@ |
|||
window.config = { |
|||
"base_url":"http://192.168.0.9:7101" |
|||
} |
|||
"base_url":"http://192.168.0.3:7100" |
|||
} |
|||
|
@ -0,0 +1,10 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
|
|||
export function getList(data) { |
|||
return request({ |
|||
url: '/api/list', |
|||
method: 'get', |
|||
params:data |
|||
}) |
|||
} |
@ -0,0 +1,77 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<el-table v-loading="listLoading" :data="list" element-loading-text="Loading" style="width: 100%" border fit highlight-current-row> |
|||
<!-- <el-table-column align="center" label="ID" width="95"> |
|||
<template slot-scope="scope"> |
|||
{{ scope.$index }} |
|||
</template> |
|||
</el-table-column> --> |
|||
<el-table-column label="单据号" width="150" fixed="left"> |
|||
<template slot-scope="scope"> |
|||
{{ scope.row.apiPk }} |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="帐套" width="100"> |
|||
<template slot-scope="scope"> |
|||
{{ scope.row.tenant }} |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="请求参数" > |
|||
<template slot-scope="scope"> |
|||
{{ scope.row.reqParams }} |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返回参数" align="center"> |
|||
<template slot-scope="scope"> |
|||
{{ scope.row.respContext }} |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="状态" width="150" align="center"> |
|||
<template slot-scope="scope"> |
|||
{{ scope.row.status }} |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column align="center" prop="created_at" label="录入时间" width="200"> |
|||
<template slot-scope="scope"> |
|||
<i class="el-icon-time" /> |
|||
<span>{{ scope.row.createTime }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { getList } from '@/api/logpage' |
|||
|
|||
export default { |
|||
filters: { |
|||
statusFilter(status) { |
|||
const statusMap = { |
|||
published: 'success', |
|||
draft: 'gray', |
|||
deleted: 'danger' |
|||
} |
|||
return statusMap[status] |
|||
} |
|||
}, |
|||
data() { |
|||
return { |
|||
list: null, |
|||
listLoading: true |
|||
} |
|||
}, |
|||
created() { |
|||
this.fetchData() |
|||
}, |
|||
methods: { |
|||
fetchData() { |
|||
this.listLoading = true |
|||
getList({pageNum:1,pageSize:10}).then(response => { |
|||
this.list = response.data.records |
|||
this.listLoading = false |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
</script> |
Loading…
Reference in new issue