fix: 🧩 树状结构支持多选

This commit is contained in:
2025-06-06 14:05:40 +08:00
parent f2ee833412
commit 6f8a3e72a5
25 changed files with 96 additions and 85 deletions

View File

@@ -25,7 +25,7 @@
</el-table-column>
<el-table-column prop="is_show" label="是否显示">
<template #default="{ row }">
{{ row.is_show === 1 ? "✔️" : "❌" }}
{{ row.is_show == 1 ? "✔️" : "❌" }}
</template>
</el-table-column>
<el-table-column label="操作" :width="350">

View File

@@ -1,5 +1,6 @@
interface FormItem {
prop: string;
prop1?: string;
label?: string;
placeholder?: string;
type: string;
@@ -25,7 +26,8 @@ export const FORM_DATA: FormItem[] = [
},
{
prop: "category_id",
prop: "treeIds",
prop1: "category_id",
placeholder: "请选择",
type: "treeSelect",
isArray: true,

View File

@@ -15,8 +15,8 @@
<el-image :src="scope.row.image ? h + scope.row.image : ''" style="width: 60px; height: 60px" />
</template>
<template #status="scope">
<el-tag :type="scope.row.status === 1 ? 'success' : 'danger'" effect="dark">{{
scope.row.status === 1 ? "启用" : "禁用"
<el-tag :type="scope.row.status == 1 ? 'success' : 'danger'" effect="dark">{{
scope.row.status == 1 ? "启用" : "禁用"
}}</el-tag>
</template>
<template #sort="scope">