@dongkboy vor 1 Jahr
Ursprung
Commit
8bc85291ee

+ 3 - 2
src/api/index.ts

@@ -11,7 +11,7 @@ import roleApi from './modules/role'
 import tenantApi from './modules/tenant'
 import memberApi from './modules/member'
 import dept from './modules/dept'
-
+import company from './modules/insuranceCompany'
 const axiosInstance:ApiInstance = axios.create({
   baseURL: (import.meta.env.DEV && import.meta.env.VITE_OPEN_PROXY === 'true') ? '/proxy/' : import.meta.env.VITE_APP_API_BASEURL,
   timeout: 1000 * 60,
@@ -97,6 +97,7 @@ const api = {
   roleApi: roleApi(axiosInstance),
   tenantApi: tenantApi(axiosInstance),
   member:memberApi(axiosInstance),
-  dept:dept(axiosInstance)
+  dept:dept(axiosInstance),
+  company:company(axiosInstance)
 }
 export default api

+ 34 - 0
src/router/modules/insuranceCompany.ts

@@ -0,0 +1,34 @@
+import type { RouteRecordRaw } from 'vue-router'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: RouteRecordRaw = {
+  path: '/insuranceCompanyConfiguration',
+  component: Layout,
+  redirect: '/insuranceCompanyConfiguration/insuranceCompanyConfig',
+  name: 'InsuranceCompanyConfiguration',
+  meta: {
+    title: '保险公司配置',
+    icon:'zh',
+  },
+  children: [
+    {
+      path: 'insuranceCompanyConfig',
+      name: 'InsuranceCompanyConfigIndex',
+      component: () => import('@/views/insuranceCompanyConfiguration/insuranceCompanyConfig.vue'),
+      meta: {
+        title: '保险公司',
+        auth: ['insuranceCompanyConfig.add', 'insuranceCompanyConfig.view', 'insuranceCompanyConfig.delete', 'insuranceCompanyConfig.edit']
+      },
+    },
+    {
+      path: 'paymentCodeConfig',
+      name: 'PaymentCodeConfigIndex',
+      component: () => import('@/views/insuranceCompanyConfiguration/paymentCodeConfig.vue'),
+      meta: {
+        title: '支付码配置',
+      },
+    },
+  ],
+}
+
+export default routes

+ 8 - 0
src/router/modules/organization.ts

@@ -70,6 +70,14 @@ const routes: RouteRecordRaw = {
         auth: ['tenantPermissions.edit']
       },
     },
+    {
+      path: 'functionConfiguration',
+      name: 'FunctionConfigurationIndex',
+      component: () => import('@/views/organizationManagement/functionConfiguration.vue'),
+      meta: {
+        title: '功能配置',
+      },
+    },
   ],
 }
 

+ 56 - 0
src/router/modules/product.ts

@@ -0,0 +1,56 @@
+import type { RouteRecordRaw } from 'vue-router'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: RouteRecordRaw = {
+  path: '/productConfiguration/drivingInsurance',
+  component: Layout,
+  redirect: '/productConfiguration/drivingInsurance/index',
+  name: 'ProductConfigurationDrivingInsurance',
+  meta: {
+    title: '产品配置',
+    icon:'zh',
+  },
+  children: [
+    {
+      path: 'index',
+      name: 'DrivingInsuranceIndex',
+      redirect: '/productConfiguration/drivingInsurance/index',
+      meta: {
+        title: '驾意险配置',
+        // auth: ['organizationlist.add', 'organizationlist.view', 'organizationlist.delete', 'organizationlist.edit']
+      },
+      children: [
+        {
+          path: '',
+          component: () => import('@/views/productConfiguration/drivingInsurance/index.vue'),
+          meta: {
+            title: '驾意险配置',
+            menu: false,
+            breadcrumb: false,
+          },
+        },
+        // {
+        //   path: 'organizationAdd',
+        //   name: 'OrganizationAdd',
+        //   component: () => import('@/views/organizationManagement/organization/organizationAdd.vue'),
+        //   meta: {
+        //     title: '驾意险添加',
+        //     menu: false,
+        //     activeMenu: '/organizationManagement/organization/organizationlist',
+        //   },
+        // },
+      ],
+    },
+
+    {
+      path: 'index',
+      name: 'SpecialClauseIndex',
+      component: () => import('@/views/productConfiguration/specialClause/index.vue'),
+      meta: {
+        title: '特约管理',
+      },
+    },
+  ],
+}
+
+export default routes