103 lines
1.9 KiB
103 lines
1.9 KiB
<template> |
|
<div class="goods_page"> |
|
<el-table |
|
:data="tableData" |
|
border |
|
style="width: 100%" |
|
> |
|
<el-table-column |
|
prop="processStage" |
|
:formatter="getType" |
|
label="动态" |
|
/> |
|
<el-table-column |
|
prop="createTime" |
|
label="时间" |
|
/> |
|
<el-table-column |
|
prop="auditBy" |
|
label="操作人" |
|
/> |
|
<el-table-column |
|
prop="auditRemark" |
|
label="其它信息" |
|
/> |
|
</el-table> |
|
<!-- <pagination |
|
v-show="tableData.total > 0" |
|
:limit.sync="formParams.size" |
|
:page.sync="formParams.current" |
|
:total="Number(tableData.total)" |
|
@pagination="fetch" |
|
/> --> |
|
</div> |
|
</template> |
|
|
|
<script> |
|
// import Pagination from '@/components/Pagination' |
|
import Marketing from '@/api/Marketing' |
|
|
|
export default { |
|
components: { |
|
// Pagination |
|
|
|
}, |
|
props: { |
|
info: { |
|
type: Object, |
|
default: () => [] |
|
} |
|
}, |
|
data() { |
|
return { |
|
// formParams: { |
|
// size: 10, |
|
// current: 1 |
|
// }, |
|
tableData: [] |
|
} |
|
}, |
|
created() { |
|
this.auditLog() |
|
}, |
|
methods: { |
|
async auditLog() { |
|
const res = await Marketing.auditLog({ applyId: this.info.id }) |
|
const resData = res.data |
|
if (resData.code === 0) { |
|
this.tableData = resData.data |
|
} |
|
}, |
|
getType(row, item, cellValue) { |
|
const list = { |
|
1: '报名', 2: '审核通过', 3: '审核不通过' |
|
} |
|
return list[cellValue] |
|
} |
|
} |
|
} |
|
</script> |
|
|
|
<style lang='less' scoped> |
|
.goods_page { |
|
.product-img { |
|
border-radius: 4px; |
|
} |
|
} |
|
|
|
/deep/ .el-table { |
|
th { |
|
background: #EEF3FF; |
|
color:#333333; |
|
font-size:16px; |
|
font-weight: 400; |
|
border-color: #E0E5EB; |
|
text-align: center; |
|
} |
|
td { |
|
font-size: 14px; |
|
text-align: center; |
|
color: #666666; |
|
} |
|
} |
|
</style>
|
|
|