Commit c676a7fd by liangjianmin

feat: 在文件管理页面中为文件名称添加超链接,并优化有效期显示逻辑

parent 7388e899
Showing with 6 additions and 2 deletions
...@@ -6,11 +6,15 @@ ...@@ -6,11 +6,15 @@
<el-table :data="list" border max-height="600" @selection-change="handleSelectionChange"> <el-table :data="list" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column type="index" label="序号" width="50" align="center" fixed></el-table-column> <el-table-column type="index" label="序号" width="50" align="center" fixed></el-table-column>
<el-table-column prop="type_name" label="文件类型" min-width="170" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="type_name" label="文件类型" min-width="170" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="file_name" label="文件名称" min-width="170" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="file_name" label="文件名称" min-width="170" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope">
<a :href="scope.row.file_url" target="_blank" style="color: #409EFF; text-decoration: none;">{{ scope.row.file_name }}</a>
</template>
</el-table-column>
<el-table-column prop="description" label="文件说明" min-width="200" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="description" label="文件说明" min-width="200" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="validity_start" label="有效期" width="200" :show-overflow-tooltip="true" align="center"> <el-table-column prop="validity_start" label="有效期" width="200" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.validity_start }} ~ {{ scope.row.validity_end }} {{ scope.row.validity_start > 0 && scope.row.validity_end > 0 ? scope.row.validity_start + ' ~ ' + scope.row.validity_end : '' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="create_name" label="上传人" width="200" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="create_name" label="上传人" width="200" :show-overflow-tooltip="true" align="center"></el-table-column>
......
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 sign in to comment