refactor: refs #8316 used VnSection and VnCardBeta
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
93047ab179
commit
e70bd298b6
|
@ -1,9 +1,9 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import VnCard from 'components/common/VnCard.vue';
|
import VnCardBeta from 'components/common/VnCardBeta.vue';
|
||||||
import DepartmentDescriptor from 'pages/Department/Card/DepartmentDescriptor.vue';
|
import DepartmentDescriptor from 'pages/Department/Card/DepartmentDescriptor.vue';
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<VnCard
|
<VnCardBeta
|
||||||
class="q-pa-md column items-center"
|
class="q-pa-md column items-center"
|
||||||
v-bind="{ ...$attrs }"
|
v-bind="{ ...$attrs }"
|
||||||
data-key="Department"
|
data-key="Department"
|
||||||
|
|
|
@ -1,47 +1,56 @@
|
||||||
|
|
||||||
import { RouterView } from 'vue-router';
|
import { RouterView } from 'vue-router';
|
||||||
|
|
||||||
|
const departmentCard = {
|
||||||
|
name: 'DepartmentCard',
|
||||||
|
path: ':id',
|
||||||
|
component: () => import('src/pages/Department/Card/DepartmentCard.vue'),
|
||||||
|
redirect: { name: 'DepartmentSummary' },
|
||||||
|
meta: {
|
||||||
|
menu: [
|
||||||
|
'DepartmentBasicData',
|
||||||
|
]
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'summary',
|
||||||
|
name: 'DepartmentSummary',
|
||||||
|
meta: {
|
||||||
|
title: 'summary',
|
||||||
|
icon: 'launch',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Department/Card/DepartmentSummary.vue'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'basic-data',
|
||||||
|
name: 'DepartmentBasicData',
|
||||||
|
meta: {
|
||||||
|
title: 'basicData',
|
||||||
|
icon: 'vn:settings',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Department/Card/DepartmentBasicData.vue'),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
path: '/department',
|
|
||||||
name: 'Department',
|
name: 'Department',
|
||||||
|
path: '/department',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'department',
|
title: 'department',
|
||||||
icon: 'vn:greuge',
|
icon: 'vn:greuge',
|
||||||
moduleName: 'Department',
|
moduleName: 'Department',
|
||||||
|
menu: [],
|
||||||
},
|
},
|
||||||
component: RouterView,
|
component: RouterView,
|
||||||
redirect: { name: 'WorkerDepartment' },
|
redirect: { name: 'DepartmentMain' },
|
||||||
menus: {
|
|
||||||
main: [],
|
|
||||||
card: ['DepartmentBasicData'],
|
|
||||||
},
|
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: 'DepartmentCard',
|
name: 'DepartmentMain',
|
||||||
path: 'department/:id',
|
path: '',
|
||||||
component: () => import('src/pages/Department/Card/DepartmentCard.vue'),
|
component: () => import('src/components/common/VnModule.vue'),
|
||||||
redirect: { name: 'DepartmentSummary' },
|
redirect: { name: 'DepartmentIndexMain' },
|
||||||
children: [
|
children: [departmentCard],
|
||||||
{
|
|
||||||
name: 'DepartmentSummary',
|
|
||||||
path: 'summary',
|
|
||||||
meta: {
|
|
||||||
title: 'summary',
|
|
||||||
icon: 'launch',
|
|
||||||
},
|
|
||||||
component: () =>
|
|
||||||
import('src/pages/Department/Card/DepartmentSummary.vue'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'DepartmentBasicData',
|
|
||||||
path: 'basic-data',
|
|
||||||
meta: {
|
|
||||||
title: 'basicData',
|
|
||||||
icon: 'vn:settings',
|
|
||||||
},
|
|
||||||
component: () =>
|
|
||||||
import('src/pages/Department/Card/DepartmentBasicData.vue'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue