feat:品类显示父级名称

master
崔福波 2024-11-16 10:52:05 +08:00
parent efe9110fe9
commit e3a9a20ee6
3 changed files with 11 additions and 1 deletions

View File

@ -9,6 +9,14 @@ export function listCategory(query) {
})
}
export function listCategoryAll(query) {
return request({
url: '/product/category/list',
method: 'get',
params: query
})
}
// 查询品类信息详细
export function getCategory(id) {
return request({

View File

@ -68,7 +68,7 @@
<image-preview :src="scope.row.image" :width="50" :height="50"/>
</template>
</el-table-column>
<el-table-column label="父级品类" align="center" prop="parentId" />
<el-table-column label="父级品类" align="center" prop="parentName" />
<el-table-column label="是否启用" align="center" prop="start">
<template slot-scope="scope">
<!-- <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.start"/>-->

View File

@ -101,6 +101,7 @@
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['product:rule:edit']"
:disabled="scope.row.flag"
>修改</el-button>
<el-button
size="mini"
@ -108,6 +109,7 @@
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['product:rule:remove']"
:disabled="scope.row.flag"
>删除</el-button>
</template>
</el-table-column>