Skip to content

Commit f8c4700

Browse files
committed
🔨 CRM:优化产品分类代码的实现
1 parent b3d66cd commit f8c4700

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/views/crm/product/productCategory/ProductCategoryForm.vue renamed to src/views/crm/product/category/ProductCategoryForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
label-width="100px"
88
v-loading="formLoading"
99
>
10-
<el-form-item label="父级id" prop="parentId">
10+
<el-form-item label="父级分类" prop="parentId">
1111
<el-select v-model="formData.parentId" placeholder="请选择上级分类">
1212
<el-option :key="0" label="顶级分类" :value="0" />
1313
<el-option

src/views/crm/product/productCategory/index.vue renamed to src/views/crm/product/category/index.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<template>
2-
<!-- TODO @zange:挪到 product 下,建个 category 包,挪进去哈; -->
32
<ContentWrap>
43
<!-- 搜索工作栏 -->
54
<el-form
@@ -36,7 +35,8 @@
3635
<!-- 列表 -->
3736
<ContentWrap>
3837
<el-table v-loading="loading" :data="list" row-key="id" default-expand-all>
39-
<el-table-column label="名称" align="center" prop="name" />
38+
<el-table-column label="分类编号" align="center" prop="id" />
39+
<el-table-column label="分类名称" align="center" prop="name" />
4040
<el-table-column
4141
label="创建时间"
4242
align="center"
@@ -73,7 +73,6 @@
7373

7474
<script setup lang="ts">
7575
import { dateFormatter } from '@/utils/formatTime'
76-
import download from '@/utils/download'
7776
import * as ProductCategoryApi from '@/api/crm/product/productCategory'
7877
import ProductCategoryForm from './ProductCategoryForm.vue'
7978
import { handleTree } from '@/utils/tree'

0 commit comments

Comments
 (0)