fix(04): service tree view
This commit is contained in:
parent
56736155e5
commit
0ed2d1326a
1 changed files with 5 additions and 1 deletions
|
|
@ -47,6 +47,7 @@ const nodes = ref([
|
||||||
v.product.map((x) => ({
|
v.product.map((x) => ({
|
||||||
title: x.name,
|
title: x.name,
|
||||||
subtitle: x.code || ' ',
|
subtitle: x.code || ' ',
|
||||||
|
opened: true,
|
||||||
icon: 'mdi-shopping-outline',
|
icon: 'mdi-shopping-outline',
|
||||||
bg: 'hsla(var(--teal-10-hsl)/0.1)',
|
bg: 'hsla(var(--teal-10-hsl)/0.1)',
|
||||||
fg: 'var(--teal-10)',
|
fg: 'var(--teal-10)',
|
||||||
|
|
@ -57,6 +58,7 @@ const nodes = ref([
|
||||||
.flatMap((v) => ({
|
.flatMap((v) => ({
|
||||||
title: v.name,
|
title: v.name,
|
||||||
subtitle: ' ',
|
subtitle: ' ',
|
||||||
|
opened: true,
|
||||||
children: v.product.map((x) => ({
|
children: v.product.map((x) => ({
|
||||||
title: x.name,
|
title: x.name,
|
||||||
subtitle: x.code || ' ',
|
subtitle: x.code || ' ',
|
||||||
|
|
@ -106,6 +108,7 @@ watch(
|
||||||
v.product.map((x) => ({
|
v.product.map((x) => ({
|
||||||
title: x.name,
|
title: x.name,
|
||||||
subtitle: x.code || ' ',
|
subtitle: x.code || ' ',
|
||||||
|
opened: true,
|
||||||
icon: 'mdi-shopping-outline',
|
icon: 'mdi-shopping-outline',
|
||||||
bg: 'hsla(var(--teal-10-hsl)/0.1)',
|
bg: 'hsla(var(--teal-10-hsl)/0.1)',
|
||||||
fg: 'var(--teal-10)',
|
fg: 'var(--teal-10)',
|
||||||
|
|
@ -116,6 +119,7 @@ watch(
|
||||||
.flatMap((v) => ({
|
.flatMap((v) => ({
|
||||||
title: v.name,
|
title: v.name,
|
||||||
subtitle: ' ',
|
subtitle: ' ',
|
||||||
|
opened: true,
|
||||||
children: v.product.map((x) => ({
|
children: v.product.map((x) => ({
|
||||||
title: x.name,
|
title: x.name,
|
||||||
subtitle: x.code || ' ',
|
subtitle: x.code || ' ',
|
||||||
|
|
@ -179,7 +183,7 @@ watch(
|
||||||
|
|
||||||
<div
|
<div
|
||||||
v-else-if="workItems.length > 0 && treeView"
|
v-else-if="workItems.length > 0 && treeView"
|
||||||
class="row rounded bordered surface-2 col q-pa-md"
|
class="row rounded bordered surface-2 col q-pa-md scroll"
|
||||||
>
|
>
|
||||||
<TreeView
|
<TreeView
|
||||||
expandable
|
expandable
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue