fix: refs #8197 workerDepartment router
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
bd2db2ef58
commit
41b466790d
|
@ -98,11 +98,14 @@ function checkIsMain() {
|
||||||
/>
|
/>
|
||||||
<div :id="searchbarId"></div>
|
<div :id="searchbarId"></div>
|
||||||
</slot>
|
</slot>
|
||||||
<RightAdvancedMenu :is-main-section="isMainSection">
|
<RightAdvancedMenu
|
||||||
<template #advanced-menu v-if="$slots[advancedMenuSlot] || rightFilter">
|
:is-main-section="isMainSection"
|
||||||
|
v-if="$slots[advancedMenuSlot] || rightFilter"
|
||||||
|
>
|
||||||
|
<template #advanced-menu>
|
||||||
<slot :name="advancedMenuSlot">
|
<slot :name="advancedMenuSlot">
|
||||||
<VnTableFilter
|
<VnTableFilter
|
||||||
v-if="rightFilter && columns"
|
v-if="columns"
|
||||||
:data-key="dataKey"
|
:data-key="dataKey"
|
||||||
:array-data="arrayData"
|
:array-data="arrayData"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
|
|
|
@ -9,7 +9,7 @@ import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.v
|
||||||
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
|
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
|
||||||
import VnInput from 'src/components/common/VnInput.vue';
|
import VnInput from 'src/components/common/VnInput.vue';
|
||||||
import CustomerDefaulterAddObservation from './CustomerDefaulterAddObservation.vue';
|
import CustomerDefaulterAddObservation from './CustomerDefaulterAddObservation.vue';
|
||||||
import DepartmentDescriptorProxy from 'src/pages/Department/Card/DepartmentDescriptorProxy.vue';
|
import DepartmentDescriptorProxy from 'src/pages/Worker/Department/Card/DepartmentDescriptorProxy.vue';
|
||||||
import VnTable from 'src/components/VnTable/VnTable.vue';
|
import VnTable from 'src/components/VnTable/VnTable.vue';
|
||||||
import { useArrayData } from 'src/composables/useArrayData';
|
import { useArrayData } from 'src/composables/useArrayData';
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import axios from 'axios';
|
||||||
import VnImg from 'src/components/ui/VnImg.vue';
|
import VnImg from 'src/components/ui/VnImg.vue';
|
||||||
import EditPictureForm from 'components/EditPictureForm.vue';
|
import EditPictureForm from 'components/EditPictureForm.vue';
|
||||||
import WorkerDescriptorMenu from './WorkerDescriptorMenu.vue';
|
import WorkerDescriptorMenu from './WorkerDescriptorMenu.vue';
|
||||||
import DepartmentDescriptorProxy from 'src/pages/Department/Card/DepartmentDescriptorProxy.vue';
|
import DepartmentDescriptorProxy from 'src/pages/Worker/Department/Card/DepartmentDescriptorProxy.vue';
|
||||||
|
|
||||||
const $props = defineProps({
|
const $props = defineProps({
|
||||||
id: {
|
id: {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import CardSummary from 'components/ui/CardSummary.vue';
|
||||||
import VnUserLink from 'src/components/ui/VnUserLink.vue';
|
import VnUserLink from 'src/components/ui/VnUserLink.vue';
|
||||||
import VnTitle from 'src/components/common/VnTitle.vue';
|
import VnTitle from 'src/components/common/VnTitle.vue';
|
||||||
import RoleDescriptorProxy from 'src/pages/Account/Role/Card/RoleDescriptorProxy.vue';
|
import RoleDescriptorProxy from 'src/pages/Account/Role/Card/RoleDescriptorProxy.vue';
|
||||||
import DepartmentDescriptorProxy from 'src/pages/Department/Card/DepartmentDescriptorProxy.vue';
|
import DepartmentDescriptorProxy from 'src/pages/Worker/Department/Card/DepartmentDescriptorProxy.vue';
|
||||||
import { useAdvancedSummary } from 'src/composables/useAdvancedSummary';
|
import { useAdvancedSummary } from 'src/composables/useAdvancedSummary';
|
||||||
import WorkerDescriptorMenu from './WorkerDescriptorMenu.vue';
|
import WorkerDescriptorMenu from './WorkerDescriptorMenu.vue';
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import VnCardBeta from 'components/common/VnCardBeta.vue';
|
import VnCardBeta from 'components/common/VnCardBeta.vue';
|
||||||
import DepartmentDescriptor from 'pages/Department/Card/DepartmentDescriptor.vue';
|
import DepartmentDescriptor from 'pages/Worker/Department/Card/DepartmentDescriptor.vue';
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<VnCardBeta
|
<VnCardBeta
|
|
@ -4,7 +4,7 @@ import WorkerDepartmentTree from './WorkerDepartmentTree.vue';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VnSection data-key="WorkerDepartment" :search-bar="false">
|
<VnSection data-key="WorkerDepartmentList" :search-bar="false" :right-filter="false">
|
||||||
<template #body>
|
<template #body>
|
||||||
<div class="flex flex-center q-pa-md">
|
<div class="flex flex-center q-pa-md">
|
||||||
<WorkerDepartmentTree />
|
<WorkerDepartmentTree />
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { onMounted, ref } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useState } from 'src/composables/useState';
|
import { useState } from 'src/composables/useState';
|
||||||
import { useQuasar } from 'quasar';
|
import { useQuasar } from 'quasar';
|
||||||
import DepartmentDescriptorProxy from 'src/pages/Department/Card/DepartmentDescriptorProxy.vue';
|
import DepartmentDescriptorProxy from 'src/pages/Worker/Department/Card/DepartmentDescriptorProxy.vue';
|
||||||
import CreateDepartmentChild from './CreateDepartmentChild.vue';
|
import CreateDepartmentChild from './CreateDepartmentChild.vue';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
|
|
|
@ -191,7 +191,7 @@ const workerCard = {
|
||||||
const departmentCard = {
|
const departmentCard = {
|
||||||
name: 'DepartmentCard',
|
name: 'DepartmentCard',
|
||||||
path: ':id',
|
path: ':id',
|
||||||
component: () => import('src/pages/Department/Card/DepartmentCard.vue'),
|
component: () => import('src/pages/Worker/Department/Card/DepartmentCard.vue'),
|
||||||
redirect: { name: 'DepartmentSummary' },
|
redirect: { name: 'DepartmentSummary' },
|
||||||
meta: {
|
meta: {
|
||||||
menu: ['DepartmentBasicData'],
|
menu: ['DepartmentBasicData'],
|
||||||
|
@ -204,7 +204,8 @@ const departmentCard = {
|
||||||
title: 'summary',
|
title: 'summary',
|
||||||
icon: 'launch',
|
icon: 'launch',
|
||||||
},
|
},
|
||||||
component: () => import('src/pages/Department/Card/DepartmentSummary.vue'),
|
component: () =>
|
||||||
|
import('src/pages/Worker/Department/Card/DepartmentSummary.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'basic-data',
|
path: 'basic-data',
|
||||||
|
@ -213,7 +214,8 @@ const departmentCard = {
|
||||||
title: 'basicData',
|
title: 'basicData',
|
||||||
icon: 'vn:settings',
|
icon: 'vn:settings',
|
||||||
},
|
},
|
||||||
component: () => import('src/pages/Department/Card/DepartmentBasicData.vue'),
|
component: () =>
|
||||||
|
import('src/pages/Worker/Department/Card/DepartmentBasicData.vue'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
@ -256,14 +258,14 @@ export default {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'department',
|
path: 'department',
|
||||||
name: 'Department',
|
name: 'WorkerDepartment',
|
||||||
redirect: { name: 'WorkerDepartment' },
|
redirect: { name: 'WorkerDepartmentList' },
|
||||||
|
meta: { title: 'department', icon: 'vn:greuge' },
|
||||||
component: () => import('src/pages/Worker/WorkerDepartment.vue'),
|
component: () => import('src/pages/Worker/WorkerDepartment.vue'),
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
name: 'WorkerDepartment',
|
name: 'WorkerDepartmentList',
|
||||||
path: 'list',
|
path: 'list',
|
||||||
meta: { title: 'department', icon: 'vn:greuge' },
|
|
||||||
},
|
},
|
||||||
departmentCard,
|
departmentCard,
|
||||||
],
|
],
|
||||||
|
|
|
@ -55,8 +55,8 @@ export const useNavigationStore = defineStore('navigationStore', () => {
|
||||||
|
|
||||||
function addMenuItem(module, route, parent) {
|
function addMenuItem(module, route, parent) {
|
||||||
const { meta } = route;
|
const { meta } = route;
|
||||||
let { menuChildren = null } = meta;
|
if (meta?.hidden) return;
|
||||||
if (meta.hidden) return;
|
const menuChildren = meta?.menuChildren;
|
||||||
if (menuChildren)
|
if (menuChildren)
|
||||||
menuChildren = menuChildren.map(({ name, title, icon }) => ({
|
menuChildren = menuChildren.map(({ name, title, icon }) => ({
|
||||||
name,
|
name,
|
||||||
|
|
Loading…
Reference in New Issue