2021-02-02 23:52:27 +08:00
|
|
|
import AdminDefault from '../views/admin/Admin.vue';
|
|
|
|
import UsersConf from '../views/admin/users/index.vue';
|
|
|
|
import LocationConf from '../views/admin/location/index.vue';
|
|
|
|
import LaboratoryConf from '../views/admin/laboratory/index.vue';
|
|
|
|
import InstrumentsConf from '../views/admin/instruments/index.vue';
|
|
|
|
import PublicationConf from '../views/admin/publication/index.vue';
|
|
|
|
import AnalysesConf from '../views/admin/analyses/index.vue';
|
|
|
|
import SuppliersConf from '../views/admin/suppliers/index.vue';
|
2021-03-26 04:22:59 +08:00
|
|
|
import SampleConf from '../views/admin/sample/index.vue';
|
2021-02-02 23:52:27 +08:00
|
|
|
import WSTemplatesConf from '../views/admin/worksheets/index.vue';
|
2022-02-06 03:36:45 +08:00
|
|
|
import ReflexRulesConf from '../views/admin/reflex/index.vue';
|
2022-02-06 23:56:47 +08:00
|
|
|
import ReflexListing from '../views/admin/reflex/ReflexListing.vue';
|
|
|
|
import ReflexRuleDetail from '../views/admin/reflex/_id/index.vue';
|
2021-02-02 23:52:27 +08:00
|
|
|
|
|
|
|
|
|
|
|
const adminRoutes = [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
name: 'felicity-configs',
|
|
|
|
component: AdminDefault,
|
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'users-conf',
|
|
|
|
name: 'users-conf',
|
|
|
|
component: UsersConf,
|
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'location-conf',
|
|
|
|
name: 'location-conf',
|
|
|
|
component: LocationConf,
|
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'laboratory-conf',
|
|
|
|
name: 'laboratory-conf',
|
|
|
|
component: LaboratoryConf,
|
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'instruments-conf',
|
|
|
|
name: 'instruments-conf',
|
|
|
|
component: InstrumentsConf,
|
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'publication-conf',
|
|
|
|
name: 'publication-conf',
|
|
|
|
component: PublicationConf,
|
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'analyses-conf',
|
|
|
|
name: 'analyses-conf',
|
|
|
|
component: AnalysesConf,
|
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'sampletypes-conf',
|
|
|
|
name: 'sampletypes-conf',
|
2021-03-26 04:22:59 +08:00
|
|
|
component: SampleConf,
|
2021-02-02 23:52:27 +08:00
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'worksheets-conf',
|
|
|
|
name: 'worksheets-conf',
|
|
|
|
component: WSTemplatesConf,
|
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'suppliers-conf',
|
|
|
|
name: 'suppliers-conf',
|
|
|
|
component: SuppliersConf,
|
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
2022-02-06 03:36:45 +08:00
|
|
|
{
|
|
|
|
path: 'reflex-rule-conf',
|
|
|
|
name: 'reflex-rule-conf',
|
|
|
|
component: ReflexRulesConf,
|
2022-02-06 23:56:47 +08:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
name: 'reflex-listing',
|
|
|
|
component: ReflexListing,
|
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':uid',
|
|
|
|
name: 'reflex-detail',
|
|
|
|
component: ReflexRuleDetail,
|
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
2022-02-06 03:36:45 +08:00
|
|
|
meta: {
|
|
|
|
requiresAuth: true,
|
|
|
|
},
|
|
|
|
},
|
2021-02-02 23:52:27 +08:00
|
|
|
];
|
|
|
|
|
|
|
|
export default adminRoutes;
|