浏览代码

SKU分类页面

lxf 1 年之前
父节点
当前提交
4e2f748f94
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. 9 9
      src/views/group/product/classification/index.vue

+ 9 - 9
src/views/group/product/classification/index.vue

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