zhaoyun 1 month ago
parent
commit
51a1b67411
1 changed files with 10 additions and 0 deletions
  1. 10 0
      mer_plat_admin/src/views/community/classification/index.vue

+ 10 - 0
mer_plat_admin/src/views/community/classification/index.vue

@@ -45,6 +45,14 @@
       <el-table v-loading="listLoading" :data="tableData.data" size="small" :highlight-current-row="true" class="mt20">
       <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 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="分类名称" 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 prop="sort" label="排序" min-width="100" />
         <el-table-column label="添加时间" min-width="120">
         <el-table-column label="添加时间" min-width="120">
           <template slot-scope="scope">
           <template slot-scope="scope">
@@ -117,6 +125,7 @@ export default {
       listLoading: false,
       listLoading: false,
       keyNum: 0,
       keyNum: 0,
       id: 0,
       id: 0,
+	 defaultImg: require('@/assets/imgs/moren.jpg'),
     };
     };
   },
   },
   mounted() {
   mounted() {
@@ -187,6 +196,7 @@ export default {
         name: formValue.name,
         name: formValue.name,
         isShow: formValue.isShow,
         isShow: formValue.isShow,
         sort: formValue.sort,
         sort: formValue.sort,
+		icon: formValue.icon,
       };
       };
       !this.id
       !this.id
         ? community
         ? community