feat:品类显示父级名称
parent
efe9110fe9
commit
e3a9a20ee6
|
@ -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) {
|
export function getCategory(id) {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
<image-preview :src="scope.row.image" :width="50" :height="50"/>
|
<image-preview :src="scope.row.image" :width="50" :height="50"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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">
|
<el-table-column label="是否启用" align="center" prop="start">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.start"/>-->
|
<!-- <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.start"/>-->
|
||||||
|
|
|
@ -101,6 +101,7 @@
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['product:rule:edit']"
|
v-hasPermi="['product:rule:edit']"
|
||||||
|
:disabled="scope.row.flag"
|
||||||
>修改</el-button>
|
>修改</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
|
@ -108,6 +109,7 @@
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['product:rule:remove']"
|
v-hasPermi="['product:rule:remove']"
|
||||||
|
:disabled="scope.row.flag"
|
||||||
>删除</el-button>
|
>删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
Loading…
Reference in New Issue