优化资产分类管理功能,移除类型字段并新增自定义属性配置功能

This commit is contained in:
WUSIJIAN
2025-12-15 15:11:02 +08:00
parent 7bdc961d4b
commit 948bc2b791
2 changed files with 191 additions and 23 deletions

View File

@@ -6,9 +6,6 @@
<el-form-item label="名称">
<el-input size="default" v-model="tableData.param.name" placeholder="请输入分类名称" clearable style="width: 200px" />
</el-form-item>
<el-form-item label="分类">
<el-input size="default" v-model="tableData.param.type" placeholder="请输入分类" clearable style="width: 200px" />
</el-form-item>
<el-form-item>
<el-button size="default" type="primary" @click="getCategoryList">
<el-icon><ele-Search /></el-icon>
@@ -30,13 +27,7 @@
v-loading="tableData.loading"
>
<!-- <el-table-column type="index" label="序号" width="80" /> -->
<el-table-column prop="name" label="分类名称" show-overflow-tooltip min-width="180" />
<el-table-column prop="type" label="类型" width="100">
<template #default="scope">
<el-tag v-if="scope.row.type === 'product'" type="primary">商品</el-tag>
<el-tag v-else-if="scope.row.type === 'service'" type="success">服务</el-tag>
</template>
</el-table-column>
<el-table-column prop="name" label="分类名称" show-overflow-tooltip min-width="100" />
<el-table-column prop="sort" label="排序" width="80" />
<el-table-column prop="createdAt" label="创建时间" width="180" show-overflow-tooltip />
<el-table-column prop="updatedAt" label="修改时间" width="180" show-overflow-tooltip />