pull/480/head
liting 2024-06-12 22:50:18 +08:00
parent 382e31d530
commit 076b39f7eb
1 changed files with 25 additions and 14 deletions

View File

@ -146,24 +146,25 @@
<Dialog title="审核记录" v-model="dialogVisible2">
<ContentWrap>
<el-timeline>
<el-timeline-item v-for="(log, index) in logList" :key="index" :timestamp="formatDate(log.createTime)"
placement="top">
<div class="el-timeline-right-content">
<el-tag class="mr-10px" type="success">{{ log.userName }}</el-tag>
{{ log.action }}
</div>
<template #dot>
</template>
<el-timeline-item :timestamp="formatDate(log.createTime)" placement="top" v-for="(log, index) in logList"
:key="index">
<el-card>
<div>{{ log.creatorName }}</div>
<p>{{ log.comment }}</p>
<el-tag class="mr-10px" type="danger" v-if="log.status == '0'"></el-tag>
<el-tag class="mr-10px" type="success" v-if="log.status == '1'"></el-tag>
</el-card>
</el-timeline-item>
</el-timeline>
<div v-if="logList.length == 0"> </div>
</ContentWrap>
</Dialog>
<!-- 表单弹窗添加/修改 -->
<MainForm ref="formRef" @success="getList" />0
<MainForm ref="formRef" @success="getList" />
</template>
<script setup lang="ts">
@ -199,7 +200,17 @@ const queryParams = reactive({
technicalField: undefined,
year: undefined,
})
/** 获得 userType 颜色 */
const getUserTypeColor = (type: any) => {
switch (type) {
case '1':
return '#67C23A'
case '0':
return '#E6A23C'
}
return '#409EFF'
}
const queryParams1 = reactive({
pageNo: 1,
pageSize: 10,
@ -327,8 +338,7 @@ const handleRecord = async (id: number) => {
dialogVisible2.value = true
try {
const data = await MainApi.getAuditList({ id: id })
console.log(data)
logList.value = data.list
logList.value = data
} finally {
loading.value = false
@ -353,4 +363,5 @@ const handleExport = async () => {
onMounted(() => {
getList()
})
</script>
</script>