Commit ecfe8869 authored by caimeng's avatar caimeng

修改法诉材料下载的内容

parent 22b45f42
<template> <template>
<el-table-column v-bind="column"> <el-table-column align="center" v-bind="column">
<!-- 默认插槽 --> <!-- 默认插槽 -->
<template v-if="column.render" #default="scope"> <template v-if="column.render" #default="scope">
<ColumnRender :scope="scope" :render="column.render" /> <ColumnRender :scope="scope" :render="column.render" />
......
...@@ -12,13 +12,13 @@ ...@@ -12,13 +12,13 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@cell-click="tabClick" @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"> <el-table-column v-if="$scopedSlots[column.prop]" v-bind="column" :key="column.prop">
<template #default="scope"> <template #default="scope">
<slot :name="column.prop" v-bind="scope"></slot> <slot :name="column.prop" v-bind="scope"></slot>
</template> </template>
</el-table-column> </el-table-column>
<BaseColumn :key="column.prop" v-else :column="column" /> <BaseColumn :key="index" v-else :column="column" />
</template> </template>
</el-table> </el-table>
......
...@@ -72,14 +72,29 @@ export default { ...@@ -72,14 +72,29 @@ export default {
{ {
label: '状态', label: '状态',
prop: 'caseStatusStr', 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: '创建时间', label: '创建时间',
prop: 'gmtCreatedStr', prop: 'gmtCreatedStr',
width: '155px'
}, },
{ {
label: '更新时间', label: '更新时间',
prop: 'gmtModifiedStr', prop: 'gmtModifiedStr',
width: '155px'
}, },
{ {
label: '备注', label: '备注',
...@@ -88,6 +103,14 @@ export default { ...@@ -88,6 +103,14 @@ export default {
{ {
label: '操作人', label: '操作人',
prop: 'creator' 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