品牌加热门 修改 仪表盘接口

This commit is contained in:
浅念
2025-09-17 15:10:28 +08:00
parent 922cfec81d
commit 65f7f4a123
5 changed files with 107 additions and 73 deletions
+17
View File
@@ -46,6 +46,13 @@
</el-table-column>
<!-- <el-table-column prop="description" label="描述" show-overflow-tooltip /> -->
<!-- <el-table-column prop="sort" label="排序" width="80" /> -->
<el-table-column label="是否热门" prop="hot">
<template #default="scope">
<ElTag :type="scope.row.hot == 1 ? 'danger' : 'info'">
{{ scope.row.hot == 1 ? '是' : '否' }}
</ElTag>
</template>
</el-table-column>
<el-table-column label="状态" prop="status">
<template #default="scope">
<ElTag :type="scope.row.status ? 'success' : 'info'">
@@ -199,6 +206,12 @@
<ElIcon v-else class="logo-uploader-icon"><Plus /></ElIcon>
</ElUpload>
</ElFormItem>
<ElFormItem label="是否热门" prop="hot">
<el-radio-group v-model="brandForm.hot">
<el-radio :label="1">是</el-radio>
<el-radio :label="0">否</el-radio>
</el-radio-group>
</ElFormItem>
<ElFormItem label="品牌描述" prop="description">
<ElInput v-model="brandForm.description" type="textarea" :rows="3" />
</ElFormItem>
@@ -292,6 +305,7 @@
brand_code: '',
brand_name: '',
logo: '',
hot: 0,
description: '',
sort: 0,
status: 1
@@ -344,6 +358,7 @@
id: row.id,
brand_code: row.brand_code,
brand_name: row.brand_name,
hot: row.hot,
logo: row.logo,
description: row.description,
sort: row.sort ?? 0,
@@ -355,6 +370,7 @@
brand_code: '',
brand_name: '',
logo: '',
hot: 0,
description: '',
sort: 0,
status: 1
@@ -386,6 +402,7 @@
brand_code: brandForm.brand_code,
brand_name: brandForm.brand_name,
logo: brandForm.logo,
hot: brandForm.hot,
description: brandForm.description,
sort: brandForm.sort,
status: brandForm.status