|
@@ -14,21 +14,27 @@
|
|
|
border
|
|
|
row-key="categoryId"
|
|
|
style="width: 100%;">
|
|
|
+
|
|
|
+ <el-table-column prop="categoryId"
|
|
|
+ header-align="left"
|
|
|
+ treeKey="categoryId"
|
|
|
+ width="150"
|
|
|
+ label="#">
|
|
|
+ </el-table-column>
|
|
|
|
|
|
<el-table-column prop="categoryName"
|
|
|
header-align="center"
|
|
|
- treeKey="categoryId"
|
|
|
width="150"
|
|
|
label="分类名称">
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="pic"
|
|
|
+ <!--el-table-column prop="pic"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
label="图片">
|
|
|
<template slot-scope="scope">
|
|
|
<img :src="resourcesUrl + scope.row.pic " />
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column-->
|
|
|
<el-table-column prop="status"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
@@ -44,7 +50,7 @@
|
|
|
<el-table-column prop="seq"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
- label="排序号">
|
|
|
+ label="优先级">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
header-align="center"
|
|
@@ -98,7 +104,8 @@ export default {
|
|
|
method: 'get',
|
|
|
params: this.$http.adornParams()
|
|
|
}).then(({ data }) => {
|
|
|
- this.dataList = treeDataTranslate(data, 'categoryId', 'parentId')
|
|
|
+ // this.dataList = treeDataTranslate(data, 'categoryId', 'parentId')
|
|
|
+ this.dataList = treeDataTranslate(data, 'parentId')
|
|
|
this.dataListLoading = false
|
|
|
})
|
|
|
},
|