Commit ecfe8869 authored by caimeng's avatar caimeng

修改法诉材料下载的内容

parent 22b45f42
<template>
<el-table-column v-bind="column">
<el-table-column align="center" v-bind="column">
<!-- 默认插槽 -->
<template v-if="column.render" #default="scope">
<ColumnRender :scope="scope" :render="column.render" />
......
......@@ -12,13 +12,13 @@
@selection-change="handleSelectionChange"
@cell-click="tabClick"
>
<template v-for="column in finalColumns">
<template v-for="(column,index) in finalColumns">
<el-table-column v-if="$scopedSlots[column.prop]" v-bind="column" :key="column.prop">
<template #default="scope">
<slot :name="column.prop" v-bind="scope"></slot>
</template>
</el-table-column>
<BaseColumn :key="column.prop" v-else :column="column" />
<BaseColumn :key="index" v-else :column="column" />
</template>
</el-table>
......
......@@ -72,14 +72,29 @@ export default {
{
label: '状态',
prop: 'caseStatusStr',
render: (_, text, row) => {
const { caseStatus } = row
switch (caseStatus) {
case 'CREATED':
return <el-tag>{text}</el-tag>
case 'NEEDZIP':
return <el-tag type="warning">{text}</el-tag>
case 'FINISHED':
return <el-tag type="success">{text}</el-tag>
default:
return ''
}
}
},
{
label: '创建时间',
prop: 'gmtCreatedStr',
width: '155px'
},
{
label: '更新时间',
prop: 'gmtModifiedStr',
width: '155px'
},
{
label: '备注',
......@@ -88,6 +103,14 @@ export default {
{
label: '操作人',
prop: 'creator'
},
{
label: '操作',
prop: 'zipPath',
render: (_, text, row) => {
if (row.caseStatus === 'FINISHED') return <el-link type="primary" target="_blank" href={text}>下载材料包</el-link>
else return ''
}
}
],
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment