|
@@ -45,6 +45,14 @@
|
|
|
<el-table v-loading="listLoading" :data="tableData.data" size="small" :highlight-current-row="true" class="mt20">
|
|
|
<el-table-column prop="id" label="ID" min-width="50" />
|
|
|
<el-table-column label="分类名称" prop="name" min-width="100" :show-overflow-tooltip="true"> </el-table-column>
|
|
|
+ <el-table-column label="分类图标" min-width="120">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div class="demo-image__preview line-heightOne">
|
|
|
+ <el-image :src="scope.row.icon" :preview-src-list="[scope.row.icon]" v-if="scope.row.icon" />
|
|
|
+ <img v-else :src="defaultImg" alt="" />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="sort" label="排序" min-width="100" />
|
|
|
<el-table-column label="添加时间" min-width="120">
|
|
|
<template slot-scope="scope">
|
|
@@ -117,6 +125,7 @@ export default {
|
|
|
listLoading: false,
|
|
|
keyNum: 0,
|
|
|
id: 0,
|
|
|
+ defaultImg: require('@/assets/imgs/moren.jpg'),
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -187,6 +196,7 @@ export default {
|
|
|
name: formValue.name,
|
|
|
isShow: formValue.isShow,
|
|
|
sort: formValue.sort,
|
|
|
+ icon: formValue.icon,
|
|
|
};
|
|
|
!this.id
|
|
|
? community
|