Skip to content

Commit ae42296

Browse files
fix:修复上次提交导致的前端页面取值问题
1 parent 4640968 commit ae42296

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/views/infra/file/index.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@
2626

2727
<!-- 列表 -->
2828
<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" />
3232
<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" />
3435
<!-- <el-table-column label="文件内容" align="center" prop="content">-->
3536
<!-- <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'"-->
3738
<!-- width="200px" :src="getFileUrl + scope.row.id">-->
3839
<!-- <i v-else>非图片,无法预览</i>-->
3940
<!-- </template>-->
@@ -101,7 +102,7 @@ export default {
101102
pageNo: 1,
102103
pageSize: 10,
103104
path: null,
104-
type: null,
105+
extName: null,
105106
},
106107
// 用户导入参数
107108
upload: {

0 commit comments

Comments
 (0)