File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 26
26
27
27
<!-- 列表 -->
28
28
<el-table v-loading =" loading" :data =" list" >
29
- <el-table-column label =" 文件名" align =" center" prop =" name" />
30
- <el-table-column label =" 文件路径" align =" center" prop =" path" />
31
- <el-table-column label =" 文件 URL" align =" center" prop =" url" />
29
+ <el-table-column label =" 文件名" :show-overflow-tooltip = " true " align =" center" min-width = " 250 " prop =" name" />
30
+ <el-table-column :show-overflow-tooltip = " true " label =" 文件路径" align =" center" min-width = " 300 " prop =" path" />
31
+ <el-table-column :show-overflow-tooltip = " true " label =" 文件 URL" align =" center" min-width = " 400 " prop =" url" />
32
32
<el-table-column label =" 文件大小" align =" center" prop =" size" width =" 120" :formatter =" sizeFormat" />
33
- <el-table-column label =" 文件类型" align =" center" prop =" type" width =" 80" />
33
+ <el-table-column label =" 文件类型" align =" center" prop =" mimeType" width =" 210" />
34
+ <el-table-column label =" 文件扩展名" align =" center" prop =" extName" width =" 80" />
34
35
<!-- <el-table-column label="文件内容" align="center" prop="content">-->
35
36
<!-- <template slot-scope="scope">-->
36
- <!-- <img v-if="scope.row.type === 'jpg' || scope.row.type === 'png' || scope.row.type === 'gif'"-->
37
+ <!-- <img v-if="scope.row.extName === 'jpg' || scope.row.extName === 'png' || scope.row.extName === 'gif'"-->
37
38
<!-- width="200px" :src="getFileUrl + scope.row.id">-->
38
39
<!-- <i v-else>非图片,无法预览</i>-->
39
40
<!-- </template>-->
@@ -101,7 +102,7 @@ export default {
101
102
pageNo: 1 ,
102
103
pageSize: 10 ,
103
104
path: null ,
104
- type : null ,
105
+ extName : null ,
105
106
},
106
107
// 用户导入参数
107
108
upload: {
You can’t perform that action at this time.
0 commit comments