自营商城-商品分类

master
panqihua 2 years ago
parent 8019db4807
commit 3fbe4f00b3
  1. 43
      src/views/platform/self-operated-mall/category.vue

@ -0,0 +1,43 @@
<template>
<div class="app-container">
<el-button type="primary" style="margin-bottom: 10px;">新建分类</el-button>
<el-table :data="dataList" row-key="id">
<el-table-column label="分类名称" prop="name" align="center"></el-table-column>
<el-table-column label="图片" align="center">
<img src="http://dummyimage.com/50x50" />
</el-table-column>
<el-table-column label="平台抽成" align="center">
5%
</el-table-column>
<el-table-column label="特价商品最高折扣" align="center">
5
</el-table-column>
<el-table-column label="操作" align="center">
<template slot-scope="scope">
<el-button type="text" v-if="scope.row.children">新建子分类</el-button>
<el-button type="text">编辑</el-button>
<el-button type="text">删除</el-button>
</template>
</el-table-column>
</el-table>
</div>
</template>
<script>
export default {
name: 'Category',
data() {
return {
dataList: [{
id: 1,
name: '一级分类A',
children: [
{
id: 2,
name: '二级分类A',
}
]
}]
}
}
}
</script>
Loading…
Cancel
Save