diff --git a/src/views/crm/product/productCategory/ProductCategoryForm.vue b/src/views/crm/product/category/ProductCategoryForm.vue similarity index 98% rename from src/views/crm/product/productCategory/ProductCategoryForm.vue rename to src/views/crm/product/category/ProductCategoryForm.vue index 7e813769..2c20d303 100644 --- a/src/views/crm/product/productCategory/ProductCategoryForm.vue +++ b/src/views/crm/product/category/ProductCategoryForm.vue @@ -7,7 +7,7 @@ label-width="100px" v-loading="formLoading" > - <el-form-item label="父级id" prop="parentId"> + <el-form-item label="父级分类" prop="parentId"> <el-select v-model="formData.parentId" placeholder="请选择上级分类"> <el-option :key="0" label="顶级分类" :value="0" /> <el-option diff --git a/src/views/crm/product/productCategory/index.vue b/src/views/crm/product/category/index.vue similarity index 94% rename from src/views/crm/product/productCategory/index.vue rename to src/views/crm/product/category/index.vue index 7a011123..4005b479 100644 --- a/src/views/crm/product/productCategory/index.vue +++ b/src/views/crm/product/category/index.vue @@ -1,5 +1,4 @@ <template> - <!-- TODO @zange:挪到 product 下,建个 category 包,挪进去哈; --> <ContentWrap> <!-- 搜索工作栏 --> <el-form @@ -36,7 +35,8 @@ <!-- 列表 --> <ContentWrap> <el-table v-loading="loading" :data="list" row-key="id" default-expand-all> - <el-table-column label="名称" align="center" prop="name" /> + <el-table-column label="分类编号" align="center" prop="id" /> + <el-table-column label="分类名称" align="center" prop="name" /> <el-table-column label="创建时间" align="center" @@ -73,7 +73,6 @@ <script setup lang="ts"> import { dateFormatter } from '@/utils/formatTime' -import download from '@/utils/download' import * as ProductCategoryApi from '@/api/crm/product/productCategory' import ProductCategoryForm from './ProductCategoryForm.vue' import { handleTree } from '@/utils/tree'