|
|
@@ -10,16 +10,22 @@
|
|
|
<el-table-column label="报告类型" prop="xx">
|
|
|
<template #default="scope">{{ typeDict[scope.row.type]||'' }}</template>
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column label="报告状态" prop="xx">
|
|
|
- <template #default="scope"></template>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column label="报告状态" prop="state">
|
|
|
+ <template #default="scope">{{ stateDict[scope.row.state] || '未知' }}</template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="发送人" prop="xx"></el-table-column> -->
|
|
|
<el-table-column label="团队名称" prop="teamName"></el-table-column>
|
|
|
<el-table-column label="创建时间" prop="createDate"></el-table-column>
|
|
|
<el-table-column label="操作" width="200">
|
|
|
<template #default="scope">
|
|
|
- <el-button link type="text" size="mini" @click="handleReview(scope.row)">查看报告</el-button>
|
|
|
- <el-button link type="text" size="mini" @click="handleDownload(scope.row)">下载报告</el-button>
|
|
|
+ <template v-if="scope.row.state === '0' || scope.row.state === 0">
|
|
|
+ <span class="report-pending">生成中</span>
|
|
|
+ </template>
|
|
|
+ <template v-else-if="scope.row.state === '1' || scope.row.state === 1 || scope.row.state === '2' || scope.row.state === 2">
|
|
|
+ <el-button link type="text" size="mini" @click="handleReview(scope.row)">查看报告</el-button>
|
|
|
+ <el-button link type="text" size="mini" @click="handleDownload(scope.row)">下载报告</el-button>
|
|
|
+ </template>
|
|
|
+ <span v-else class="report-failed">生成失败</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -57,14 +63,20 @@
|
|
|
limit: 10,
|
|
|
coachId:''
|
|
|
})
|
|
|
- const typeDict = ref({
|
|
|
+ const typeDict = ref({
|
|
|
1:'个人版',
|
|
|
2:'团队版',
|
|
|
0:'团队PRO版',
|
|
|
3:'高级',
|
|
|
4:'中级',
|
|
|
5:'初级',
|
|
|
- })
|
|
|
+ })
|
|
|
+ const stateDict = ref({
|
|
|
+ '-1': '生成失败',
|
|
|
+ 0: '生成中',
|
|
|
+ 1: '已生成',
|
|
|
+ 2: '已发送'
|
|
|
+ })
|
|
|
const dataList = ref([])
|
|
|
const total = ref(0)
|
|
|
const loading = ref(false)
|
|
|
@@ -141,4 +153,4 @@
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
-</style>
|
|
|
+</style>
|