|
@@ -10,10 +10,10 @@
|
|
:searchConfig="searchConfig"
|
|
:searchConfig="searchConfig"
|
|
highlight-current-row
|
|
highlight-current-row
|
|
:action-list="[
|
|
:action-list="[
|
|
- {
|
|
|
|
- text: '新增',
|
|
|
|
- action: () => clickModal(),
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // text: '新增',
|
|
|
|
+ // action: () => clickModal(),
|
|
|
|
+ // },
|
|
]"
|
|
]"
|
|
@get-list="getList"
|
|
@get-list="getList"
|
|
@clickReset="clickReset">
|
|
@clickReset="clickReset">
|
|
@@ -21,7 +21,7 @@
|
|
<el-table :data="sourceList.data" row-key="id" default-expand-all>
|
|
<el-table :data="sourceList.data" row-key="id" default-expand-all>
|
|
<el-table-column prop="name" label="分类名称" min-width="180" />
|
|
<el-table-column prop="name" label="分类名称" min-width="180" />
|
|
<el-table-column prop="sort" label="排序" align="center" width="100" />
|
|
<el-table-column prop="sort" label="排序" align="center" width="100" />
|
|
- <el-table-column label="操作" align="center" width="180">
|
|
|
|
|
|
+ <!-- <el-table-column label="操作" align="center" width="180">
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
<div>
|
|
<div>
|
|
<el-button type="primary" @click="addChildNode(row)" text>添加子节点</el-button>
|
|
<el-button type="primary" @click="addChildNode(row)" text>添加子节点</el-button>
|
|
@@ -29,7 +29,7 @@
|
|
<el-button type="primary" @click="clickDelete(row)" v-if="row.parentId" text>删除</el-button>
|
|
<el-button type="primary" @click="clickDelete(row)" v-if="row.parentId" text>删除</el-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
|
|
+ </el-table-column> -->
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
<el-dialog :title="modalType == 'add' ? '新增分类' : '编辑分类'" v-if="openDialog" v-model="openDialog" width="400">
|
|
<el-dialog :title="modalType == 'add' ? '新增分类' : '编辑分类'" v-if="openDialog" v-model="openDialog" width="400">
|
|
@@ -82,7 +82,7 @@ const config = computed(() => {
|
|
const getList = async (req) => {
|
|
const getList = async (req) => {
|
|
sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
|
|
sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
|
|
loading.value = true;
|
|
loading.value = true;
|
|
- proxy.post("/bomClassify/tree", sourceList.value.pagination).then((res) => {
|
|
|
|
|
|
+ proxy.post("/skuClassify/tree", sourceList.value.pagination).then((res) => {
|
|
sourceList.value.data = res;
|
|
sourceList.value.data = res;
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
loading.value = false;
|
|
loading.value = false;
|
|
@@ -162,7 +162,7 @@ const addChildNode = (row) => {
|
|
const submitForm = () => {
|
|
const submitForm = () => {
|
|
submit.value.handleSubmit(() => {
|
|
submit.value.handleSubmit(() => {
|
|
btnDisabled.value = true;
|
|
btnDisabled.value = true;
|
|
- proxy.post("/bomClassify/" + modalType.value, formData.data).then(
|
|
|
|
|
|
+ proxy.post("/skuClassify/" + modalType.value, formData.data).then(
|
|
() => {
|
|
() => {
|
|
ElMessage({
|
|
ElMessage({
|
|
message: modalType.value == "add" ? "添加成功" : "编辑成功",
|
|
message: modalType.value == "add" ? "添加成功" : "编辑成功",
|
|
@@ -198,7 +198,7 @@ const clickDelete = (row) => {
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
type: "warning",
|
|
type: "warning",
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- proxy.post("/bomClassify/delete", { id: row.id }).then(() => {
|
|
|
|
|
|
+ proxy.post("/skuClassify/delete", { id: row.id }).then(() => {
|
|
ElMessage({ message: "删除成功", type: "success" });
|
|
ElMessage({ message: "删除成功", type: "success" });
|
|
getList();
|
|
getList();
|
|
});
|
|
});
|