From 488c44ca9b809e8144ef235d5b6689c00ca13301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E9=98=94?= Date: Thu, 14 Nov 2024 17:04:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=8F=E5=B0=91=E9=A1=B9=E7=9B=AE=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=A4=9A=E4=BD=99=E6=96=87=E4=BB=B6=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 4 +- .fleet/vite.config.ts | 169 ++ mock/_createProductionServer.ts | 18 - mock/analysis/index.ts | 89 - mock/department/index.ts | 205 -- mock/dict/index.ts | 63 - mock/menu/index.ts | 265 --- mock/request/index.ts | 64 - mock/role/index.ts | 1180 ------------ mock/table/index.ts | 256 --- mock/user/index.ts | 135 -- mock/workplace/index.ts | 172 -- package.json | 4 +- src/components/Upload/src/Upload.vue | 7 + src/config/axios/config.ts | 2 +- .../CaseManageTabList/CaseManageInfo.vue | 223 --- src/pageComponent/CaseManageTabList/index.ts | 3 - .../customerRateInfo/customerRateInfo.vue | 84 - .../customerRateInfo/echarts-data.ts | 290 --- .../customerRateInfo/index.ts | 3 - .../CustomerRiskRate/scoreAdjustment/index.ts | 3 - .../scoreAdjustment/scoreAdjustment.vue | 435 ----- .../LargScaleOriginTable.vue | 138 -- .../LargScaleOriginTable/index.ts | 3 - .../customerInfoTable/customerInfoTable.vue | 52 - src/pageComponent/customerInfoTable/index.ts | 3 - .../identificationTable.vue | 231 --- .../transcationInfoTable/index.ts | 3 - src/router/index-srdb.ts | 571 ------ src/router/index.ts | 1281 +------------ src/router/routeRep/apply2.ts | 143 -- src/router/routeRep/apply3.ts | 1687 ----------------- .../components/TrendAnalysis.vue | 4 +- vite.config.ts | 18 +- 34 files changed, 224 insertions(+), 7584 deletions(-) create mode 100644 .fleet/vite.config.ts delete mode 100644 mock/_createProductionServer.ts delete mode 100644 mock/analysis/index.ts delete mode 100644 mock/department/index.ts delete mode 100644 mock/dict/index.ts delete mode 100644 mock/menu/index.ts delete mode 100644 mock/request/index.ts delete mode 100644 mock/role/index.ts delete mode 100644 mock/table/index.ts delete mode 100644 mock/user/index.ts delete mode 100644 mock/workplace/index.ts delete mode 100644 src/pageComponent/CaseManageTabList/CaseManageInfo.vue delete mode 100644 src/pageComponent/CaseManageTabList/index.ts delete mode 100644 src/pageComponent/CustomerRiskRate/customerRateInfo/customerRateInfo.vue delete mode 100644 src/pageComponent/CustomerRiskRate/customerRateInfo/echarts-data.ts delete mode 100644 src/pageComponent/CustomerRiskRate/customerRateInfo/index.ts delete mode 100644 src/pageComponent/CustomerRiskRate/scoreAdjustment/index.ts delete mode 100644 src/pageComponent/CustomerRiskRate/scoreAdjustment/scoreAdjustment.vue delete mode 100644 src/pageComponent/LargScaleOriginTable/LargScaleOriginTable.vue delete mode 100644 src/pageComponent/LargScaleOriginTable/index.ts delete mode 100644 src/pageComponent/customerInfoTable/customerInfoTable.vue delete mode 100644 src/pageComponent/customerInfoTable/index.ts delete mode 100644 src/pageComponent/transcationInfoTable/identificationTable.vue delete mode 100644 src/pageComponent/transcationInfoTable/index.ts delete mode 100644 src/router/index-srdb.ts delete mode 100644 src/router/routeRep/apply2.ts delete mode 100644 src/router/routeRep/apply3.ts diff --git a/.env.dev b/.env.dev index f8da9b8..95ca5c1 100644 --- a/.env.dev +++ b/.env.dev @@ -8,10 +8,10 @@ VITE_API_BASE_PATH=dev VITE_BASE_PATH=./ # 是否删除debugger -VITE_DROP_DEBUGGER=true +VITE_DROP_DEBUGGER=false # 是否删除console.log -VITE_DROP_CONSOLE=true +VITE_DROP_CONSOLE=false # 是否sourcemap VITE_SOURCEMAP=true diff --git a/.fleet/vite.config.ts b/.fleet/vite.config.ts new file mode 100644 index 0000000..22c20b6 --- /dev/null +++ b/.fleet/vite.config.ts @@ -0,0 +1,169 @@ +import { resolve } from 'path' +import { loadEnv } from 'vite' +import type { UserConfig, ConfigEnv } from 'vite' +import Vue from '@vitejs/plugin-vue' +import VueJsx from '@vitejs/plugin-vue-jsx' +import progress from 'vite-plugin-progress' +// import EslintPlugin from 'vite-plugin-eslint' +import { ViteEjsPlugin } from "vite-plugin-ejs" +import PurgeIcons from 'vite-plugin-purge-icons' +import VueI18nPlugin from "@intlify/unplugin-vue-i18n/vite" +import { createSvgIconsPlugin } from 'vite-plugin-svg-icons' +import { createStyleImportPlugin, ElementPlusResolve } from 'vite-plugin-style-import' +import UnoCSS from 'unocss/vite' + +// https://vitejs.dev/config/ +const root = process.cwd() + +function pathResolve(dir: string) { + return resolve(root, '.', dir) +} + +export default ({ command, mode }: ConfigEnv): UserConfig => { + let env = {} as any + const isBuild = command === 'build' + if (!isBuild) { + env = loadEnv((process.argv[3] === '--mode' ? process.argv[4] : process.argv[3]), root) + } else { + env = loadEnv(mode, root) + } + return { + base: env.VITE_BASE_PATH, + plugins: [ + Vue({ + script: { + // 开启defineModel + defineModel: true + } + }), + VueJsx(), + progress(), + createStyleImportPlugin({ + resolves: [ElementPlusResolve()], + libs: [{ + libraryName: 'element-plus', + esModule: true, + resolveStyle: (name) => { + if (name === 'click-outside') { + return '' + } + return `element-plus/es/components/${name.replace(/^el-/, '')}/style/css` + } + }] + }), + // EslintPlugin({ + // cache: false, + // include: ['src/**/*.vue', 'src/**/*.ts', 'src/**/*.tsx'] // 检查的文件 + // }), + VueI18nPlugin({ + runtimeOnly: true, + compositionOnly: true, + include: [resolve(__dirname, 'src/locales/**')] + }), + createSvgIconsPlugin({ + iconDirs: [pathResolve('src/assets/svgs')], + symbolId: 'icon-[dir]-[name]', + svgoOptions: true + }), + PurgeIcons(), + ViteEjsPlugin({ + title: env.VITE_APP_TITLE + }), + UnoCSS(), + // sveltekit(), + ], + + css: { + preprocessorOptions: { + less: { + additionalData: '@import "./src/styles/variables.module.less";', + javascriptEnabled: true + } + } + }, + resolve: { + extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.less', '.css'], + alias: [ + { + find: 'vue-i18n', + replacement: 'vue-i18n/dist/vue-i18n.cjs.js' + }, + { + find: /\@\//, + replacement: `${pathResolve('src')}/` + } + ] + }, + build: { + minify: 'terser', + outDir: env.VITE_OUT_DIR || 'dist', + sourcemap: env.VITE_SOURCEMAP === 'true' ? 'inline' : false, + // brotliSize: false, + terserOptions: { + compress: { + drop_debugger: env.VITE_DROP_DEBUGGER === 'true', + drop_console: env.VITE_DROP_CONSOLE === 'true' + } + } + }, + server: { + port: 4000, + proxy: { + // 选项写法 + '/api': { + //target: 'http://214.129.16.68:8088/rdvs', + // target: 'http://172.16.87.111:8083/ordb', + target: 'http://localhost:8082/srdb', + // target: 'http://172.16.87.114:8095/ordb', + // target: 'http://172.16.87.111:8080/portal', + // target: 'http://localhost:8082/portal', + // target: 'http://192.168.183.136:8082/portal', + changeOrigin: true, + rewrite: path => path.replace(/^\/api/, '') + }, + '/pro': { + //target: 'http://214.129.16.68:8088/rdvs', + // target: 'http://172.16.87.111:8083/ordb', + target: 'http://localhost:8082/srdb', + // target: 'http://172.16.87.114:8095/ordb', + // target: 'http://172.16.87.111:8080/portal', + // target: 'http://localhost:8082/portal', + // target: 'http://172.20.10.4:8082/portal', + // target: 'http://192.168.183.136:8082/portal', + changeOrigin: true, + rewrite: path => path.replace(/^\/pro/, '') + }, + '/dev': { + target: 'http://172.16.87.114:8095/ordb', + changeOrigin: true, + rewrite: path => path.replace(/^\/dev/, '') + }, + }, + hmr: { + overlay: false + }, + host: '0.0.0.0' + }, + optimizeDeps: { + include: [ + 'vue', + 'vue-router', + 'vue-types', + 'element-plus/es/locale/lang/zh-cn', + 'element-plus/es/locale/lang/en', + '@iconify/iconify', + '@vueuse/core', + 'axios', + 'qs', + 'echarts', + 'echarts-wordcloud', + 'qrcode', + '@wangeditor/editor', + '@wangeditor/editor-for-vue', + 'vue-json-pretty', + '@zxcvbn-ts/core', + 'dayjs' + ] + } + } +} diff --git a/mock/_createProductionServer.ts b/mock/_createProductionServer.ts deleted file mode 100644 index caa26bf..0000000 --- a/mock/_createProductionServer.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { createProdMockServer } from 'vite-plugin-mock/es/createProdMockServer' - -const modules = import.meta.glob('./**/*.ts', { - import: 'default', - eager: true -}) - -const mockModules: any[] = [] -Object.keys(modules).forEach(async (key) => { - if (key.includes('_')) { - return - } - mockModules.push(...(modules[key] as any)) -}) - -export function setupProdMockServer() { - createProdMockServer(mockModules) -} diff --git a/mock/analysis/index.ts b/mock/analysis/index.ts deleted file mode 100644 index 3128049..0000000 --- a/mock/analysis/index.ts +++ /dev/null @@ -1,89 +0,0 @@ -import config from '@/config/axios/config' -import { MockMethod } from 'vite-plugin-mock' - -const { code } = config - -const timeout = 1000 - -export default [ - // 分析页统计接口 - { - url: '/analysis/total', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: { - users: 102400, - messages: 81212, - moneys: 9280, - shoppings: 13600 - } - } - } - }, - // 用户来源 - { - url: '/analysis/userAccessSource', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: [ - { value: 1000, name: 'analysis.directAccess' }, - { value: 310, name: 'analysis.mailMarketing' }, - { value: 234, name: 'analysis.allianceAdvertising' }, - { value: 135, name: 'analysis.videoAdvertising' }, - { value: 1548, name: 'analysis.searchEngines' } - ] - } - } - }, - // 每周用户活跃量 - { - url: '/analysis/weeklyUserActivity', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: [ - { value: 13253, name: 'analysis.monday' }, - { value: 34235, name: 'analysis.tuesday' }, - { value: 26321, name: 'analysis.wednesday' }, - { value: 12340, name: 'analysis.thursday' }, - { value: 24643, name: 'analysis.friday' }, - { value: 1322, name: 'analysis.saturday' }, - { value: 1324, name: 'analysis.sunday' } - ] - } - } - }, - // 每月销售额 - { - url: '/analysis/monthlySales', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: [ - { estimate: 100, actual: 120, name: 'analysis.january' }, - { estimate: 120, actual: 82, name: 'analysis.february' }, - { estimate: 161, actual: 91, name: 'analysis.march' }, - { estimate: 134, actual: 154, name: 'analysis.april' }, - { estimate: 105, actual: 162, name: 'analysis.may' }, - { estimate: 160, actual: 140, name: 'analysis.june' }, - { estimate: 165, actual: 145, name: 'analysis.july' }, - { estimate: 114, actual: 250, name: 'analysis.august' }, - { estimate: 163, actual: 134, name: 'analysis.september' }, - { estimate: 185, actual: 56, name: 'analysis.october' }, - { estimate: 118, actual: 99, name: 'analysis.november' }, - { estimate: 123, actual: 123, name: 'analysis.december' } - ] - } - } - } -] as MockMethod[] diff --git a/mock/department/index.ts b/mock/department/index.ts deleted file mode 100644 index 67ac648..0000000 --- a/mock/department/index.ts +++ /dev/null @@ -1,205 +0,0 @@ -import config from '@/config/axios/config' -import { MockMethod } from 'vite-plugin-mock' -import { toAnyString } from '@/utils' -import Mock from 'mockjs' - -const { code } = config - -const departmentList: any = [] - -const citys = ['厦门总公司', '北京分公司', '上海分公司', '福州分公司', '深圳分公司', '杭州分公司'] - -for (let i = 0; i < 5; i++) { - departmentList.push({ - // 部门名称 - departmentName: citys[i], - id: toAnyString(), - createTime: '@datetime', - // 状态 - status: Mock.Random.integer(0, 1), - // 备注 - remark: '@cword(10, 15)', - children: [ - { - // 部门名称 - departmentName: '研发部', - createTime: '@datetime', - // 状态 - status: Mock.Random.integer(0, 1), - id: toAnyString(), - remark: '@cword(10, 15)' - }, - { - // 部门名称 - departmentName: '产品部', - createTime: '@datetime', - // 状态 - status: Mock.Random.integer(0, 1), - id: toAnyString(), - remark: '@cword(10, 15)' - }, - { - // 部门名称 - departmentName: '运营部', - createTime: '@datetime', - // 状态 - status: Mock.Random.integer(0, 1), - id: toAnyString(), - remark: '@cword(10, 15)' - }, - { - // 部门名称 - departmentName: '市场部', - createTime: '@datetime', - // 状态 - status: Mock.Random.integer(0, 1), - id: toAnyString(), - remark: '@cword(10, 15)' - }, - { - // 部门名称 - departmentName: '销售部', - createTime: '@datetime', - // 状态 - status: Mock.Random.integer(0, 1), - id: toAnyString(), - remark: '@cword(10, 15)' - }, - { - // 部门名称 - departmentName: '客服部', - createTime: '@datetime', - // 状态 - status: Mock.Random.integer(0, 1), - id: toAnyString(), - remark: '@cword(10, 15)' - } - ] - }) -} - -export default [ - // 列表接口 - { - url: '/department/list', - method: 'get', - response: () => { - return { - code: code, - data: { - list: departmentList - } - } - } - }, - { - url: '/department/table/list', - method: 'get', - response: () => { - return { - code: code, - data: { - list: departmentList, - total: 5 - } - } - } - }, - { - url: '/department/users', - method: 'get', - timeout: 1000, - response: ({ query }) => { - const { pageSize } = query - // 根据pageSize来创建数据 - const mockList: any = [] - for (let i = 0; i < pageSize; i++) { - mockList.push( - Mock.mock({ - // 用户名 - username: '@cname', - // 账号 - account: '@first', - // 邮箱 - email: '@EMAIL', - // 创建时间 - createTime: '@datetime', - // 角色 - role: '@first', - // 用户id - id: toAnyString() - }) - ) - } - return { - code: code, - data: { - total: 100, - list: mockList - } - } - } - }, - // 保存接口 - { - url: '/department/user/save', - method: 'post', - timeout: 1000, - response: () => { - return { - code: code, - data: 'success' - } - } - }, - // 删除接口 - { - url: '/department/user/delete', - method: 'post', - response: ({ body }) => { - const ids = body.ids - if (!ids) { - return { - code: 500, - message: '请选择需要删除的数据' - } - } else { - return { - code: code, - data: 'success' - } - } - } - }, - // 保存接口 - { - url: '/department/save', - method: 'post', - timeout: 1000, - response: () => { - return { - code: code, - data: 'success' - } - } - }, - // 删除接口 - { - url: '/department/delete', - method: 'post', - response: ({ body }) => { - const ids = body.ids - if (!ids) { - return { - code: 500, - message: '请选择需要删除的数据' - } - } else { - return { - code: code, - data: 'success' - } - } - } - } -] as MockMethod[] diff --git a/mock/dict/index.ts b/mock/dict/index.ts deleted file mode 100644 index 00230b8..0000000 --- a/mock/dict/index.ts +++ /dev/null @@ -1,63 +0,0 @@ -import config from '@/config/axios/config' -import { MockMethod } from 'vite-plugin-mock' - -const { code } = config - -const timeout = 1000 - -const dictObj: Recordable = { - importance: [ - { - value: 0, - label: 'tableDemo.commonly' - }, - { - value: 1, - label: 'tableDemo.good' - }, - { - value: 2, - label: 'tableDemo.important' - } - ] -} - -export default [ - // 字典接口 - { - url: '/dict/list', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: dictObj - } - } - }, - // 获取某个字典 - { - url: '/dict/one', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: [ - { - label: 'test1', - value: 0 - }, - { - label: 'test2', - value: 1 - }, - { - label: 'test3', - value: 2 - } - ] - } - } - } -] as MockMethod[] diff --git a/mock/menu/index.ts b/mock/menu/index.ts deleted file mode 100644 index 488b82c..0000000 --- a/mock/menu/index.ts +++ /dev/null @@ -1,265 +0,0 @@ -import config from '@/config/axios/config' -import { MockMethod } from 'vite-plugin-mock' -import Mock from 'mockjs' - -const { code } = config - -const timeout = 1000 - -export default [ - // 列表接口 - { - url: '/menu/list', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: { - list: [ - { - path: '/dashboard', - component: '#', - redirect: '/dashboard/analysis', - name: 'Dashboard', - status: Mock.Random.integer(0, 1), - id: 1, - title: '首页', - meta: { - title: '首页', - icon: 'ant-design:dashboard-filled', - alwaysShow: true - }, - children: [ - { - path: 'analysis', - component: 'views/Dashboard/Analysis', - name: 'Analysis', - status: Mock.Random.integer(0, 1), - id: 2, - title: '分析页', - meta: { - title: '分析页', - noCache: true - } - }, - { - path: 'workplace', - component: 'views/Dashboard/Workplace', - name: 'Workplace', - status: Mock.Random.integer(0, 1), - id: 3, - title: '工作台', - meta: { - title: '工作台', - noCache: true - } - } - ] - }, - { - path: '/external-link', - component: '#', - title: '文档', - meta: { - title: '文档', - icon: 'clarity:document-solid' - }, - name: 'ExternalLink', - status: Mock.Random.integer(0, 1), - id: 4, - children: [ - { - path: 'https://element-plus-admin-doc.cn/', - name: 'DocumentLink', - status: Mock.Random.integer(0, 1), - id: 5, - title: '文档', - meta: { - title: '文档' - } - } - ] - }, - { - path: '/level', - component: '#', - redirect: '/level/menu1/menu1-1/menu1-1-1', - name: 'Level', - status: Mock.Random.integer(0, 1), - id: 6, - title: '菜单', - meta: { - title: '菜单', - icon: 'carbon:skill-level-advanced' - }, - children: [ - { - path: 'menu1', - name: 'Menu1', - component: '##', - status: Mock.Random.integer(0, 1), - id: 7, - redirect: '/level/menu1/menu1-1/menu1-1-1', - title: '菜单1', - meta: { - title: '菜单1' - }, - children: [ - { - path: 'menu1-1', - name: 'Menu11', - component: '##', - status: Mock.Random.integer(0, 1), - id: 8, - redirect: '/level/menu1/menu1-1/menu1-1-1', - title: '菜单1-1', - meta: { - title: '菜单1-1', - alwaysShow: true - }, - children: [ - { - path: 'menu1-1-1', - name: 'Menu111', - component: 'views/Level/Menu111', - status: Mock.Random.integer(0, 1), - id: 9, - permission: ['edit', 'add', 'delete'], - title: '菜单1-1-1', - meta: { - title: '菜单1-1-1' - } - } - ] - }, - { - path: 'menu1-2', - name: 'Menu12', - component: 'views/Level/Menu12', - status: Mock.Random.integer(0, 1), - id: 10, - permission: ['edit', 'add', 'delete'], - title: '菜单1-2', - meta: { - title: '菜单1-2' - } - } - ] - }, - { - path: 'menu2', - name: 'Menu2Demo', - component: 'views/Level/Menu2', - status: Mock.Random.integer(0, 1), - id: 11, - permission: ['edit', 'add', 'delete'], - title: '菜单2', - meta: { - title: '菜单2' - } - } - ] - }, - { - path: '/example', - component: '#', - redirect: '/example/example-dialog', - name: 'Example', - status: Mock.Random.integer(0, 1), - id: 12, - title: '综合示例', - meta: { - title: '综合示例', - icon: 'ep:management', - alwaysShow: true - }, - children: [ - { - path: 'example-dialog', - component: 'views/Example/Dialog/ExampleDialog', - name: 'ExampleDialog', - status: Mock.Random.integer(0, 1), - id: 13, - title: '综合示例-弹窗', - permission: ['edit', 'add', 'delete'], - meta: { - title: '综合示例-弹窗', - permission: ['edit', 'add'] - } - }, - { - path: 'example-page', - component: 'views/Example/Page/ExamplePage', - name: 'ExamplePage', - status: Mock.Random.integer(0, 1), - id: 14, - permission: ['edit', 'add', 'delete'], - title: '综合示例-页面', - meta: { - title: '综合示例-页面', - permission: ['edit', 'add'] - } - }, - { - path: 'example-add', - component: 'views/Example/Page/ExampleAdd', - name: 'ExampleAdd', - status: Mock.Random.integer(0, 1), - id: 15, - permission: ['edit', 'add', 'delete'], - title: '综合示例-新增', - meta: { - title: '综合示例-新增', - noTagsView: true, - noCache: true, - hidden: true, - showMainRoute: true, - activeMenu: '/example/example-page', - permission: ['delete', 'add'] - } - }, - { - path: 'example-edit', - component: 'views/Example/Page/ExampleEdit', - name: 'ExampleEdit', - status: Mock.Random.integer(0, 1), - id: 16, - permission: ['edit', 'add', 'delete'], - title: '综合示例-编辑', - meta: { - title: '综合示例-编辑', - noTagsView: true, - noCache: true, - hidden: true, - showMainRoute: true, - activeMenu: '/example/example-page', - permission: ['delete', 'add'] - } - }, - { - path: 'example-detail', - component: 'views/Example/Page/ExampleDetail', - name: 'ExampleDetail', - status: Mock.Random.integer(0, 1), - id: 17, - permission: ['edit', 'add', 'delete'], - title: '综合示例-详情', - meta: { - title: '综合示例-详情', - noTagsView: true, - noCache: true, - hidden: true, - showMainRoute: true, - activeMenu: '/example/example-page', - permission: ['delete', 'edit'] - } - } - ] - } - ] - } - } - } - } -] as MockMethod[] diff --git a/mock/request/index.ts b/mock/request/index.ts deleted file mode 100644 index c926137..0000000 --- a/mock/request/index.ts +++ /dev/null @@ -1,64 +0,0 @@ -import config from '@/config/axios/config' -import { MockMethod } from 'vite-plugin-mock' - -const timeout = 600000 - -const { code } = config - -export default [ - { - url: '/request/1', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: 'request-1' - } - } - }, - { - url: '/request/2', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: 'request-2' - } - } - }, - { - url: '/request/3', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: 'request-3' - } - } - }, - { - url: '/request/4', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: 'request-4' - } - } - }, - { - url: '/request/5', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: 'request-5' - } - } - } -] as MockMethod[] diff --git a/mock/role/index.ts b/mock/role/index.ts deleted file mode 100644 index b90f239..0000000 --- a/mock/role/index.ts +++ /dev/null @@ -1,1180 +0,0 @@ -import config from '@/config/axios/config' -import { MockMethod } from 'vite-plugin-mock' -import Mock from 'mockjs' -import { toAnyString } from '@/utils' - -const { code } = config - -const timeout = 1000 - -const adminList = [ - { - path: '/dashboard', - component: '#', - redirect: '/dashboard/analysis', - name: 'Dashboard', - meta: { - title: 'router.dashboard', - icon: 'ant-design:dashboard-filled', - alwaysShow: true - }, - children: [ - { - path: 'analysis', - component: 'views/Dashboard/Analysis', - name: 'Analysis', - meta: { - title: 'router.analysis', - noCache: true - } - }, - { - path: 'workplace', - component: 'views/Dashboard/Workplace', - name: 'Workplace', - meta: { - title: 'router.workplace', - noCache: true - } - } - ] - }, - { - path: '/external-link', - component: '#', - meta: {}, - name: 'ExternalLink', - children: [ - { - path: 'https://element-plus-admin-doc.cn/', - name: 'DocumentLink', - meta: { - title: 'router.document', - icon: 'clarity:document-solid' - } - } - ] - }, - { - path: '/guide', - component: '#', - name: 'Guide', - meta: {}, - children: [ - { - path: 'index', - component: 'views/Guide/Guide', - name: 'GuideDemo', - meta: { - title: 'router.guide', - icon: 'cib:telegram-plane' - } - } - ] - }, - { - path: '/components', - component: '#', - redirect: '/components/form/default-form', - name: 'ComponentsDemo', - meta: { - title: 'router.component', - icon: 'bx:bxs-component', - alwaysShow: true - }, - children: [ - { - path: 'form', - component: '##', - name: 'Form', - meta: { - title: 'router.form', - alwaysShow: true - }, - children: [ - { - path: 'default-form', - component: 'views/Components/Form/DefaultForm', - name: 'DefaultForm', - meta: { - title: 'router.defaultForm' - } - }, - { - path: 'use-form', - component: 'views/Components/Form/UseFormDemo', - name: 'UseForm', - meta: { - title: 'UseForm' - } - } - ] - }, - { - path: 'table', - component: '##', - redirect: '/components/table/default-table', - name: 'TableDemo', - meta: { - title: 'router.table', - alwaysShow: true - }, - children: [ - { - path: 'default-table', - component: 'views/Components/Table/DefaultTable', - name: 'DefaultTable', - meta: { - title: 'router.defaultTable' - } - }, - { - path: 'use-table', - component: 'views/Components/Table/UseTableDemo', - name: 'UseTable', - meta: { - title: 'UseTable' - } - }, - { - path: 'tree-table', - component: 'views/Components/Table/TreeTable', - name: 'TreeTable', - meta: { - title: 'TreeTable' - } - }, - { - path: 'table-image-preview', - component: 'views/Components/Table/TableImagePreview', - name: 'TableImagePreview', - meta: { - title: 'router.PicturePreview' - } - } - // { - // path: 'ref-table', - // component: 'views/Components/Table/RefTable', - // name: 'RefTable', - // meta: { - // title: 'RefTable' - // } - // } - ] - }, - { - path: 'editor-demo', - component: '##', - redirect: '/components/editor-demo/editor', - name: 'EditorDemo', - meta: { - title: 'router.editor', - alwaysShow: true - }, - children: [ - { - path: 'editor', - component: 'views/Components/Editor/Editor', - name: 'Editor', - meta: { - title: 'router.richText' - } - }, - { - path: 'json-editor', - component: 'views/Components/Editor/JsonEditor', - name: 'JsonEditor', - meta: { - title: 'router.jsonEditor' - } - } - ] - }, - { - path: 'search', - component: 'views/Components/Search', - name: 'Search', - meta: { - title: 'router.search' - } - }, - { - path: 'descriptions', - component: 'views/Components/Descriptions', - name: 'Descriptions', - meta: { - title: 'router.descriptions' - } - }, - { - path: 'image-viewer', - component: 'views/Components/ImageViewer', - name: 'ImageViewer', - meta: { - title: 'router.imageViewer' - } - }, - { - path: 'dialog', - component: 'views/Components/Dialog', - name: 'Dialog', - meta: { - title: 'router.dialog' - } - }, - { - path: 'icon', - component: 'views/Components/Icon', - name: 'Icon', - meta: { - title: 'router.icon' - } - }, - { - path: 'icon-picker', - component: 'views/Components/IconPicker', - name: 'IconPicker', - meta: { - title: 'router.iconPicker' - } - }, - { - path: 'echart', - component: 'views/Components/Echart', - name: 'Echart', - meta: { - title: 'router.echart' - } - }, - { - path: 'count-to', - component: 'views/Components/CountTo', - name: 'CountTo', - meta: { - title: 'router.countTo' - } - }, - { - path: 'qrcode', - component: 'views/Components/Qrcode', - name: 'Qrcode', - meta: { - title: 'router.qrcode' - } - }, - { - path: 'highlight', - component: 'views/Components/Highlight', - name: 'Highlight', - meta: { - title: 'router.highlight' - } - }, - { - path: 'infotip', - component: 'views/Components/Infotip', - name: 'Infotip', - meta: { - title: 'router.infotip' - } - }, - { - path: 'input-password', - component: 'views/Components/InputPassword', - name: 'InputPassword', - meta: { - title: 'router.inputPassword' - } - }, - { - path: 'waterfall', - component: 'views/Components/Waterfall', - name: 'Waterfall', - meta: { - title: 'router.waterfall' - } - } - ] - }, - { - path: '/function', - component: '#', - redirect: '/function/multipleTabs', - name: 'Function', - meta: { - title: 'router.function', - icon: 'ri:function-fill', - alwaysShow: true - }, - children: [ - { - path: 'multipleTabs', - component: 'views/Function/MultipleTabs', - name: 'MultipleTabs', - meta: { - title: 'router.multipleTabs' - } - }, - { - path: 'multipleTabs-demo/:id', - component: 'views/Function/MultipleTabsDemo', - name: 'MultipleTabsDemo', - meta: { - hidden: true, - title: 'router.details', - canTo: true - } - }, - { - path: 'request', - component: 'views/Function/Request', - name: 'Request', - meta: { - title: 'router.request' - } - }, - { - path: 'test', - component: () => 'views/Function/Test', - name: 'Test', - meta: { - title: 'router.permission', - permission: ['add', 'edit', 'delete'] - } - } - ] - }, - { - path: '/hooks', - component: '#', - redirect: '/hooks/useWatermark', - name: 'Hooks', - meta: { - title: 'hooks', - icon: 'ic:outline-webhook', - alwaysShow: true - }, - children: [ - { - path: 'useWatermark', - component: 'views/hooks/useWatermark', - name: 'UseWatermark', - meta: { - title: 'useWatermark' - } - }, - { - path: 'useTagsView', - component: 'views/hooks/useTagsView', - name: 'UseTagsView', - meta: { - title: 'useTagsView' - } - }, - { - path: 'useValidator', - component: 'views/hooks/useValidator', - name: 'UseValidator', - meta: { - title: 'useValidator' - } - }, - { - path: 'useCrudSchemas', - component: 'views/hooks/useCrudSchemas', - name: 'UseCrudSchemas', - meta: { - title: 'useCrudSchemas' - } - }, - { - path: 'useClipboard', - component: 'views/hooks/useClipboard', - name: 'UseClipboard', - meta: { - title: 'useClipboard' - } - }, - { - path: 'useNetwork', - component: 'views/hooks/useNetwork', - name: 'UseNetwork', - meta: { - title: 'useNetwork' - } - } - ] - }, - { - path: '/level', - component: '#', - redirect: '/level/menu1/menu1-1/menu1-1-1', - name: 'Level', - meta: { - title: 'router.level', - icon: 'carbon:skill-level-advanced' - }, - children: [ - { - path: 'menu1', - name: 'Menu1', - component: '##', - redirect: '/level/menu1/menu1-1/menu1-1-1', - meta: { - title: 'router.menu1' - }, - children: [ - { - path: 'menu1-1', - name: 'Menu11', - component: '##', - redirect: '/level/menu1/menu1-1/menu1-1-1', - meta: { - title: 'router.menu11', - alwaysShow: true - }, - children: [ - { - path: 'menu1-1-1', - name: 'Menu111', - component: 'views/Level/Menu111', - meta: { - title: 'router.menu111' - } - } - ] - }, - { - path: 'menu1-2', - name: 'Menu12', - component: 'views/Level/Menu12', - meta: { - title: 'router.menu12' - } - } - ] - }, - { - path: 'menu2', - name: 'Menu2Demo', - component: 'views/Level/Menu2', - meta: { - title: 'router.menu2' - } - } - ] - }, - { - path: '/example', - component: '#', - redirect: '/example/example-dialog', - name: 'Example', - meta: { - title: 'router.example', - icon: 'ep:management', - alwaysShow: true - }, - children: [ - { - path: 'example-dialog', - component: 'views/Example/Dialog/ExampleDialog', - name: 'ExampleDialog', - meta: { - title: 'router.exampleDialog' - } - }, - { - path: 'example-page', - component: 'views/Example/Page/ExamplePage', - name: 'ExamplePage', - meta: { - title: 'router.examplePage' - } - }, - { - path: 'example-add', - component: 'views/Example/Page/ExampleAdd', - name: 'ExampleAdd', - meta: { - title: 'router.exampleAdd', - noTagsView: true, - noCache: true, - hidden: true, - showMainRoute: true, - activeMenu: '/example/example-page' - } - }, - { - path: 'example-edit', - component: 'views/Example/Page/ExampleEdit', - name: 'ExampleEdit', - meta: { - title: 'router.exampleEdit', - noTagsView: true, - noCache: true, - hidden: true, - showMainRoute: true, - activeMenu: '/example/example-page' - } - }, - { - path: 'example-detail', - component: 'views/Example/Page/ExampleDetail', - name: 'ExampleDetail', - meta: { - title: 'router.exampleDetail', - noTagsView: true, - noCache: true, - hidden: true, - showMainRoute: true, - activeMenu: '/example/example-page' - } - } - ] - }, - { - path: '/error', - component: '#', - redirect: '/error/404', - name: 'Error', - meta: { - title: 'router.errorPage', - icon: 'ci:error', - alwaysShow: true - }, - children: [ - { - path: '404-demo', - component: 'views/Error/404', - name: '404Demo', - meta: { - title: '404' - } - }, - { - path: '403-demo', - component: 'views/Error/403', - name: '403Demo', - meta: { - title: '403' - } - }, - { - path: '500-demo', - component: 'views/Error/500', - name: '500Demo', - meta: { - title: '500' - } - } - ] - }, - { - path: '/authorization', - component: '#', - redirect: '/authorization/user', - name: 'Authorization', - meta: { - title: 'router.authorization', - icon: 'eos-icons:role-binding', - alwaysShow: true - }, - children: [ - { - path: 'dict', - component: 'views/Authorization/dict/dict', - name: 'dict', - meta: { - title: 'router.dict' - } - }, - { - path: 'user', - component: 'views/Authorization/User/User', - name: 'User', - meta: { - title: 'router.user' - } - }, - { - path: 'menu', - component: 'views/Authorization/Menu/Menu', - name: 'Menu', - meta: { - title: 'router.menuManagement' - } - }, - { - path: 'role', - component: 'views/Authorization/Role/Role', - name: 'Role', - meta: { - title: 'router.role' - } - } - ] - } -] - -const testList: string[] = [ - '/dashboard', - '/dashboard/analysis', - '/dashboard/workplace', - 'external-link', - 'https://element-plus-admin-doc.cn/', - '/guide', - '/guide/index', - '/components', - '/components/form', - '/components/form/default-form', - '/components/form/use-form', - '/components/form/ref-form', - '/components/table', - '/components/table/default-table', - '/components/table/use-table', - '/components/table/tree-table', - '/components/table/table-image-preview', - '/components/table/ref-table', - '/components/editor-demo', - '/components/editor-demo/editor', - '/components/editor-demo/json-editor', - '/components/search', - '/components/descriptions', - '/components/image-viewer', - '/components/dialog', - '/components/icon', - '/components/iconPicker', - '/components/echart', - '/components/count-to', - '/components/qrcode', - '/components/highlight', - '/components/infotip', - '/components/input-password', - '/components/waterfall', - 'function', - '/function/multiple-tabs', - '/function/multiple-tabs-demo/:id', - '/function/request', - '/function/test', - '/hooks', - '/hooks/useWatermark', - '/hooks/useTagsView', - '/hooks/useValidator', - '/hooks/useCrudSchemas', - '/hooks/useClipboard', - '/hooks/useNetwork', - '/level', - '/level/menu1', - '/level/menu1/menu1-1', - '/level/menu1/menu1-1/menu1-1-1', - '/level/menu1/menu1-2', - '/level/menu2', - '/example', - '/example/example-dialog', - '/example/example-page', - '/example/example-add', - '/example/example-edit', - '/example/example-detail', - '/authorization', - '/authorization/department', - '/authorization/user', - '/authorization/role', - '/authorization/menu', - '/error', - '/error/404-demo', - '/error/403-demo', - '/error/500-demo' -] - -const List: any[] = [] - -const roleNames = [ - '超级管理员', - '管理员', - '普通用户', - '游客', - '12', - '11', - '13', - '14', - '15', - '16', - '17', - '18', - '19', - '20' -] -const menus = [ - [ - { - path: '/dashboard', - component: '#', - redirect: '/dashboard/analysis', - name: 'Dashboard', - status: Mock.Random.integer(0, 1), - id: 1, - meta: { - title: '首页', - icon: 'ant-design:dashboard-filled', - alwaysShow: true - }, - children: [ - { - path: 'analysis', - component: 'views/Dashboard/Analysis', - name: 'Analysis', - status: Mock.Random.integer(0, 1), - id: 2, - meta: { - title: '首页', - noCache: true - } - }, - { - path: 'workplace', - component: 'views/Dashboard/Workplace', - name: 'Workplace', - status: Mock.Random.integer(0, 1), - id: 3, - meta: { - title: '工作台', - noCache: true - } - } - ] - }, - { - path: '/external-link', - component: '#', - meta: { - title: '文档', - icon: 'clarity:document-solid' - }, - name: 'ExternalLink', - status: Mock.Random.integer(0, 1), - id: 4, - children: [ - { - path: 'https://element-plus-admin-doc.cn/', - name: 'DocumentLink', - status: Mock.Random.integer(0, 1), - id: 5, - meta: { - title: '文档' - } - } - ] - }, - { - path: '/level', - component: '#', - redirect: '/level/menu1/menu1-1/menu1-1-1', - name: 'Level', - status: Mock.Random.integer(0, 1), - id: 6, - meta: { - title: '菜单', - icon: 'carbon:skill-level-advanced' - }, - children: [ - { - path: 'menu1', - name: 'Menu1', - component: '##', - status: Mock.Random.integer(0, 1), - id: 7, - redirect: '/level/menu1/menu1-1/menu1-1-1', - meta: { - title: '菜单1' - }, - children: [ - { - path: 'menu1-1', - name: 'Menu11', - component: '##', - status: Mock.Random.integer(0, 1), - id: 8, - redirect: '/level/menu1/menu1-1/menu1-1-1', - meta: { - title: '菜单1-1', - alwaysShow: true - }, - children: [ - { - path: 'menu1-1-1', - name: 'Menu111', - component: 'views/Level/Menu111', - status: Mock.Random.integer(0, 1), - id: 9, - permission: ['edit', 'add', 'delete'], - meta: { - title: '菜单1-1-1', - permission: ['edit', 'add', 'delete'] - } - } - ] - }, - { - path: 'menu1-2', - name: 'Menu12', - component: 'views/Level/Menu12', - status: Mock.Random.integer(0, 1), - id: 10, - permission: ['edit', 'add', 'delete'], - meta: { - title: '菜单1-2', - permission: ['edit', 'add', 'delete'] - } - } - ] - }, - { - path: 'menu2', - name: 'Menu2Demo', - component: 'views/Level/Menu2', - status: Mock.Random.integer(0, 1), - id: 11, - permission: ['edit', 'add', 'delete'], - meta: { - title: '菜单2', - permission: ['edit', 'add', 'delete'] - } - } - ] - }, - { - path: '/example', - component: '#', - redirect: '/example/example-dialog', - name: 'Example', - status: Mock.Random.integer(0, 1), - id: 12, - meta: { - title: '综合示例', - icon: 'ep:management', - alwaysShow: true - }, - children: [ - { - path: 'example-dialog', - component: 'views/Example/Dialog/ExampleDialog', - name: 'ExampleDialog', - status: Mock.Random.integer(0, 1), - id: 13, - permission: ['edit', 'add', 'delete'], - meta: { - title: '综合示例-弹窗', - permission: ['edit', 'add', 'delete'] - } - }, - { - path: 'example-page', - component: 'views/Example/Page/ExamplePage', - name: 'ExamplePage', - status: Mock.Random.integer(0, 1), - id: 14, - permission: ['edit', 'add', 'delete'], - meta: { - title: '综合示例-页面', - permission: ['edit', 'add', 'delete'] - } - }, - { - path: 'example-add', - component: 'views/Example/Page/ExampleAdd', - name: 'ExampleAdd', - status: Mock.Random.integer(0, 1), - id: 15, - permission: ['edit', 'add', 'delete'], - meta: { - title: '综合示例-新增', - noTagsView: true, - noCache: true, - hidden: true, - showMainRoute: true, - activeMenu: '/example/example-page', - permission: ['edit', 'add', 'delete'] - } - }, - { - path: 'example-edit', - component: 'views/Example/Page/ExampleEdit', - name: 'ExampleEdit', - status: Mock.Random.integer(0, 1), - id: 16, - permission: ['edit', 'add', 'delete'], - meta: { - title: '综合示例-编辑', - noTagsView: true, - noCache: true, - hidden: true, - showMainRoute: true, - activeMenu: '/example/example-page', - permission: ['edit', 'add', 'delete'] - } - }, - { - path: 'example-detail', - component: 'views/Example/Page/ExampleDetail', - name: 'ExampleDetail', - status: Mock.Random.integer(0, 1), - id: 17, - permission: ['edit', 'add', 'delete'], - meta: { - title: '综合示例-详情', - noTagsView: true, - noCache: true, - hidden: true, - showMainRoute: true, - activeMenu: '/example/example-page', - permission: ['edit', 'add', 'delete'] - } - } - ] - } - ], - [ - { - path: '/dashboard', - component: '#', - redirect: '/dashboard/analysis', - name: 'Dashboard', - status: Mock.Random.integer(0, 1), - id: 1, - meta: { - title: '首页', - icon: 'ant-design:dashboard-filled', - alwaysShow: true - }, - children: [ - { - path: 'analysis', - component: 'views/Dashboard/Analysis', - name: 'Analysis', - status: Mock.Random.integer(0, 1), - id: 2, - meta: { - title: '分析页', - noCache: true - } - }, - { - path: 'workplace', - component: 'views/Dashboard/Workplace', - name: 'Workplace', - status: Mock.Random.integer(0, 1), - id: 3, - meta: { - title: '工作台', - noCache: true - } - } - ] - } - ], - [ - { - path: '/external-link', - component: '#', - meta: { - title: '文档', - icon: 'clarity:document-solid' - }, - name: 'ExternalLink', - status: Mock.Random.integer(0, 1), - id: 4, - children: [ - { - path: 'https://element-plus-admin-doc.cn/', - name: 'DocumentLink', - status: Mock.Random.integer(0, 1), - id: 5, - meta: { - title: '文档' - } - } - ] - }, - { - path: '/level', - component: '#', - redirect: '/level/menu1/menu1-1/menu1-1-1', - name: 'Level', - status: Mock.Random.integer(0, 1), - id: 6, - meta: { - title: '菜单', - icon: 'carbon:skill-level-advanced' - }, - children: [ - { - path: 'menu1', - name: 'Menu1', - component: '##', - status: Mock.Random.integer(0, 1), - id: 7, - redirect: '/level/menu1/menu1-1/menu1-1-1', - meta: { - title: '菜单1' - }, - children: [ - { - path: 'menu1-1', - name: 'Menu11', - component: '##', - status: Mock.Random.integer(0, 1), - id: 8, - redirect: '/level/menu1/menu1-1/menu1-1-1', - meta: { - title: '菜单1-1', - alwaysShow: true - }, - children: [ - { - path: 'menu1-1-1', - name: 'Menu111', - component: 'views/Level/Menu111', - status: Mock.Random.integer(0, 1), - id: 9, - permission: ['edit', 'add', 'delete'], - meta: { - title: '菜单1-1-1', - permission: ['edit', 'add', 'delete'] - } - } - ] - }, - { - path: 'menu1-2', - name: 'Menu12', - component: 'views/Level/Menu12', - status: Mock.Random.integer(0, 1), - id: 10, - permission: ['edit', 'add', 'delete'], - meta: { - title: '菜单1-2', - permission: ['edit', 'add', 'delete'] - } - } - ] - }, - { - path: 'menu2', - name: 'Menu2Demo', - component: 'views/Level/Menu2', - status: Mock.Random.integer(0, 1), - id: 11, - permission: ['edit', 'add', 'delete'], - meta: { - title: '菜单2', - permission: ['edit', 'add', 'delete'] - } - } - ] - } - ], - [ - { - path: '/example', - component: '#', - redirect: '/example/example-dialog', - name: 'Example', - status: Mock.Random.integer(0, 1), - id: 12, - meta: { - title: '综合示例', - icon: 'ep:management', - alwaysShow: true - }, - children: [ - { - path: 'example-detail', - component: 'views/Example/Page/ExampleDetail', - name: 'ExampleDetail', - status: Mock.Random.integer(0, 1), - id: 17, - permission: ['edit', 'add', 'delete'], - meta: { - title: '综合示例-详情', - noTagsView: true, - noCache: true, - hidden: true, - showMainRoute: true, - activeMenu: '/example/example-page', - permission: ['edit', 'add', 'delete'] - } - } - ] - } - ] -] - -for (let i = 0; i < roleNames.length; i++) { - List.push( - Mock.mock({ - id: toAnyString(), - // timestamp: +Mock.Random.date('T'), - roleName: roleNames[i], - role: '@first', - status: Mock.Random.integer(0, 1), - createTime: '@datetime', - remark: '@cword(10, 15)', - menu: menus[i] - }) - ) -} - -export default [ - // 列表接口 - { - url: '/role/list', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: adminList - } - } - }, - { - url: '/role/table', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: { - list: List, - total: List.length - } - } - } - }, - // 列表接口 - { - url: '/role/list2', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: testList - } - } - }, - { - url: '/role/table', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: { - list: List, - total: List.length - } - } - } - } -] as MockMethod[] diff --git a/mock/table/index.ts b/mock/table/index.ts deleted file mode 100644 index cbe0541..0000000 --- a/mock/table/index.ts +++ /dev/null @@ -1,256 +0,0 @@ -import config from '@/config/axios/config' -import { MockMethod } from 'vite-plugin-mock' -import { toAnyString } from '@/utils' -import Mock from 'mockjs' - -const { code } = config - -const timeout = 1000 - -const count = 100 - -const baseContent = - '

I am testing data, I am testing data.

' - -interface ListProps { - id: string - author: string - title: string - content: string - importance: number - display_time: string - pageviews: number - image_uri: string -} - -interface TreeListProps { - id: string - author: string - title: string - content: string - importance: number - display_time: string - pageviews: number - children: TreeListProps[] -} - -let List: ListProps[] = [] - -for (let i = 0; i < count; i++) { - List.push( - Mock.mock({ - id: toAnyString(), - // timestamp: +Mock.Random.date('T'), - author: '@first', - title: '@title(5, 10)', - content: baseContent, - importance: '@integer(1, 3)', - display_time: '@datetime', - pageviews: '@integer(100, 500)', - image_uri: Mock.Random.image('@integer(100, 500)x@integer(100, 500)') - }) - ) -} - -const treeList: TreeListProps[] = [] - -for (let i = 0; i < count; i++) { - treeList.push( - Mock.mock({ - id: toAnyString(), - // timestamp: +Mock.Random.date('T'), - author: '@first', - title: '@title(5, 10)', - content: baseContent, - importance: '@integer(1, 3)', - display_time: '@datetime', - pageviews: '@integer(300, 5000)', - children: [ - { - id: toAnyString(), - // timestamp: +Mock.Random.date('T'), - author: '@first', - title: '@title(5, 10)', - content: baseContent, - importance: '@integer(1, 3)', - display_time: '@datetime', - pageviews: '@integer(300, 5000)', - children: [ - { - id: toAnyString(), - // timestamp: +Mock.Random.date('T'), - author: '@first', - title: '@title(5, 10)', - content: baseContent, - importance: '@integer(1, 3)', - display_time: '@datetime', - pageviews: '@integer(300, 5000)' - }, - { - id: toAnyString(), - // timestamp: +Mock.Random.date('T'), - author: '@first', - title: '@title(5, 10)', - content: baseContent, - importance: '@integer(1, 3)', - display_time: '@datetime', - pageviews: '@integer(300, 5000)' - } - ] - }, - { - id: toAnyString(), - // timestamp: +Mock.Random.date('T'), - author: '@first', - title: '@title(5, 10)', - content: baseContent, - importance: '@integer(1, 3)', - display_time: '@datetime', - pageviews: '@integer(300, 5000)' - }, - { - id: toAnyString(), - // timestamp: +Mock.Random.date('T'), - author: '@first', - title: '@title(5, 10)', - content: baseContent, - importance: '@integer(1, 3)', - display_time: '@datetime', - pageviews: '@integer(300, 5000)' - }, - { - id: toAnyString(), - // timestamp: +Mock.Random.date('T'), - author: '@first', - title: '@title(5, 10)', - content: baseContent, - importance: '@integer(1, 3)', - display_time: '@datetime', - pageviews: '@integer(300, 5000)' - } - ] - // image_uri - }) - ) -} - -export default [ - // 树形列表接口 - { - url: '/example/treeList', - method: 'get', - timeout, - response: ({ query }) => { - const { title, pageIndex, pageSize } = query - const mockList = treeList.filter((item) => { - if (title && item.title.indexOf(title) < 0) return false - return true - }) - const pageList = mockList.filter( - (_, index) => index < pageSize * pageIndex && index >= pageSize * (pageIndex - 1) - ) - return { - code: code, - data: { - total: mockList.length, - list: pageList - } - } - } - }, - // 列表接口 - { - url: '/example/list', - method: 'get', - timeout, - response: ({ query }) => { - const { title, pageIndex, pageSize } = query - const mockList = List.filter((item) => { - if (title && item.title.indexOf(title) < 0) return false - return true - }) - const pageList = mockList.filter( - (_, index) => index < pageSize * pageIndex && index >= pageSize * (pageIndex - 1) - ) - return { - code: code, - data: { - total: mockList.length, - list: pageList - } - } - } - }, - // 保存接口 - { - url: '/example/save', - method: 'post', - timeout, - response: ({ body }) => { - if (!body.id) { - List = [ - Object.assign(body, { - id: toAnyString() - }) - ].concat(List) - return { - code: code, - data: 'success' - } - } else { - List.map((item) => { - if (item.id === body.id) { - for (const key in item) { - item[key] = body[key] - } - } - }) - return { - code: code, - data: 'success' - } - } - } - }, - // 详情接口 - { - url: '/example/detail', - method: 'get', - response: ({ query }) => { - const { id } = query - for (const example of List) { - if (example.id === id) { - return { - code: code, - data: example - } - } - } - } - }, - // 删除接口 - { - url: '/example/delete', - method: 'post', - response: ({ body }) => { - const ids = body.ids - if (!ids) { - return { - code: 500, - message: '请选择需要删除的数据' - } - } else { - let i = List.length - while (i--) { - if (ids.indexOf(List[i].id) !== -1) { - List.splice(i, 1) - } - } - return { - code: code, - data: 'success' - } - } - } - } -] as MockMethod[] diff --git a/mock/user/index.ts b/mock/user/index.ts deleted file mode 100644 index 8e5ea49..0000000 --- a/mock/user/index.ts +++ /dev/null @@ -1,135 +0,0 @@ -import config from '@/config/axios/config' -import { MockMethod } from 'vite-plugin-mock' - -const { code } = config - -const timeout = 1000 - -const List: { - username: string - password: string - role: string - roleId: string - permissions: string | string[] -}[] = [ - { - username: 'admin', - password: 'o9%2B2oAvFf9DHDj1yBTJHhw%3D%3D', - role: 'admin', - roleId: '1', - permissions: ['*.*.*'] - }, - { - username: 'test', - password: 'test', - role: 'test', - roleId: '2', - permissions: ['example:dialog:create', 'example:dialog:delete'] - } -] - -export default [ - // 列表接口 - { - url: '/user/list', - method: 'get', - response: ({ query }) => { - const { username, pageIndex, pageSize } = query - - const mockList = List.filter((item) => { - if (username && item.username.indexOf(username) < 0) return false - return true - }) - const pageList = mockList.filter( - (_, index) => index < pageSize * pageIndex && index >= pageSize * (pageIndex - 1) - ) - - return { - code: code, - data: { - total: mockList.length, - list: pageList - } - } - } - }, - // 登录接口 - { - url: '/user/login', - method: 'post', - timeout, - response: ({ body }) => { - const data = body - let hasUser = false - for (const user of List) { - if (user.username === data.username && user.password === data.password) { - hasUser = true - return { - code: code, - data: user - } - } - } - if (!hasUser) { - return { - code: 500, - message: '账号或密码错误' - } - } - } - }, - { - url: '/mobile/login', - method: 'post', - timeout, - response: ({ body }) => { - debugger - const data = body - let hasUser = false - for (const user of List) { - if (user.username === data.username && user.password === data.password) { - hasUser = true - return { - code: code, - data: user - } - } - } - return { - code: code, - data: { - code: 1 - } - } - if (!hasUser) { - return { - code: 500, - message: '账号或密码错误' - } - } - } - }, - // 退出接口 - { - url: '/user/loginOut', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: null - } - } - }, - { - url: '/mobile/logout', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: null - } - } - } -] as MockMethod[] diff --git a/mock/workplace/index.ts b/mock/workplace/index.ts deleted file mode 100644 index b6c854d..0000000 --- a/mock/workplace/index.ts +++ /dev/null @@ -1,172 +0,0 @@ -import config from '@/config/axios/config' -import { MockMethod } from 'vite-plugin-mock' - -const { code } = config - -const timeout = 1000 - -export default [ - // 获取统计 - { - url: '/workplace/total', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: { - project: 40, - access: 2340, - todo: 10 - } - } - } - }, - // 获取项目 - { - url: '/workplace/project', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: [ - { - name: 'Github', - icon: 'akar-icons:github-fill', - message: 'workplace.introduction', - personal: 'Archer', - time: new Date() - }, - { - name: 'Vue', - icon: 'logos:vue', - message: 'workplace.introduction', - personal: 'Archer', - time: new Date() - }, - { - name: 'Angular', - icon: 'logos:angular-icon', - message: 'workplace.introduction', - personal: 'Archer', - time: new Date() - }, - { - name: 'React', - icon: 'logos:react', - message: 'workplace.introduction', - personal: 'Archer', - time: new Date() - }, - { - name: 'Webpack', - icon: 'logos:webpack', - message: 'workplace.introduction', - personal: 'Archer', - time: new Date() - }, - { - name: 'Vite', - icon: 'vscode-icons:file-type-vite', - message: 'workplace.introduction', - personal: 'Archer', - time: new Date() - } - ] - } - } - }, - // 获取动态 - { - url: '/workplace/dynamic', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: [ - { - keys: ['workplace.push', 'Github'], - time: new Date() - }, - { - keys: ['workplace.push', 'Github'], - time: new Date() - }, - { - keys: ['workplace.push', 'Github'], - time: new Date() - }, - { - keys: ['workplace.push', 'Github'], - time: new Date() - }, - { - keys: ['workplace.push', 'Github'], - time: new Date() - }, - { - keys: ['workplace.push', 'Github'], - time: new Date() - } - ] - } - } - }, - // 获取团队信息 - { - url: '/workplace/team', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: [ - { - name: 'Github', - icon: 'akar-icons:github-fill' - }, - { - name: 'Vue', - icon: 'logos:vue' - }, - { - name: 'Angular', - icon: 'logos:angular-icon' - }, - { - name: 'React', - icon: 'logos:react' - }, - { - name: 'Webpack', - icon: 'logos:webpack' - }, - { - name: 'Vite', - icon: 'vscode-icons:file-type-vite' - } - ] - } - } - }, - // 获取指数 - { - url: '/workplace/radar', - method: 'get', - timeout, - response: () => { - return { - code: code, - data: [ - { name: 'workplace.quote', max: 65, personal: 42, team: 50 }, - { name: 'workplace.contribution', max: 160, personal: 30, team: 140 }, - { name: 'workplace.hot', max: 300, personal: 20, team: 28 }, - { name: 'workplace.yield', max: 130, personal: 35, team: 35 }, - { name: 'workplace.follow', max: 100, personal: 80, team: 90 } - ] - } - } - } -] as MockMethod[] diff --git a/package.json b/package.json index 9535e14..9995e36 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,9 @@ "i": "pnpm install", "dev": "vite --mode base", "ts:check": "vue-tsc --noEmit --skipLibCheck", - "build:pro": "vite build --mode pro", + "build:pro": "node --max-old-space-size=4096 ./node_modules/vite/bin/vite.js build --mode pro", "build:gitee": "vite build --mode gitee", - "build:dev": "vite build --mode dev", + "build:dev": "node --max-old-space-size=4096 ./node_modules/vite/bin/vite.js build --mode dev", "build:test": "npm run ts:check && vite build --mode test", "build:vite": "rimraf dist-moudle && vite build -c scripts/build/vite.config.ts --mode pro", "serve:pro": "vite preview --mode pro", diff --git a/src/components/Upload/src/Upload.vue b/src/components/Upload/src/Upload.vue index 74d5ba7..3a3cb92 100644 --- a/src/components/Upload/src/Upload.vue +++ b/src/components/Upload/src/Upload.vue @@ -49,4 +49,11 @@ onMounted(() => { margin-left: 12px; margin-right: 12px; } +.el-upload{ + --un-icon:unset !important; + -webkit-mask:unset !important; + background-color:unset !important; + width:unset !important; + height:unset !important; +} diff --git a/src/config/axios/config.ts b/src/config/axios/config.ts index f08d694..5804feb 100644 --- a/src/config/axios/config.ts +++ b/src/config/axios/config.ts @@ -18,7 +18,7 @@ const config: AxiosConfig = { base: '/api', // 打包生产环境接口前缀 - dev: '/pro', + dev: '/dev', // dev: '/ordb', // 打包生产环境接口前缀 diff --git a/src/pageComponent/CaseManageTabList/CaseManageInfo.vue b/src/pageComponent/CaseManageTabList/CaseManageInfo.vue deleted file mode 100644 index 87a05cd..0000000 --- a/src/pageComponent/CaseManageTabList/CaseManageInfo.vue +++ /dev/null @@ -1,223 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/pageComponent/CaseManageTabList/index.ts b/src/pageComponent/CaseManageTabList/index.ts deleted file mode 100644 index 4bd0918..0000000 --- a/src/pageComponent/CaseManageTabList/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import CaseManageInfo from './CaseManageInfo.vue' - -export { CaseManageInfo } \ No newline at end of file diff --git a/src/pageComponent/CustomerRiskRate/customerRateInfo/customerRateInfo.vue b/src/pageComponent/CustomerRiskRate/customerRateInfo/customerRateInfo.vue deleted file mode 100644 index cf6eed6..0000000 --- a/src/pageComponent/CustomerRiskRate/customerRateInfo/customerRateInfo.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/pageComponent/CustomerRiskRate/customerRateInfo/echarts-data.ts b/src/pageComponent/CustomerRiskRate/customerRateInfo/echarts-data.ts deleted file mode 100644 index 100bd25..0000000 --- a/src/pageComponent/CustomerRiskRate/customerRateInfo/echarts-data.ts +++ /dev/null @@ -1,290 +0,0 @@ -import { EChartsOption } from 'echarts'; -import { useI18n } from '@/hooks/web/useI18n'; -import { random } from 'lodash-es'; - -const { t } = useI18n(); -// -export const lineOptions: EChartsOption = { - title: { - text: t('analysis.monthlySales'), - left: 'center', - }, - xAxis: { - data: [ - t('analysis.january'), - t('analysis.february'), - t('analysis.march'), - t('analysis.april'), - t('analysis.may'), - t('analysis.june'), - t('analysis.july'), - t('analysis.august'), - t('analysis.september'), - t('analysis.october'), - t('analysis.november'), - t('analysis.december'), - ], - boundaryGap: false, - axisTick: { - show: false, - }, - }, - grid: { - left: 20, - right: 20, - bottom: 20, - top: 80, - containLabel: true, - }, - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'cross', - }, - padding: [5, 10], - }, - yAxis: { - axisTick: { - show: false, - }, - }, - legend: { - data: [t('analysis.estimate'), t('analysis.actual')], - top: 50, - }, - series: [ - { - name: t('analysis.estimate'), - smooth: true, - type: 'line', - data: [100, 120, 161, 134, 105, 160, 165, 114, 163, 185, 118, 123], - animationDuration: 2800, - animationEasing: 'cubicInOut', - }, - { - name: t('analysis.actual'), - smooth: true, - type: 'line', - itemStyle: {}, - data: [120, 82, 91, 154, 162, 140, 145, 250, 134, 56, 99, 123], - animationDuration: 2800, - animationEasing: 'quadraticOut', - }, - ], -}; -//饼图 -export const pieOptions: EChartsOption = { - title: { - text: "分值分布", - left: 'center', - }, - tooltip: { - trigger: 'item', - formatter: '{a}
{b} : {c} ({d}%)', - }, - legend: { - orient: 'vertical', - bottom: 'bottom', - data: ["地域特性(权重20)", "职业特性(权重15)","客户特性(权重40)","业务特征(权重25)"], - }, - series: [ - { - name:"分值分布", - type: 'pie', - radius: '55%', - center: ['50%', '60%'], - data: [ - { value: 335, name: "地域特性(权重20)" }, - { value: 310, name: "职业特性(权重15)" }, - { value: 234, name: "客户特性(权重40)" }, - { value: 135, name: "业务特征(权重25)" }, - ], - }, - ], -}; -//柱状图 -export const barOptions: EChartsOption = { - title: { - text: "地域特性(权重20)", - left: 'center', - }, - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'shadow', - }, - }, - grid: { - left: 50, - right: 20, - bottom: 80, - }, - xAxis: { - type: 'category', - data: ["地址"], - axisLabel:{ - rotate: 45, - }, - axisTick: { - alignWithLabel: true, - }, - }, - yAxis: { - type: 'value', - }, - series: [ - { - name: "分数", - data: [12], - type: 'bar', - }, - ], -}; - -export const radarOption: EChartsOption = { - legend: { - data: [t('workplace.personal'), t('workplace.team')], - }, - radar: { - // shape: 'circle', - indicator: [ - { name: t('workplace.quote'), max: 65 }, - { name: t('workplace.contribution'), max: 160 }, - { name: t('workplace.hot'), max: 300 }, - { name: t('workplace.yield'), max: 130 }, - { name: t('workplace.follow'), max: 100 }, - ], - }, - series: [ - { - name: `xxx${t('workplace.index')}`, - type: 'radar', - data: [ - { - value: [42, 30, 20, 35, 80], - name: t('workplace.personal'), - }, - { - value: [50, 140, 290, 100, 90], - name: t('workplace.team'), - }, - ], - }, - ], -}; - -export const wordOptions = { - series: [ - { - type: 'wordCloud', - gridSize: 2, - sizeRange: [12, 50], - rotationRange: [-90, 90], - shape: 'pentagon', - width: 600, - height: 400, - drawOutOfBound: true, - textStyle: { - color: function () { - return 'rgb(' + [Math.round(Math.random() * 160), Math.round(Math.random() * 160), Math.round(Math.random() * 160)].join(',') + ')'; - }, - }, - emphasis: { - textStyle: { - shadowBlur: 10, - shadowColor: '#333', - }, - }, - data: [ - { - name: 'Sam S Club', - value: 10000, - textStyle: { - color: 'black', - }, - emphasis: { - textStyle: { - color: 'red', - }, - }, - }, - { - name: 'Macys', - value: 6181, - }, - { - name: 'Amy Schumer', - value: 4386, - }, - { - name: 'Jurassic World', - value: 4055, - }, - { - name: 'Charter Communications', - value: 2467, - }, - { - name: 'Chick Fil A', - value: 2244, - }, - { - name: 'Planet Fitness', - value: 1898, - }, - { - name: 'Pitch Perfect', - value: 1484, - }, - { - name: 'Express', - value: 1112, - }, - { - name: 'Home', - value: 965, - }, - { - name: 'Johnny Depp', - value: 847, - }, - { - name: 'Lena Dunham', - value: 582, - }, - { - name: 'Lewis Hamilton', - value: 555, - }, - { - name: 'KXAN', - value: 550, - }, - { - name: 'Mary Ellen Mark', - value: 462, - }, - { - name: 'Farrah Abraham', - value: 366, - }, - { - name: 'Rita Ora', - value: 360, - }, - { - name: 'Serena Williams', - value: 282, - }, - { - name: 'NCAA baseball tournament', - value: 273, - }, - { - name: 'Point Break', - value: 265, - }, - ], - }, - ], -}; diff --git a/src/pageComponent/CustomerRiskRate/customerRateInfo/index.ts b/src/pageComponent/CustomerRiskRate/customerRateInfo/index.ts deleted file mode 100644 index 6c7bdfc..0000000 --- a/src/pageComponent/CustomerRiskRate/customerRateInfo/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import customerRateInfo from "./customerRateInfo.vue" - -export {customerRateInfo} \ No newline at end of file diff --git a/src/pageComponent/CustomerRiskRate/scoreAdjustment/index.ts b/src/pageComponent/CustomerRiskRate/scoreAdjustment/index.ts deleted file mode 100644 index 5ae1d20..0000000 --- a/src/pageComponent/CustomerRiskRate/scoreAdjustment/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import scoreAdjustment from './scoreAdjustment.vue' - -export { scoreAdjustment } \ No newline at end of file diff --git a/src/pageComponent/CustomerRiskRate/scoreAdjustment/scoreAdjustment.vue b/src/pageComponent/CustomerRiskRate/scoreAdjustment/scoreAdjustment.vue deleted file mode 100644 index f143fd6..0000000 --- a/src/pageComponent/CustomerRiskRate/scoreAdjustment/scoreAdjustment.vue +++ /dev/null @@ -1,435 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/pageComponent/LargScaleOriginTable/LargScaleOriginTable.vue b/src/pageComponent/LargScaleOriginTable/LargScaleOriginTable.vue deleted file mode 100644 index 378be61..0000000 --- a/src/pageComponent/LargScaleOriginTable/LargScaleOriginTable.vue +++ /dev/null @@ -1,138 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pageComponent/LargScaleOriginTable/index.ts b/src/pageComponent/LargScaleOriginTable/index.ts deleted file mode 100644 index 8940c09..0000000 --- a/src/pageComponent/LargScaleOriginTable/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import LargScaleOriginTable from './LargScaleOriginTable.vue' - -export { LargScaleOriginTable } \ No newline at end of file diff --git a/src/pageComponent/customerInfoTable/customerInfoTable.vue b/src/pageComponent/customerInfoTable/customerInfoTable.vue deleted file mode 100644 index 6c35e3c..0000000 --- a/src/pageComponent/customerInfoTable/customerInfoTable.vue +++ /dev/null @@ -1,52 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pageComponent/customerInfoTable/index.ts b/src/pageComponent/customerInfoTable/index.ts deleted file mode 100644 index 86c3574..0000000 --- a/src/pageComponent/customerInfoTable/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import customerInfoTable from './customerInfoTable.vue' - -export { customerInfoTable } \ No newline at end of file diff --git a/src/pageComponent/transcationInfoTable/identificationTable.vue b/src/pageComponent/transcationInfoTable/identificationTable.vue deleted file mode 100644 index 7b10377..0000000 --- a/src/pageComponent/transcationInfoTable/identificationTable.vue +++ /dev/null @@ -1,231 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/pageComponent/transcationInfoTable/index.ts b/src/pageComponent/transcationInfoTable/index.ts deleted file mode 100644 index 456c907..0000000 --- a/src/pageComponent/transcationInfoTable/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import identificationTable from './identificationTable.vue' - -export { identificationTable } \ No newline at end of file diff --git a/src/router/index-srdb.ts b/src/router/index-srdb.ts deleted file mode 100644 index 58f6c04..0000000 --- a/src/router/index-srdb.ts +++ /dev/null @@ -1,571 +0,0 @@ -import { createRouter, createWebHashHistory } from 'vue-router' -import type { RouteRecordRaw } from 'vue-router' -import type { App } from 'vue' -import { Layout } from '@/utils/routerHelper' -import { useI18n } from '@/hooks/web/useI18n' - -const { t } = useI18n() - -export const constantRouterMap: AppRouteRecordRaw[] = [ - { - path: '/', - component: Layout, - redirect: '/dashboard/analysis', - name: 'Root', - meta: { - hidden: true - } - }, - { - path: '/dashboard', - component: Layout, - redirect: '/dashboard/analysis', - name: 'Dashboard', - meta: { - title: '首页', - icon: 'ant-design:dashboard-filled', - alwaysShow: true - }, - children: [ - { - path: 'analysis', - component: () => import('@/views/Dashboard/Analysis.vue'), - name: 'Analysis', - meta: { - title: '分析页', - noCache: true, - affix: true - } - } - ] - }, - { - path: '/redirect', - component: Layout, - name: 'Redirect', - children: [ - { - path: '/redirect/:path(.*)', - name: 'Redirect', - component: () => import('@/views/Redirect/Redirect.vue'), - meta: {} - } - ], - meta: { - hidden: true, - noTagsView: true - } - }, - { - path: '/login', - component: () => import('@/views/Login/Login.vue'), - name: 'Login', - meta: { - hidden: true, - title: t('router.login'), - noTagsView: true - } - }, - { - path: '/404', - component: () => import('@/views/Error/404.vue'), - name: 'NoFind', - meta: { - hidden: true, - title: '404', - noTagsView: true - } - } -] - -export const asyncRouterMap: AppRouteRecordRaw[] = [ - { - path: '/dashboard', - component: Layout, - redirect: '/dashboard/analysis', - name: 'Dashboard', - meta: { - title: t('router.dashboard'), - icon: 'ant-design:dashboard-filled', - alwaysShow: true - }, - children: [ - { - path: 'analysis', - component: () => import('@/views/Dashboard/Analysis.vue'), - name: 'Analysis', - meta: { - title: t('router.analysis'), - noCache: true, - affix: true - } - } - ] - }, - { - path: '/data-manage', - component: Layout, - redirect: '/data-manage/data-source-manage', - name: 'DataManage', - menuId: 'DataManage', - meta: { - title: '数据管理', - icon: 'tdesign:data-base', - alwaysShow: true - }, - children: [ - { - path: 'data-model-manage', - component: () => import('@/views/DataManage/DataModelManage/DataModelManage.vue'), - name: 'DataModelManage', - menuId: 'DataManage/DataModelManage', - meta: { - title: '数据模型管理' - } - }, - { - path: 'data-set-manage', - component: () => import('@/views/DataManage/DataSetManage/DataSetManage.vue'), - name: 'DataSetManage', - menuId: 'DataManage/DataSetManage', - meta: { - title: '数据集管理' - } - } - ] - }, - { - path: '/data-review', - component: Layout, - redirect: '/data-review/data-review-detail-rule', - name: 'DataReview', - menuId: 'DataReview', - meta: { - title: t('router.dataReview'), - icon: 'tdesign:data-checked', - alwaysShow: true - }, - children: [ - { - path: 'data-review-detail-rule', - component: () => import('@/views/srdb/SrdbKxqRule/SrdbKxqRule.vue'), - name: 'SrdbKxqRule', - menuId: 'DataReview/SrdbKxqRule', - meta: { - title: '规则配置' - } - }, - { - path: 'data-review-detail-rule', - component: () => import('@/views/DataReview/DataReviewDetailRule/DataReviewDetailRule.vue'), - name: 'DataReviewDetailRule', - menuId: 'DataReview/DataReviewDetailRule', - meta: { - title: '明细规则配置' - } - }, - { - path: 'data-review-detail-rule-config/:id', - component: () => - import('@/views/DataReview/DataReviewDetailRuleConfig/DataReviewDetailRuleConfig.vue'), - name: 'DataReviewDetailRuleConfig', - menuId: 'DataReview/DataReviewDetailRuleConfig', - meta: { - hidden: true, - title: '规则配置', - canTo: true, - activeMenu: '/data-review/data-review-detail-rule' - } - }, - { - path: 'data-review-detail', - component: () => import('@/views/DataReview/DataReviewDetail.vue'), - name: 'DataReviewDetail', - menuId: 'DataReview/DataReviewDetail', - meta: { - title: t('router.dataReviewDetail') - } - }, - { - path: 'data-review-detail-result', - component: () => import('@/views/DataReview/DataReviewDetailResult.vue'), - name: 'DataReviewDetailResult', - menuId: 'DataReview/DataReviewDetailResult', - meta: { - title: t('router.dataReviewDetailResult') - } - } - ] - }, - { - path: '/report-manage', - component: Layout, - redirect: '/report-manage/report-build-file', - name: 'ReportManage', - menuId: 'ReportManage', - meta: { - title: t('router.ReportManage'), - icon: 'ep:document', - alwaysShow: true - }, - children: [ - { - path: 'report-build-file', - component: () => import('@/views/Template/ReportBuildFile/ReportBuildFile.vue'), - name: 'ReportBuildFile', - menuId: 'ReportManage/ReportBuildFile', - meta: { - title: t('router.ReportBuildFile') - } - }, - { - path: 'report-file-push', - component: () => import('@/views/Template/ReportFIlePush/ReportFilePush.vue'), - name: 'ReportFilePush', - menuId: 'ReportManage/ReportFilePush', - meta: { - title: t('router.ReportFilePush') - } - }, - { - path: 'report-temp-config', - component: () => import('@/views/Template/ReportTempConfig/ReportTempConfig.vue'), - name: 'ReportTempConfig', - menuId: 'ReportManage/ReportTempConfig', - meta: { - title: t('router.ReportTempConfig') - } - }, - { - path: 'temp-submit-manage', - component: () => import('@/views/Template/TempSubmitManage/TempSubmitManage.vue'), - name: 'TempSubmitManage', - menuId: 'ReportManage/TempSubmitManage', - meta: { - title: t('router.TempSubmitManage') - } - } - ] - }, - { - path: '/trusted-zone', - component: Layout, - redirect: '/trusted-zone/database-table-query', - name: 'trustedZone', - menuId: 'trustedZone', - meta: { - title: '可信区管理', - icon: 'tdesign:view-module', - alwaysShow: true - }, - children: [ - { - path: 'database-table-query', - component: () => - import('@/views/TrustedZoneManage/DatabaseTableQuery/DatabaseTableQuery.vue'), - name: 'DatabaseTableQuery', - menuId: 'trustedZone/DatabaseTableQuery', - meta: { - title: '库表信息查询' - } - }, - { - path: 'field-info-query', - component: () => import('@/views/TrustedZoneManage/FieldInfoQuery/FieldInfoQuery.vue'), - name: 'FieldInfoQuery', - menuId: 'trustedZone/FieldInfoQuery', - meta: { - title: '字段信息查询' - } - }, - { - path: 'ledger-info-query', - component: () => import('@/views/TrustedZoneManage/LedgerInfoQuery/LedgerInfoQuery.vue'), - name: 'LedgerInfoQuery', - menuId: 'trustedZone/LedgerInfoQuery', - meta: { - title: '台账信息查询' - } - }, - { - path: 'action-log-query', - component: () => import('@/views/TrustedZoneManage/ActionLogQuery/ActionLogQuery.vue'), - name: 'ActionLogQuery', - menuId: 'trustedZone/ActionLogQuery', - meta: { - title: '操作日志查询' - } - } - ] - }, - { - path: '/multipleQuery', - component: Layout, - redirect: '/multipleQuery/serviceLog', - name: 'multipleQuery', - menuId: 'multipleQuery', - meta: { - title: '综合查询', - icon: 'ep:data-analysis', - alwaysShow: true - }, - children: [ - { - path: 'serviceLog', - component: () => import('@/views/MultipleQuery/ServiceLog/ServiceLog.vue'), - name: 'ServiceLog', - menuId: 'multipleQuery/ServiceLog', - meta: { - title: t('router.servicelogqueryprototype') - } - }, - { - path: 'submit-data-query', - component: () => import('@/views/MultipleQuery/SubmitDataQuery/SubmitDataQuery.vue'), - name: 'SubmitDataQuery', - menuId: 'multipleQuery/SubmitDataQuery', - meta: { - title: '报送数据查询' - } - } - ] - }, - { - path: '/amld', - component: Layout, - name: 'Amld', - menuId: 'Amld', - meta: { - title: '数据补录', - icon: 'eos-icons:role-binding', - alwaysShow: true, - }, - children: [ - { - path: 'amlRuleCust', - component: () => import('@/views/amld/AmlRuleCust/AmlRuleCust.vue'), - name: 'AmlRuleCust', - menuId: 'amld/AmlRuleCust', - meta: { - title: '客户信息补录' - } - }, - ] - }, - { - path: '/job', - component: Layout, - redirect: '/job/rep-job', - name: 'Job', - menuId: 'Job', - meta: { - title: '作业管理', - icon: 'tdesign:task-setting', - alwaysShow: true - }, - children: [ - { - path: 'rep-job', - component: () => import('@/views/job/RepJob/RepJob.vue'), - name: 'RepJob', - menuId: 'job/RepJob', - meta: { - title: '作业配置' - } - }, - { - path: 'JobMonitor', - component: () => import('@/views/job/RepTask/RepTask.vue'), - name: 'JobMonitor', - menuId: 'job/JobMonitor', - meta: { - title: '作业监控' - } - } - ] - }, - - { - path: '/system', - component: Layout, - redirect: '/system/sys-menu', - name: 'System', - menuId: 'System', - meta: { - title: '系统管理', - icon: 'eos-icons:role-binding', - alwaysShow: true - }, - children: [ - { - path: 'rep-data-source', - component: () => import('@/views/param/RepDataSource/RepDataSource.vue'), - name: 'RepDataSource', - menuId: 'param/RepDataSource', - meta: { - title: '数据源管理' - } - }, - { - path: 'sys-login-log', - component: () => import('@/views/system/SysLoginLog/SysLoginLog.vue'), - name: 'SysLoginLog', - menuId: 'system/SysLoginLog', - meta: { - title: '登陆日志查询' - } - }, - - { - path: 'sys-menu', - component: () => import('@/views/system/SysMenu/SysMenu.vue'), - name: 'SysMenu', - menuId: 'system/SysMenu', - meta: { - title: '菜单管理' - } - }, - - { - path: 'sys-role', - component: () => import('@/views/system/SysRole/SysRole.vue'), - name: 'SysRole', - menuId: 'system/SysRole', - meta: { - title: '角色管理' - } - }, - { - path: 'sys-user', - component: () => import('@/views/system/SysUser/SysUser.vue'), - name: 'SysUser', - menuId: 'system/SysUser', - meta: { - title: '用户管理' - } - }, - { - path: 'sys-organ', - component: () => import('@/views/param/SysOrgan/SysOrgan.vue'), - name: 'SysOrgan', - menuId: 'param/SysOrgan', - meta: { - title: '机构管理' - } - }, - { - path: 'amlRuleCust', - component: () => import('@/views/amld/AmlRuleCust/AmlRuleCust.vue'), - name: 'AmlRuleCust', - menuId: 'system/AmlRuleCust', - meta: { - title: '客户信息补录' - } - }, - { - path: 'sys-role', - component: () => import('@/views/system/SysRole/SysRole.vue'), - name: 'SysRole', - menuId: 'system/SysRole', - meta: { - title: '角色管理', - }, - }, - { - path: 'sys-user', - component: () => import('@/views/system/SysUser/SysUser.vue'), - name: 'SysUser', - menuId: 'system/SysUser', - meta: { - title: '用户管理', - }, - }, - { - path: 'sys-organ', - component: () => import('@/views/param/SysOrgan/SysOrgan.vue'), - name: 'SysOrgan', - menuId: 'param/SysOrgan', - meta: { - title: '机构管理', - }, - }, - { - path: 'sys-organ-tree', - component: () => import('@/views/param/SysOrganTree/SysOrganTree.vue'), - name: 'SysOrganTree', - menuId: 'param/SysOrganTree', - meta: { - title: '机构树管理' - } - }, - { - path: 'sys-org-tree-detail/:id', - component: () => import('@/views/param/SysOrgTreeDetail/SysOrgTreeDetail.vue'), - name: 'SysOrgTreeDetail', - menuId: 'param/SysOrgTreeDetail', - meta: { - title: '机构树管理', - hidden: true - } - } - ] - }, - - { - path: '/csck', - component: Layout, - redirect: '/csck/rep-job', - name: 'csck', - menuId: 'csck', - meta: { - title: '跨系统校验', - icon: 'tdesign:task-setting', - alwaysShow: true - }, - children: [ - { - path: 'CsckBusinessSystem', - component: () => import('@/views/csck/CsckBusinessSystem/CsckBusinessSystem.vue'), - name: 'CsckBusinessSystem', - menuId: 'csck/CsckBusinessSystem', - meta: { - title: '业务系统管理', - hidden: false - } - }, - { - path: 'CsckBusinessSystem1', - component: () => import('@/views/csck/CsckBusinessSystem/CsckBusinessSystem1.vue'), - name: 'CsckBusinessSystem1', - menuId: 'csck/CsckBusinessSystem1', - meta: { - title: '业务系统管理1', - hidden: false - } - }, - ] - } -] - -const router = createRouter({ - history: createWebHashHistory(), - strict: true, - routes: constantRouterMap as RouteRecordRaw[], - scrollBehavior: () => ({ left: 0, top: 0 }) -}) - -export const resetRouter = (): void => { - const resetWhiteNameList = ['Redirect', 'Login', 'NoFind', 'Root'] - router.getRoutes().forEach((route) => { - const { name } = route - if (name && !resetWhiteNameList.includes(name as string)) { - router.hasRoute(name) && router.removeRoute(name) - } - }) -} - -export const setupRouter = (app: App) => { - app.use(router) -} - -export default router diff --git a/src/router/index.ts b/src/router/index.ts index ec682de..5bae364 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -10,7 +10,7 @@ export const constantRouterMap: AppRouteRecordRaw[] = [ { path: '/', component: Layout, - redirect: '/dashboard/home', + redirect: '/datasetpage/indexMannageMs', name: 'Root', meta: { hidden: true @@ -62,1146 +62,22 @@ export const constantRouterMap: AppRouteRecordRaw[] = [ noTagsView: true, }, }, - /* ----------------------在线Word的预览开始------------------------- */ - { - path: '/PreViewFile', - component: () => import('@/components/PreViewFile/src/PreViewFile.vue'), - name: 'PreViewFile', - meta: { - title: '文件预览', - hidden:true - }, - }, - /* ----------------------在线Word的预览结束------------------------- */ - // 可疑案例处理界面 - { - path: '/caseManageT', - component: Layout, - // redirect: '/caseManageT/caseManageInfo', - name: 'CaseManageT', - menuId: 'CaseManageT', - meta: { - title: '信息处理', - hidden: true, - }, - children: [ - { - path: 'editLargScaleCase', - component: () => import('@/views/amld/CaseManageComponents/editLargScaleCase.vue'), - name: 'EditLargScaleCase', - menuId: 'caseManageT/editLargScaleCase', - meta: { - title: '大额案例处理', - sort:1, - hidden:true - } - }, - { - path: 'customerInfo', - component: () => import('@/views/amld/CaseManageComponents/customerManage/customerInfo.vue'), - name: 'CustomerInfo', - menuId: 'caseManageT/customerInfo', - meta: { - title: '可疑案例处理', - sort:2, - hidden:true - } - }, - { - path: 'transicationInfoAddRecord', - component: () => import('@/views/amld/CaseManageComponents/transicationInfoAddRecord.vue'), - name: 'TransicationInfoAddRecord', - menuId: 'caseManageT/transicationInfoAddRecord', - meta: { - title: '交易信息补录', - sort:1, - hidden:true - } - }, - { - path: 'customerInfoAddRecord', - component: () => import('@/views/amld/CaseManageComponents/customerInfoAddRecord.vue'), - name: 'CustomerInfoAddRecord', - menuId: 'caseManageT/customerInfoAddRecord', - meta: { - title: '客户信息补录', - sort:1, - hidden:true - } - }, - { - path: 'addRivalInfo', - component: () => import('@/views/amld/CaseManageComponents/DataAddRecord/addRivalInfo.vue'), - name: 'AddRivalInfo', - menuId: 'caseManageT/addRivalInfo', - meta: { - title: '对手信息补录', - sort:1, - hidden:true - } - }, - { - path: 'CustomerIdentification', - component: () => import('@/views/amld/CaseManageComponents/CustomerInfoManage/CustomerIdentification.vue'), - name: 'CustomerIdentification', - menuId: 'caseManageT/CustomerIdentification', - meta: { - title: '客户识别', - sort:1, - hidden:true - } - }, - { - path: 'CustomerRiskRate', - component: () => import('@/views/amld/CaseManageComponents/CustomerInfoManage/CustomerRiskRate.vue'), - name: 'CustomerRiskRate', - menuId: 'caseManageT/CustomerRiskRate', - meta: { - title: '客户评级', - sort:1, - hidden:true - } - }, - - ], - }, -]; - -export const asyncRouterMap: AppRouteRecordRaw[] = [ - { - path: '/dashboard', - component: Layout, - redirect: '/dashboard/home', - name: 'Dashboard', - menuId: 'Dashboard', - meta: { - title: '首页', - icon: 'ant-design:home-outlined', - hidden: true, - }, - children: [ - { - path: 'home', - component: () => import('@/views/dataset/IndexMannageMs/IndexMannageMs.vue'), - name: 'IndexMannageMs', - menuId: 'IndexMannageMs', - meta: { - title: '指标管理', - affix: true, - hidden: true, - }, - }, - ], - }, - /*---------------------案例预警start------------------------*/ - { - path: '/caseManage', - component: Layout, - redirect: '/caseManage', - name: 'CaseManage', - menuId: 'CaseManage', - meta: { - title: '案例管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"bslc", - sort:1, - }, - children: [ - - { - path: 'LargScaleCaseDeal', - component: () => import('@/views/amld/LargScaleCaseDeal/LargScaleCaseDeal.vue'), - name: 'LargScaleCaseDeal', - menuId: 'caseManage/LargScaleCaseDeal', - meta: { - title: '大额案例处理', - sort:1, - }, - }, - { - path: 'SuspiciousCaseDeal', - component: () => import('@/views/amld/SuspiciousCaseDeal/SuspiciousCaseDeal.vue'), - name: 'SuspiciousCaseDeal', - menuId: 'caseManage/SuspiciousCaseDeal', - meta: { - title: '可疑案例处理', - sort:2, - }, - }, - { - path: 'SuspiciousCaseReview', - component: () => import('@/views/amld/SuspiciousCaseReview/SuspiciousCaseReview.vue'), - name: 'SuspiciousCaseReview', - menuId: 'caseManage/SuspiciousCaseReview', - meta: { - title: '可疑案例上报复核', - sort:3, - }, - }, - { - path: 'SuspiciousCaseExclude', - component: () => import('@/views/amld/SuspiciousCaseExclude/SuspiciousCaseExclude.vue'), - name: 'SuspiciousCaseExclude', - menuId: 'caseManage/SuspiciousCaseExclude', - meta: { - title: '可疑案例排除复核', - sort:4, - }, - }, - { - path: 'SuspiciousTraceDeal', - component: () => import('@/views/amld/SuspiciousTraceDeal/SuspiciousTraceDeal.vue'), - name: 'SuspiciousTraceDeal', - menuId: 'caseManage/SuspiciousTraceDeal', - meta: { - title: '案例跟踪处理', - sort:5, - }, - }, - { - path: 'LargeCaseReview', - component: () => import('@/views/amld/LargeCaseReview/LargeCaseReview.vue'), - name: 'LargeCaseReview', - menuId: 'caseManage/LargeCaseReview', - meta: { - title: '大额案例审核', - sort:6, - }, - }, - { - path: 'SuspiciousCaseVerify', - component: () => import('@/views/amld/SuspiciousCaseVerify/SuspiciousCaseVerify.vue'), - name: 'SuspiciousCaseVerify', - menuId: 'caseManage/SuspiciousCaseVerify', - meta: { - title: '可疑案例审批', - sort:7, - }, - }, - ] - }, - { - path: '/dataSupplement', - component: Layout, - redirect: '/dataSupplement', - name: 'DataSupplement', - menuId: 'DataSupplement', - meta: { - title: '数据补录', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"bslc", - sort:2, - }, - children: [ - { - path: 'TransactionInfo', - component: () => import('@/views/amld/TransactionInfo/TransactionInfo.vue'), - name: 'TransactionInfo', - menuId: 'dataSupplement/TransactionInfo', - meta: { - title: '交易信息补录', - sort:1, - } - }, - { - path: 'AmlRuleCust', - component: () => import('@/views/amld/AmlRuleCust/AmlRuleCust.vue'), - name: 'AmlRuleCust', - menuId: 'dataSupplement/AmlRuleCust', - meta: { - title: '客户信息补录', - sort:2, - } - }, - { - path: 'CompetitorMaintain', - component: () => import('@/views/amld/CompetitorMaintain/CompetitorMaintain.vue'), - name: 'CompetitorMaintain', - menuId: 'dataSupplement/CompetitorMaintain', - meta: { - title: '对手信息维护', - sort:3, - }, - }, - { - path: 'amlRuleAutoslay', - component: () => import('@/views/amld/AmlRuleAutoslay/AmlRuleAutoslay.vue'), - name: 'AmlRuleAutoslay', - menuId: 'dataSupplement/AmlRuleAutoslay', - meta: { - title: '上报交易补录', - sort:4, - }, - }, - { - path: 'CompetitorInstitution', - component: () => import('@/views/amld/CompetitorInstitution/CompetitorInstitution.vue'), - name: 'CompetitorInstitution', - menuId: 'dataSupplement/CompetitorInstitution', - meta: { - title: '对手金融机构维护', - sort:5, - }, - }, - ] - }, - { - path: '/taskTracking', - component: Layout, - redirect: '/taskTracking', - name: 'TaskTracking', - menuId: 'TaskTracking', - meta: { - title: '任务跟踪', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"bslc", - sort:3, - }, - children: [ - { - path: 'ExpirationManagement', - component: () => import('@/views/amld/ExpirationManagement/ExpirationManagement.vue'), - name: 'ExpirationManagement', - menuId: 'taskTracking/ExpirationManagement', - meta: { - title: '逾期管理', - sort:1, - }, - }, - { - path: 'DataurgeManage', - component: () => import('@/views/amld/DataurgeManage/DataurgeManage.vue'), - name: 'DataurgeManage', - menuId: 'taskTracking/DataurgeManage', - meta: { - title: '督办管理', - sort:2, - }, - }, - { - path: 'DataurgeQuery', - component: () => import('@/views/amld/DataurgeQuery/DataurgeQuery.vue'), - name: 'DataurgeQuery', - menuId: 'taskTracking/DataurgeQuery', - meta: { - title: '督办查询', - sort:3, - }, - }, - ] - }, - { - path: '/receiptManagement', - component: Layout, - redirect: '/receiptManagement', - name: 'ReceiptManagement', - menuId: 'ReceiptManagement', - meta: { - title: '回执管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"bslc", - sort:4, - }, - children: [ - { - path: 'amlRetRgjxAnalysis', - component: () => import('@/views/amld/AmlRetRgjxAnalysis/AmlRetRgjxAnalysis.vue'), - name: 'AmlRetRgjxAnalysis', - menuId: 'receiptManagement/AmlRetRgjxAnalysis', - meta: { - title: '人工补正回执解析', - sort:1, - }, - }, - { - path: 'HzwjAnalysis', - component: () => import('@/views/amld/HzwjAnalysis/HzwjAnalysis.vue'), - name: 'HzwjAnalysis', - menuId: 'receiptManagement/HzwjAnalysis', - meta: { - title: '回执文件解析', - sort:2, - }, - }, - { - path: 'amlRuleAutoslayError', - component: () => import('@/views/amld/AmlRuleAutoslayError/AmlRuleAutoslayError.vue'), - name: 'AmlRuleAutoslayError', - menuId: 'receiptManagement/AmlRuleAutoslayError', - meta: { - title: '错误回执客户补录', - sort:3, - }, - }, - { - path: 'ErrorTransaction', - component: () => import('@/views/amld/ErrorTransaction/ErrorTransaction.vue'), - name: 'ErrorTransaction', - menuId: 'receiptManagement/ErrorTransaction', - meta: { - title: '错误回执交易补录', - sort:4, - }, - }, - { - path: 'amlRetRgjxDealing', - component: () => import('@/views/amld/AmlRetRgjxDealing/AmlRetRgjxDealing.vue'), - name: 'AmlRetRgjxDealing', - menuId: 'receiptManagement/AmlRetRgjxDealing', - meta: { - title: '人工补正回执处理', - sort:5, - }, - }, - { - path: 'UploadInvalidDeal', - component: () => import('@/views/amld/UploadInvalidDeal/UploadInvalidDeal.vue'), - name: 'UploadInvalidDeal', - menuId: 'receiptManagement/UploadInvalidDeal', - meta: { - title: '上报无效处理', - sort:6, - }, - }, - { - path: 'amlSysDataurgeQuery', - component: () => import('@/views/amld/AmlSysDataurgeQuery/AmlSysDataurgeQuery.vue'), - name: 'AmlSysDataurgeQuery', - menuId: 'receiptManagement/AmlSysDataurgeQuery', - meta: { - title: '回执管理查询', - sort:7, - }, - }, - { - path: 'UploadDataDelete', - component: () => import('@/views/amld/UploadDataDelete/UploadDataDelete.vue'), - name: 'UploadDataDelete', - menuId: 'receiptManagement/UploadDataDelete', - meta: { - title: '上报数据删除', - sort:8, - }, - }, - { - path: 'UploadDataError', - component: () => import('@/views/amld/UploadDataError/UploadDataError.vue'), - name: 'UploadDataError', - menuId: 'receiptManagement/UploadDataError', - meta: { - title: '上报数据纠错', - sort:9, - }, - }, - ] - }, - { - path: '/paperManagement', - component: Layout, - redirect: '/paperManagement', - name: 'PaperManagement', - menuId: 'PaperManagement', - meta: { - title: '报文管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"bslc", - sort:6 - }, - children: [ - { - path: 'LargeMessageGenerate', - component: () => import('@/views/amld/LargeMessageGenerate/LargeMessageGenerate.vue'), - name: 'LargeMessageGenerate', - menuId: 'paperManagement/LargeMessageGenerate', - meta: { - title: '大额报文生成', - sort:1, - }, - }, - { - path: 'SuspiciousMessageGenerate', - component: () => import('@/views/amld/SuspiciousMessageGenerate/SuspiciousMessageGenerate.vue'), - name: 'SuspiciousMessageGenerate', - menuId: 'paperManagement/SuspiciousMessageGenerate', - meta: { - title: '可疑报文生成', - sort:2, - }, - }, - { - path: 'deletePaper', - component: () => import('@/views/amld/DeletePaper/DeletePaper.vue'), - name: 'DeletePaper', - menuId: 'paperManagement/DeletePaper', - meta: { - title: '删除报文生成', - sort:3, - }, - }, - { - path: 'RepPackageDown', - component: () => import('@/views/amld/RepPackageDown/RepPackageDown.vue'), - name: 'RepPackageDown', - menuId: 'paperManagement/RepPackageDown', - meta: { - title: '数据包下载', - sort:4, - }, - }, - { - path: 'SuspiciousPackageDown', - component: () => import('@/views/amld/SuspiciousPackageDown/SuspiciousPackageDown.vue'), - name: 'SuspiciousPackageDown', - menuId: 'paperManagement/SuspiciousPackageDown', - meta: { - title: '可疑附件打包', - sort:5, - }, - }, - ] - }, - { - path: '/namePaperManagement', - component: Layout, - redirect: '/namePaperManagement', - name: 'NamePaperManagement', - menuId: 'NamePaperManagement', - meta: { - title: '名单库管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"bslc", - sort:7, - }, - children: [ - { - path: 'SuspiciousMain', - component: () => import('@/views/amld/SuspiciousMain/SuspiciousMain.vue'), - name: 'SuspiciousMain', - menuId: 'namePaperManagement/SuspiciousMain', - meta: { - title: '可疑库', - sort:1, - }, - }, - { - path: 'AttentionMain', - component: () => import('@/views/amld/AttentionMain/AttentionMain.vue'), - name: 'AttentionMain', - menuId: 'namePaperManagement/AttentionMain', - meta: { - title: '关注库', - sort:2, - }, - }, - ] - }, - - /*---------------------案例预警end------------------------*/ - - /*---------------------统计分析start------------------------*/ - { - path: '/nameListManagement', - component: Layout, - redirect: '/nameListManagement', - name: 'NameListManagement', - menuId: 'NameListManagement', - meta: { - title: '名单管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"mdgl", - sort:1, - }, - children: [ - { - path: 'whiteListMaintain', - component: () => import('@/views/amld/whiteListMaintain/whiteListMaintain.vue'), - name: 'whiteListMaintain', - menuId: 'nameListManagement/whiteListMaintain', - meta: { - title: '白名单维护', - sort:1, - }, - }, - { - path: 'whiteListVerify', - component: () => import('@/views/amld/whiteListVerify/whiteListVerify.vue'), - name: 'whiteListVerify', - menuId: 'nameListManagement/whiteListVerify', - meta: { - title: '白名单审核', - sort:2, - }, - }, - { - path: 'whiteListQuery', - component: () => import('@/views/amld/whiteListQuery/whiteListQuery.vue'), - name: 'whiteListQuery', - menuId: 'nameListManagement/whiteListQuery', - meta: { - title: '白名单查询', - sort:3, - }, - }, - { - path: 'blackListMaitain', - component: () => import('@/views/amld/blackListMaitain/blackListMaitain.vue'), - name: 'blackListMaitain', - menuId: 'nameListManagement/blackListMaitain', - meta: { - title: '黑名单维护', - sort:4, - }, - }, - { - path: 'blackListShare', - component: () => import('@/views/amld/blackListShare/blackListShare.vue'), - name: 'blackListShare', - menuId: 'nameListManagement/blackListShare', - meta: { - title: '黑名单共享', - sort:5, - }, - }, - { - path: 'BlacklistsScreen', - component: () => import('@/views/amld/BlacklistsScreen/BlacklistsScreen.vue'), - name: 'BlacklistsScreen', - menuId: 'nameListManagement/BlacklistsScreen', - meta: { - title: '黑名单回溯性调查', - sort:6, - }, - }, - { - path: 'blackListQuery', - component: () => import('@/views/amld/blackListQuery/blackListQuery.vue'), - name: 'blackListQuery', - menuId: 'nameListManagement/blackListQuery', - meta: { - title: '黑名单查询', - sort:7, - }, - }, - ] - }, - { - path: '/statisticalManagement', - component: Layout, - redirect: '/statisticalManagement', - name: 'StatisticalManagement', - menuId: 'StatisticalManagement', - meta: { - title: '统计分析', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:'mdgl', - sort:2 - }, - children: [ - { - path: 'KytzStatistics', - component: () => import('@/views/amld/KytzStatistics/KytzStatistics.vue'), - name: 'KytzStatistics', - menuId: 'statisticalManagement/KytzStatistics', - meta: { - title: '可疑特征统计', - sort:1, - }, - }, - { - path: 'PcyjStatistics', - component: () => import('@/views/amld/PcyjStatistics/PcyjStatistics.vue'), - name: 'PcyjStatistics', - menuId: 'statisticalManagement/PcyjStatistics', - meta: { - title: '排除预警统计', - sort:2, - }, - }, - { - path: 'SuspiciousPaperQuery', - component: () => import('@/views/amld/SuspiciousPaperQuery/SuspiciousPaperQuery.vue'), - name: 'SuspiciousPaperQuery', - menuId: 'statisticalManagement/SuspiciousPaperQuery', - meta: { - title: '可疑报告查询', - sort:3, - }, - }, - { - path: 'KyjyStatistics', - component: () => import('@/views/amld/KyjyStatistics/KyjyStatistics.vue'), - name: 'KyjyStatistics', - menuId: 'statisticalManagement/KyjyStatistics', - meta: { - title: '可疑交易报告统计', - sort:4, - }, - }, - { - path: 'WarnOutQuery', - component: () => import('@/views/amld/WarnOutQuery/WarnOutQuery.vue'), - name: 'WarnOutQuery', - menuId: 'statisticalManagement/WarnOutQuery', - meta: { - title: '排除预警查询', - sort:5, - }, - }, - { - path: 'LargePaperQuery', - component: () => import('@/views/amld/LargePaperQuery/LargePaperQuery.vue'), - name: 'LargePaperQuery', - menuId: 'statisticalManagement/LargePaperQuery', - meta: { - title: '大额报告查询', - sort:6, - }, - }, - { - path: 'DejyStatistics', - component: () => import('@/views/amld/DejyStatistics/DejyStatistics.vue'), - name: 'DejyStatistics', - menuId: 'statisticalManagement/DejyStatistics', - meta: { - title: '大额交易报告统计', - sort:7, - }, - }, - { - path: 'YjqkStatistics', - component: () => import('@/views/amld/YjqkStatistics/YjqkStatistics.vue'), - name: 'YjqkStatistics', - menuId: 'statisticalManagement/YjqkStatistics', - meta: { - title: '预警情况统计', - sort:8, - }, - }, - { - path: 'JyqdStatistics', - component: () => import('@/views/amld/JyqdStatistics/JyqdStatistics.vue'), - name: 'JyqdStatistics', - menuId: 'statisticalManagement/JyqdStatistics', - meta: { - title: '交易渠道统计', - sort:9, - }, - }, - { - path: 'KyjxStatistics', - component: () => import('@/views/amld/KyjxStatistics/KyjxStatistics.vue'), - name: 'KyjxStatistics', - menuId: 'statisticalManagement/KyjxStatistics', - meta: { - title: '可疑接续报告统计', - sort:10, - }, - }, - - - - ] - }, - - /*---------------------统计分析end------------------------*/ - - /*---------------------风险评级start(pjgl)------------------------*/ - { - path: '/customerInfoManagement', - component: Layout, - redirect: '/customerInfoManagement', - name: 'CustomerInfoManagement', - menuId: 'CustomerInfoManagement', - meta: { - title: '客户信息管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:1, - }, - children: [ - { - path: 'CustomerQuery', - component: () => import('@/views/amld/CustomerQuery/CustomerQuery.vue'), - name: 'CustomerQuery', - menuId: 'customerInfoManagement/CustomerQuery', - meta: { - title: '客户信息查询', - sort:1, - }, - }, - { - path: 'CustomerMaintain', - component: () => import('@/views/amld/CustomerMaintain/CustomerMaintain.vue'), - name: 'CustomerMaintain', - menuId: 'customerInfoManagement/CustomerMaintain', - meta: { - title: '客户信息维护', - sort:2, - }, - }, - - ] - }, - { - path: '/localCheck', - component: Layout, - redirect: '/localCheck/localCheckTask', - name: 'LocalCheck', - menuId: 'LocalCheck', - meta: { - title: '现场检查', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:2, - }, - children: [ - { - path: 'LocalCheckTask', - component: () => import('@/views/amld/LocalCheckTask/LocalCheckTask.vue'), - name: 'LocalCheckTask', - menuId: 'localCheckTask/LocalCheckTask', - meta: { - title: '现场检查', - sort:1 - }, - }, - { - path: 'LocalCheckVerify', - component: () => import('@/views/amld/LocalCheckVerify/LocalCheckVerify.vue'), - name: 'LocalCheckVerify', - menuId: 'localCheckVerify/LocalCheckVerify', - meta: { - title: '现场检查审核', - sort:2 - }, - } - ] - }, - { - path: '/customerRiskLevel', - component: Layout, - redirect: '/customerRiskLevel', - name: 'CustomerRiskLevel', - menuId: 'CustomerRiskLevel', - meta: { - title: '客户风险评级', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:3, - }, - children: [ - { - path: 'crrRiskResultFirst', - component: () => import('@/views/amld/crrRiskResultFirst/crrRiskResultFirst.vue'), - name: 'crrRiskResultFirst', - menuId: 'customerRiskLevel/crrRiskResultFirst', - meta: { - title: '客户评级初评', - sort:1, - }, - }, - { - path: 'crrRiskResultSecond', - component: () => import('@/views/amld/crrRiskResultSecond/crrRiskResultSecond.vue'), - name: 'crrRiskResultSecond', - menuId: 'customerRiskLevel/crrRiskResultSecond', - meta: { - title: '客户评级复评', - sort:2, - }, - }, - { - path: 'crrRiskResultVerify', - component: () => import('@/views/amld/crrRiskResultVerify/crrRiskResultVerify.vue'), - name: 'crrRiskResultVerify', - menuId: 'customerRiskLevel/crrRiskResultVerify', - meta: { - title: '客户评级审核', - sort:3, - }, - }, - ] - }, - { - path: '/automaticRatingManagement', - component: Layout, - redirect: '/automaticRatingManagement', - name: 'AutomaticRatingManagement', - menuId: 'AutomaticRatingManagement', - meta: { - title: '自动评级管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:4, - }, - children: [ - { - path: 'CustomerLevelStatus', - component: () => import('@/views/amld/CustomerLevelStatus/CustomerLevelStatus.vue'), - name: 'CustomerLevelStatus', - menuId: 'automaticRatingManagement/CustomerLevelStatus', - meta: { - title: '客户评级状态查询', - sort:1 - }, - }, - { - path: 'UserLevelQuery', - component: () => import('@/views/amld/UserLevelQuery/UserLevelQuery.vue'), - name: 'UserLevelQuery', - menuId: 'automaticRatingManagement/UserLevelQuery', - meta: { - title: '人工发起评级查询', - sort:2 - }, - }, - ] - }, - { - path: '/customerRiskLevelController', - component: Layout, - redirect: '/customerRiskLevel', - name: 'CustomerRiskLevelController', - menuId: 'CustomerRiskLevelController', - meta: { - title: '客户风险等级控制', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:5, - }, - children: [ - { - path: 'CustomerRiskLevelQuery', - component: () => import('@/views/amld/CustomerRiskLevelQuery/CustomerRiskLevelQuery.vue'), - name: 'CustomerRiskLevelQuery', - menuId: 'customerRiskLevelController/CustomerRiskLevelQuery', - meta: { - title: '客户风险等级查询', - sort:1 - }, - }, - { - path: 'RGDBQuery', - component: () => import('@/views/amld/RGDBQuery/RGDBQuery.vue'), - name: 'RGDBQuery', - menuId: 'customerRiskLevelController/RGDBQuery', - meta: { - title: '人工督办查询', - sort:2 - }, - }, - { - path: 'CustomerRiskLevelChange', - component: () => import('@/views/amld/CustomerRiskLevelChange/CustomerRiskLevelChange.vue'), - name: 'CustomerRiskLevelChange', - menuId: 'customerRiskLevelController/CustomerRiskLevelChange', - meta: { - title: '客户风险等级变化', - sort:3 - }, - }, - - - ] - }, - { - path: '/riskLevelConfig', - component: Layout, - redirect: '/riskLevelConfig', - name: 'RiskLevelConfig', - menuId: 'RiskLevelConfig', - meta: { - title: '风险等级参数配置', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:6 - }, - children: [ - { - path: 'LevelMaintain', - component: () => import('@/views/amld/LevelMaintain/LevelMaintain.vue'), - name: 'LevelMaintain', - menuId: 'riskLevelConfig/LevelMaintain', - meta: { - title: '评级参数维护', - sort:1 - }, - }, - { - path: 'ScoreLevelAdjust', - component: () => import('@/views/amld/ScoreLevelAdjust/ScoreLevelAdjust.vue'), - name: 'ScoreLevelAdjust', - menuId: 'riskLevelConfig/ScoreLevelAdjust', - meta: { - title: '评分区间调整', - sort:2 - }, - }, - ] - }, - { - path: '/customerIdentityVerify', - component: Layout, - redirect: '/customerIdentityVerify', - name: 'CustomerIdentityVerify', - menuId: 'CustomerIdentityVerify', - meta: { - title: '客户身份识别', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:8, - }, - children: [ - { - path: 'NewCustomerIdentity', - component: () => import('@/views/amld/NewCustomerIdentity/NewCustomerIdentity.vue'), - name: 'NewCustomerIdentity', - menuId: 'customerIdentityVerify/NewCustomerIdentity', - meta: { - title: '新开客户识别', - sort:1, - }, - }, - { - path: 'ReCustomerIdentity', - component: () => import('@/views/amld/ReCustomerIdentity/ReCustomerIdentity.vue'), - name: 'ReCustomerIdentity', - menuId: 'customerIdentityVerify/ReCustomerIdentity', - meta: { - title: '重新客户识别', - sort:2, - }, - }, - { - path: 'CustomerIdentityQuery', - component: () => import('@/views/amld/CustomerIdentityQuery/CustomerIdentityQuery.vue'), - name: 'CustomerIdentityQuery', - menuId: 'customerIdentityVerify/CustomerIdentityQuery', - meta: { - title: '客户识别查询', - sort:3, - }, - }, - ] - }, - { - path: '/financeProRiskEvaluation', - component: Layout, - redirect: '/financeProRiskEvaluation', - name: 'FinanceProRiskEvaluation', - menuId: 'FinanceProRiskEvaluation', - meta: { - title: '金融产品(业务)风险评估管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:9 - }, - children: [ - { - path: 'JRCPSelfEvaluation', - component: () => import('@/views/amld/JRCPSelfEvaluation/JRCPSelfEvaluation.vue'), - name: 'JRCPSelfEvaluation', - menuId: 'financeProRiskEvaluation/JRCPSelfEvaluation', - meta: { - title: '金融产品业务自评', - sort:1 - }, - }, - { - path: 'JRCPVerify', - component: () => import('@/views/amld/JRCPVerify/JRCPVerify.vue'), - name: 'JRCPVerify', - menuId: 'financeProRiskEvaluation/JRCPVerify', - meta: { - title: '金融产品业务审核', - sort:2 - }, - }, - { - path: 'JRCPRiskLevelQuery', - component: () => import('@/views/amld/JRCPRiskLevelQuery/JRCPRiskLevelQuery.vue'), - name: 'JRCPRiskLevelQuery', - menuId: 'financeProRiskEvaluation/JRCPRiskLevelQuery', - meta: { - title: '金融产品业务风险等级查询', - sort:3 - }, - }, - { - path: 'JRCPEvaluateQuery', - component: () => import('@/views/amld/JRCPEvaluateQuery/JRCPEvaluateQuery.vue'), - name: 'JRCPEvaluateQuery', - menuId: 'financeProRiskEvaluation/JRCPEvaluateQuery', - meta: { - title: '金融产品业务评估状态查询', - sort:4 - }, - }, - { - path: 'UserFinanceEvaluate', - component: () => import('@/views/amld/UserFinanceEvaluate/UserFinanceEvaluate.vue'), - name: 'UserFinanceEvaluate', - menuId: 'financeProRiskEvaluation/UserFinanceEvaluate', - meta: { - title: '人工发起金融产品(业务)评估查询', - sort:5 - }, - }, - ] - }, + + +]; + +export const asyncRouterMap: AppRouteRecordRaw[] = [ + /* ----------------------在线Word的预览开始------------------------- */ { - path: '/financialProLevelConfig', - component: Layout, - redirect: '/financialProLevelConfig', - name: 'FinancialProLevelConfig', - menuId: 'FinancialProLevelConfig', + path: '/PreViewFile', + component: () => import('@/components/PreViewFile/src/PreViewFile.vue'), + name: 'PreViewFile', meta: { - title: '金融产品(业务)等级参数配置', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:10, + title: '文件预览', + hidden:true }, - children: [ - { - path: 'ProductRiskItem', - component: () => import('@/views/amld/ProductRiskItem/ProductRiskItem.vue'), - name: 'ProductRiskItem', - menuId: 'financialProLevelConfig/ProductRiskItem', - meta: { - title: '金融产品(业务)风险子项', - sort:1 - }, - }, - { - path: 'ProductRiskLevel', - component: () => import('@/views/amld/ProductRiskLevel/ProductRiskLevel.vue'), - name: 'ProductRiskLevel', - menuId: 'financialProLevelConfig/ProductRiskLevel', - meta: { - title: '金融产品(业务)风险评估规则', - sort:2 - }, - }, - ] }, - /*---------------------风险评级end(pjgl)------------------------*/ + /* ----------------------在线Word的预览结束------------------------- */ /*---------------------系统管理start------------------------*/ { @@ -1459,80 +335,7 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [ ] }, /*---------------------系统管理end------------------------*/ - // { - // path: '/system', - // component: Layout, - // redirect: '/system/sys-menu', - // name: 'System', - // menuId: 'System', - // meta: { - // title: '报送', - // icon: 'eos-icons:role-binding', - // alwaysShow: true, - // // type:"bslc" - // }, - // children: [] - // }, - // { - // path: '/system', - // component: Layout, - // redirect: '/system/sys-menu', - // name: 'System', - // menuId: 'System', - // meta: { - // title: '查询分析', - // icon: 'eos-icons:role-binding', - // alwaysShow: true, - // }, - // children: [] - // }, - // { - // path: '/system', - // component: Layout, - // redirect: '/system/sys-menu', - // name: 'System', - // menuId: 'System', - // meta: { - // title: '评级', - // icon: 'eos-icons:role-binding', - // alwaysShow: true, - // }, - // children: [] - // }, - // { - // path: '/system', - // component: Layout, - // redirect: '/system/sys-menu', - // name: 'System', - // menuId: 'System', - // meta: { - // title: '管理', - // icon: 'eos-icons:role-binding', - // alwaysShow: true, - // type:"xtgl" - // }, - // children: [] - // }, - - - // { - // path: '/system', - // component: Layout, - // redirect: '/system/sys-menu', - // name: 'System', - // menuId: 'System', - // meta: { - // title: '系统管理', - // icon: 'eos-icons:role-binding', - // alwaysShow: true, - // }, - // children: [ - // { - - // } - // ] - // }, - + /*---------------------------------一表通管理start-------------------------------------*/ { path: '/taskCenterManage', @@ -1808,14 +611,14 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [ meta: { title: '数据问题报告生成' } - } + }, ] }, { - path: '/dataset', - component: Layout(), - name: 'dataset', - menuId: 'dataset', + path: '/datasetpage', + component: Layout, + name: 'DataSetPage', + menuId: 'DataSetPage', meta: { title: '指标管理', alwaysShow: true, @@ -1827,33 +630,29 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [ path: 'indexMannageMs', component: () => import('@/views/dataset/IndexMannageMs/IndexMannageMs.vue'), name: 'indexMannageMs', - menuId: 'indexMannageMs', + menuId: 'datasetpage/indexMannageMs', meta: { title: '指标管理', - alwaysShow: true, - type:"ybt", - sort:3, + sort:2, } }, { path: 'indexClassManage', component: () => import('@/views/dataset/IndexClassMs/IndexClassMs.vue'), name: 'indexClassManage', - menuId: 'indexClassManage', + menuId: 'datasetpage/indexClassManage', meta: { - title: '指标分类管理' + title: '指标分类管理', + sort:5, } }, { path: 'indexSearchServiceMs', component: () => import('@/views/dataset/IndexSearchServiceMs/IndexSearchServiceMs.vue'), name: 'IndexSearchServiceMs', - menuId: 'indexSearchServiceMs', + menuId: 'datasetpage/indexSearchServiceMs', meta: { title: '指标查询', - alwaysShow: true, - type:"ybt", - sort:4, } }, // { @@ -1884,67 +683,55 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [ path: 'repStoreMapping', component: () => import('@/views/dataset/RepStoreMapping/RepStoreMapping.vue'), name: 'repStoreMapping', - menuId: 'repStoreMapping', + menuId: 'datasetpage/repStoreMapping', meta: { title: '模型映射', - alwaysShow: true, - type:"ybt", - sort:8, } }, { path: 'repDataModel', component: () => import('@/views/dataset/RepDataModel/RepDataModel.vue'), name: 'repDataModel', - menuId: 'repDataModel', + menuId: 'datasetpage/repDataModel', meta: { title: '数据模型', - alwaysShow: true, - type:"ybt", - sort:9, + sort:4, } }, { path: 'repIndexSet', component: () => import('@/views/dataset/RepIndexSet/RepIndexSet.vue'), name: 'repIndexSet', - menuId: 'repIndexSet', + menuId: 'datasetpage/repIndexSet', meta: { title: '指标集', - alwaysShow: true, - type:"ybt", - sort:10, + sort:1, } }, { path: 'repStoreParameter', component: () => import('@/views/dataset/RepStoreParameter/RepStoreParameter.vue'), name: 'repStoreParameter', - menuId: 'repStoreParameter', + menuId: 'datasetpage/repStoreParameter', meta: { title: '模型参数管理', - alwaysShow: true, - type:"ybt", - sort:11, } }, { path: 'repSetRule', component: () => import('@/views/dataset/RepSetRule/RepSetRule.vue'), name: 'repSetRule', - menuId: 'repSetRule', + menuId: 'datasetpage/repSetRule', meta: { title: '指标加工', - alwaysShow: true, - type:"ybt", - sort:12, + sort:3, } }, { path: 'repStore', component: () => import('@/views/dataset/RepStore/RepStore.vue'), name: 'repStore', - menuId: 'repStore', + menuId: 'datasetpage/repStore', meta: { title: '模型规则', alwaysShow: true, diff --git a/src/router/routeRep/apply2.ts b/src/router/routeRep/apply2.ts deleted file mode 100644 index 71a736f..0000000 --- a/src/router/routeRep/apply2.ts +++ /dev/null @@ -1,143 +0,0 @@ - -import { createRouter, createWebHashHistory } from 'vue-router'; -import type { RouteRecordRaw } from 'vue-router'; -import type { App } from 'vue'; -import { Layout } from '@/utils/routerHelper'; -import { useI18n } from '@/hooks/web/useI18n'; - -const { t } = useI18n(); - -export const constantRouterMap: AppRouteRecordRaw[] = [ - { - path: '/', - component: Layout, - redirect: '/dashboard/home', - name: 'Root', - meta: { - hidden: true - } - }, - { - path: '/dashboard', - component: Layout, - redirect: '/dashboard/home', - name: 'Dashboard', - menuId: 'Dashboard', - meta: { - title: '首页', - icon: 'ant-design:home-outlined', - hidden: true, - }, - children: [ - { - path: 'home', - component: () => import('@/views/csck/CsckWorkFlow/CsckWorkFlow.vue'), - name: 'Home', - menuId: 'Home', - meta: { - title: '待办任务', - affix: true, - hidden: true, - }, - }, - ], - }, - { - path: '/redirect', - component: Layout, - name: 'Redirect', - children: [ - { - path: '/redirect/:path(.*)', - name: 'Redirect', - component: () => import('@/views/Redirect/Redirect.vue'), - meta: {}, - }, - ], - meta: { - hidden: true, - noTagsView: true, - }, - }, - { - path: '/login', - component: () => import('@/views/Login/Login.vue'), - name: 'Login', - meta: { - hidden: true, - title: t('router.login'), - noTagsView: true, - }, - }, - { - path: '/thirdPlatLogin', - component: () => import('@/views/Login/thirdPlatLogin.vue'), - name: 'thirdPlatLogin', - meta: { - hidden: true - }, - }, - { - path: '/404', - component: () => import('@/views/Error/404.vue'), - name: 'NoFind', - meta: { - hidden: true, - title: '404', - noTagsView: true, - }, - }, - - { - path: '/RepJob', - component: () => import('@/views/job/RepJob/RepJob.vue'), - name: 'RepJob', - meta: { - title: '作业配置', - hidden:true - }, - }, - { - path: '/JobMonitor', - component: () => import('@/views/job/RepTask/RepTask.vue'), - name: 'JobMonitor', - meta: { - title: '任务监控', - hidden:true - }, - }, - { - path: '/RepScheduleJob', - component: () => import('@/views/job/RepScheduleJob/RepScheduleJob.vue'), - name: 'RepScheduleJob', - meta: { - title: '定时任务列表', - hidden:true - }, - } -]; - -export const asyncRouterMap: AppRouteRecordRaw[] = []; - -const router = createRouter({ - history: createWebHashHistory(), - strict: true, - routes: constantRouterMap as RouteRecordRaw[], - scrollBehavior: () => ({ left: 0, top: 0 }), -}); - -export const resetRouter = (): void => { - const resetWhiteNameList = ['Redirect', 'Login', 'NoFind', 'Root']; - router.getRoutes().forEach(route => { - const { name } = route; - if (name && !resetWhiteNameList.includes(name as string)) { - router.hasRoute(name) && router.removeRoute(name); - } - }); -}; - -export const setupRouter = (app: App) => { - app.use(router); -}; - -export default router; diff --git a/src/router/routeRep/apply3.ts b/src/router/routeRep/apply3.ts deleted file mode 100644 index 71702b7..0000000 --- a/src/router/routeRep/apply3.ts +++ /dev/null @@ -1,1687 +0,0 @@ -import { createRouter, createWebHashHistory } from 'vue-router'; -import type { RouteRecordRaw } from 'vue-router'; -import type { App } from 'vue'; -import { Layout } from '@/utils/routerHelper'; -import { useI18n } from '@/hooks/web/useI18n'; - -const { t } = useI18n(); - -export const constantRouterMap: AppRouteRecordRaw[] = [ - { - path: '/', - component: Layout, - redirect: '/dashboard/home', - name: 'Root', - meta: { - hidden: true - } - }, - { - path: '/dashboard', - component: Layout, - redirect: '/dashboard/home', - name: 'Dashboard', - menuId: 'Dashboard', - meta: { - title: '首页', - icon: 'ant-design:home-outlined', - hidden: true, - }, - children: [ - { - path: 'home', - component: () => import('@/views/csck/CsckWorkFlow/CsckWorkFlow.vue'), - name: 'Home', - menuId: 'Home', - meta: { - title: '待办任务', - affix: true, - hidden: true, - }, - }, - ], - }, - { - path: '/redirect', - component: Layout, - name: 'Redirect', - children: [ - { - path: '/redirect/:path(.*)', - name: 'Redirect', - component: () => import('@/views/Redirect/Redirect.vue'), - meta: {}, - }, - ], - meta: { - hidden: true, - noTagsView: true, - }, - }, - { - path: '/login', - component: () => import('@/views/Login/Login.vue'), - name: 'Login', - meta: { - hidden: true, - title: t('router.login'), - noTagsView: true, - }, - }, - { - path: '/thirdPlatLogin', - component: () => import('@/views/Login/thirdPlatLogin.vue'), - name: 'thirdPlatLogin', - meta: { - hidden: true - }, - }, - { - path: '/404', - component: () => import('@/views/Error/404.vue'), - name: 'NoFind', - meta: { - hidden: true, - title: '404', - noTagsView: true, - }, - }, - - { - path: '/Job2', - component: () => import('@/views/job/RepJob/RepJob.vue'), - name: 'RepJob', - meta: { - title: '作业配置', - hidden:true - }, - }, - - // 可疑案例处理界面 - { - path: '/caseManageT', - component: Layout, - // redirect: '/caseManageT/caseManageInfo', - name: 'CaseManageT', - menuId: 'CaseManageT', - meta: { - title: '信息处理', - hidden: true, - }, - children: [ - { - path: 'editLargScaleCase', - component: () => import('@/views/amld/CaseManageComponents/editLargScaleCase.vue'), - name: 'EditLargScaleCase', - menuId: 'caseManageT/editLargScaleCase', - meta: { - title: '大额案例处理', - sort:1, - hidden:true - } - }, - { - path: 'customerInfo', - component: () => import('@/views/amld/CaseManageComponents/customerManage/customerInfo.vue'), - name: 'CustomerInfo', - menuId: 'caseManageT/customerInfo', - meta: { - title: '可疑案例处理', - sort:2, - hidden:true - } - }, - { - path: 'transicationInfoAddRecord', - component: () => import('@/views/amld/CaseManageComponents/transicationInfoAddRecord.vue'), - name: 'TransicationInfoAddRecord', - menuId: 'caseManageT/transicationInfoAddRecord', - meta: { - title: '交易信息补录', - sort:1, - hidden:true - } - }, - { - path: 'customerInfoAddRecord', - component: () => import('@/views/amld/CaseManageComponents/customerInfoAddRecord.vue'), - name: 'CustomerInfoAddRecord', - menuId: 'caseManageT/customerInfoAddRecord', - meta: { - title: '客户信息补录', - sort:1, - hidden:true - } - }, - { - path: 'addRivalInfo', - component: () => import('@/views/amld/CaseManageComponents/DataAddRecord/addRivalInfo.vue'), - name: 'AddRivalInfo', - menuId: 'caseManageT/addRivalInfo', - meta: { - title: '对手信息补录', - sort:1, - hidden:true - } - }, - { - path: 'CustomerIdentification', - component: () => import('@/views/amld/CaseManageComponents/CustomerInfoManage/CustomerIdentification.vue'), - name: 'CustomerIdentification', - menuId: 'caseManageT/CustomerIdentification', - meta: { - title: '客户识别', - sort:1, - hidden:true - } - }, - { - path: 'CustomerRiskRate', - component: () => import('@/views/amld/CaseManageComponents/CustomerInfoManage/CustomerRiskRate.vue'), - name: 'CustomerRiskRate', - menuId: 'caseManageT/CustomerRiskRate', - meta: { - title: '客户评级', - sort:1, - hidden:true - } - }, - - ], - }, -]; - -export const asyncRouterMap: AppRouteRecordRaw[] = [ - /*---------------------案例预警start------------------------*/ - { - path: '/caseManage', - component: Layout, - redirect: '/caseManage', - name: 'CaseManage', - menuId: 'CaseManage', - meta: { - title: '案例管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"bslc", - sort:1, - }, - children: [ - { - path: 'LargScaleCaseDeal', - component: () => import('@/views/amld/LargScaleCaseDeal/LargScaleCaseDeal.vue'), - name: 'LargScaleCaseDeal', - menuId: 'caseManage/LargScaleCaseDeal', - meta: { - title: '大额案例处理', - sort:1, - }, - }, - { - path: 'SuspiciousCaseDeal', - component: () => import('@/views/amld/SuspiciousCaseDeal/SuspiciousCaseDeal.vue'), - name: 'SuspiciousCaseDeal', - menuId: 'caseManage/SuspiciousCaseDeal', - meta: { - title: '可疑案例处理', - sort:2, - }, - }, - { - path: 'SuspiciousCaseReview', - component: () => import('@/views/amld/SuspiciousCaseReview/SuspiciousCaseReview.vue'), - name: 'SuspiciousCaseReview', - menuId: 'caseManage/SuspiciousCaseReview', - meta: { - title: '可疑案例上报复核', - sort:3, - }, - }, - { - path: 'SuspiciousCaseExclude', - component: () => import('@/views/amld/SuspiciousCaseExclude/SuspiciousCaseExclude.vue'), - name: 'SuspiciousCaseExclude', - menuId: 'caseManage/SuspiciousCaseExclude', - meta: { - title: '可疑案例排除复核', - sort:4, - }, - }, - { - path: 'SuspiciousTraceDeal', - component: () => import('@/views/amld/SuspiciousTraceDeal/SuspiciousTraceDeal.vue'), - name: 'SuspiciousTraceDeal', - menuId: 'caseManage/SuspiciousTraceDeal', - meta: { - title: '案例跟踪处理', - sort:5, - }, - }, - { - path: 'LargeCaseReview', - component: () => import('@/views/amld/LargeCaseReview/LargeCaseReview.vue'), - name: 'LargeCaseReview', - menuId: 'caseManage/LargeCaseReview', - meta: { - title: '大额案例审核', - sort:6, - }, - }, - { - path: 'SuspiciousCaseVerify', - component: () => import('@/views/amld/SuspiciousCaseVerify/SuspiciousCaseVerify.vue'), - name: 'SuspiciousCaseVerify', - menuId: 'caseManage/SuspiciousCaseVerify', - meta: { - title: '可疑案例审批', - sort:7, - }, - }, - ] - }, - { - path: '/dataSupplement', - component: Layout, - redirect: '/dataSupplement', - name: 'DataSupplement', - menuId: 'DataSupplement', - meta: { - title: '数据补录', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"bslc", - sort:2, - }, - children: [ - { - path: 'TransactionInfo', - component: () => import('@/views/amld/TransactionInfo/TransactionInfo.vue'), - name: 'TransactionInfo', - menuId: 'dataSupplement/TransactionInfo', - meta: { - title: '交易信息补录', - sort:1, - } - }, - { - path: 'AmlRuleCust', - component: () => import('@/views/amld/AmlRuleCust/AmlRuleCust.vue'), - name: 'AmlRuleCust', - menuId: 'dataSupplement/AmlRuleCust', - meta: { - title: '客户信息补录', - sort:2, - } - }, - { - path: 'CompetitorMaintain', - component: () => import('@/views/amld/CompetitorMaintain/CompetitorMaintain.vue'), - name: 'CompetitorMaintain', - menuId: 'dataSupplement/CompetitorMaintain', - meta: { - title: '对手信息维护', - sort:3, - }, - }, - { - path: 'amlRuleAutoslay', - component: () => import('@/views/amld/AmlRuleAutoslay/AmlRuleAutoslay.vue'), - name: 'AmlRuleAutoslay', - menuId: 'dataSupplement/AmlRuleAutoslay', - meta: { - title: '上报交易补录', - sort:4, - }, - }, - { - path: 'CompetitorInstitution', - component: () => import('@/views/amld/CompetitorInstitution/CompetitorInstitution.vue'), - name: 'CompetitorInstitution', - menuId: 'dataSupplement/CompetitorInstitution', - meta: { - title: '对手金融机构维护', - sort:5, - }, - }, - ] - }, - { - path: '/taskTracking', - component: Layout, - redirect: '/taskTracking', - name: 'TaskTracking', - menuId: 'TaskTracking', - meta: { - title: '任务跟踪', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"bslc", - sort:3, - }, - children: [ - { - path: 'ExpirationManagement', - component: () => import('@/views/amld/ExpirationManagement/ExpirationManagement.vue'), - name: 'ExpirationManagement', - menuId: 'taskTracking/ExpirationManagement', - meta: { - title: '逾期管理', - sort:1, - }, - }, - { - path: 'DataurgeManage', - component: () => import('@/views/amld/DataurgeManage/DataurgeManage.vue'), - name: 'DataurgeManage', - menuId: 'taskTracking/DataurgeManage', - meta: { - title: '督办管理', - sort:2, - }, - }, - { - path: 'DataurgeQuery', - component: () => import('@/views/amld/DataurgeQuery/DataurgeQuery.vue'), - name: 'DataurgeQuery', - menuId: 'taskTracking/DataurgeQuery', - meta: { - title: '督办查询', - sort:3, - }, - }, - ] - }, - { - path: '/receiptManagement', - component: Layout, - redirect: '/receiptManagement', - name: 'ReceiptManagement', - menuId: 'ReceiptManagement', - meta: { - title: '回执管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"bslc", - sort:4, - }, - children: [ - { - path: 'amlRetRgjxAnalysis', - component: () => import('@/views/amld/AmlRetRgjxAnalysis/AmlRetRgjxAnalysis.vue'), - name: 'AmlRetRgjxAnalysis', - menuId: 'receiptManagement/AmlRetRgjxAnalysis', - meta: { - title: '人工补正回执解析', - sort:1, - }, - }, - { - path: 'HzwjAnalysis', - component: () => import('@/views/amld/HzwjAnalysis/HzwjAnalysis.vue'), - name: 'HzwjAnalysis', - menuId: 'receiptManagement/HzwjAnalysis', - meta: { - title: '回执文件解析', - sort:2, - }, - }, - { - path: 'amlRuleAutoslayError', - component: () => import('@/views/amld/AmlRuleAutoslayError/AmlRuleAutoslayError.vue'), - name: 'AmlRuleAutoslayError', - menuId: 'receiptManagement/AmlRuleAutoslayError', - meta: { - title: '错误回执客户补录', - sort:3, - }, - }, - { - path: 'ErrorTransaction', - component: () => import('@/views/amld/ErrorTransaction/ErrorTransaction.vue'), - name: 'ErrorTransaction', - menuId: 'receiptManagement/ErrorTransaction', - meta: { - title: '错误回执交易补录', - sort:4, - }, - }, - { - path: 'amlRetRgjxDealing', - component: () => import('@/views/amld/AmlRetRgjxDealing/AmlRetRgjxDealing.vue'), - name: 'AmlRetRgjxDealing', - menuId: 'receiptManagement/AmlRetRgjxDealing', - meta: { - title: '人工补正回执处理', - sort:5, - }, - }, - { - path: 'UploadInvalidDeal', - component: () => import('@/views/amld/UploadInvalidDeal/UploadInvalidDeal.vue'), - name: 'UploadInvalidDeal', - menuId: 'receiptManagement/UploadInvalidDeal', - meta: { - title: '上报无效处理', - sort:6, - }, - }, - { - path: 'amlSysDataurgeQuery', - component: () => import('@/views/amld/AmlSysDataurgeQuery/AmlSysDataurgeQuery.vue'), - name: 'AmlSysDataurgeQuery', - menuId: 'receiptManagement/AmlSysDataurgeQuery', - meta: { - title: '回执管理查询', - sort:7, - }, - }, - { - path: 'UploadDataDelete', - component: () => import('@/views/amld/UploadDataDelete/UploadDataDelete.vue'), - name: 'UploadDataDelete', - menuId: 'receiptManagement/UploadDataDelete', - meta: { - title: '上报数据删除', - sort:8, - }, - }, - { - path: 'UploadDataError', - component: () => import('@/views/amld/UploadDataError/UploadDataError.vue'), - name: 'UploadDataError', - menuId: 'receiptManagement/UploadDataError', - meta: { - title: '上报数据纠错', - sort:9, - }, - }, - ] - }, - { - path: '/paperManagement', - component: Layout, - redirect: '/paperManagement', - name: 'PaperManagement', - menuId: 'PaperManagement', - meta: { - title: '报文管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"bslc", - sort:6 - }, - children: [ - { - path: 'LargeMessageGenerate', - component: () => import('@/views/amld/LargeMessageGenerate/LargeMessageGenerate.vue'), - name: 'LargeMessageGenerate', - menuId: 'paperManagement/LargeMessageGenerate', - meta: { - title: '大额报文生成', - sort:1, - }, - }, - { - path: 'SuspiciousMessageGenerate', - component: () => import('@/views/amld/SuspiciousMessageGenerate/SuspiciousMessageGenerate.vue'), - name: 'SuspiciousMessageGenerate', - menuId: 'paperManagement/SuspiciousMessageGenerate', - meta: { - title: '可疑报文生成', - sort:2, - }, - }, - { - path: 'deletePaper', - component: () => import('@/views/amld/DeletePaper/DeletePaper.vue'), - name: 'DeletePaper', - menuId: 'paperManagement/DeletePaper', - meta: { - title: '删除报文生成', - sort:3, - }, - }, - { - path: 'RepPackageDown', - component: () => import('@/views/amld/RepPackageDown/RepPackageDown.vue'), - name: 'RepPackageDown', - menuId: 'paperManagement/RepPackageDown', - meta: { - title: '数据包下载', - sort:4, - }, - }, - { - path: 'SuspiciousPackageDown', - component: () => import('@/views/amld/SuspiciousPackageDown/SuspiciousPackageDown.vue'), - name: 'SuspiciousPackageDown', - menuId: 'paperManagement/SuspiciousPackageDown', - meta: { - title: '可疑附件打包', - sort:5, - }, - }, - ] - }, - { - path: '/namePaperManagement', - component: Layout, - redirect: '/namePaperManagement', - name: 'NamePaperManagement', - menuId: 'NamePaperManagement', - meta: { - title: '名单库管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"bslc", - sort:7, - }, - children: [ - { - path: 'SuspiciousMain', - component: () => import('@/views/amld/SuspiciousMain/SuspiciousMain.vue'), - name: 'SuspiciousMain', - menuId: 'namePaperManagement/SuspiciousMain', - meta: { - title: '可疑库', - sort:1, - }, - }, - { - path: 'AttentionMain', - component: () => import('@/views/amld/AttentionMain/AttentionMain.vue'), - name: 'AttentionMain', - menuId: 'namePaperManagement/AttentionMain', - meta: { - title: '关注库', - sort:2, - }, - }, - ] - }, - /*---------------------案例预警end------------------------*/ - - /*---------------------统计分析start------------------------*/ - { - path: '/nameListManagement', - component: Layout, - redirect: '/nameListManagement', - name: 'NameListManagement', - menuId: 'NameListManagement', - meta: { - title: '名单管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"mdgl", - sort:1, - }, - children: [ - { - path: 'whiteListMaintain', - component: () => import('@/views/amld/whiteListMaintain/whiteListMaintain.vue'), - name: 'whiteListMaintain', - menuId: 'nameListManagement/whiteListMaintain', - meta: { - title: '白名单维护', - sort:1, - }, - }, - { - path: 'whiteListVerify', - component: () => import('@/views/amld/whiteListVerify/whiteListVerify.vue'), - name: 'whiteListVerify', - menuId: 'nameListManagement/whiteListVerify', - meta: { - title: '白名单审核', - sort:2, - }, - }, - { - path: 'whiteListQuery', - component: () => import('@/views/amld/whiteListQuery/whiteListQuery.vue'), - name: 'whiteListQuery', - menuId: 'nameListManagement/whiteListQuery', - meta: { - title: '白名单查询', - sort:3, - }, - }, - { - path: 'blackListMaitain', - component: () => import('@/views/amld/blackListMaitain/blackListMaitain.vue'), - name: 'blackListMaitain', - menuId: 'nameListManagement/blackListMaitain', - meta: { - title: '黑名单维护', - sort:4, - }, - }, - { - path: 'blackListShare', - component: () => import('@/views/amld/blackListShare/blackListShare.vue'), - name: 'blackListShare', - menuId: 'nameListManagement/blackListShare', - meta: { - title: '黑名单共享', - sort:5, - }, - }, - { - path: 'BlacklistsScreen', - component: () => import('@/views/amld/BlacklistsScreen/BlacklistsScreen.vue'), - name: 'BlacklistsScreen', - menuId: 'nameListManagement/BlacklistsScreen', - meta: { - title: '黑名单回溯性调查', - sort:6, - }, - }, - { - path: 'blackListQuery', - component: () => import('@/views/amld/blackListQuery/blackListQuery.vue'), - name: 'blackListQuery', - menuId: 'nameListManagement/blackListQuery', - meta: { - title: '黑名单查询', - sort:7, - }, - }, - ] - }, - { - path: '/statisticalManagement', - component: Layout, - redirect: '/statisticalManagement', - name: 'StatisticalManagement', - menuId: 'StatisticalManagement', - meta: { - title: '统计分析', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:'mdgl', - sort:2 - }, - children: [ - { - path: 'KytzStatistics', - component: () => import('@/views/amld/KytzStatistics/KytzStatistics.vue'), - name: 'KytzStatistics', - menuId: 'statisticalManagement/KytzStatistics', - meta: { - title: '可疑特征统计', - sort:1, - }, - }, - { - path: 'PcyjStatistics', - component: () => import('@/views/amld/PcyjStatistics/PcyjStatistics.vue'), - name: 'PcyjStatistics', - menuId: 'statisticalManagement/PcyjStatistics', - meta: { - title: '排除预警统计', - sort:2, - }, - }, - { - path: 'SuspiciousPaperQuery', - component: () => import('@/views/amld/SuspiciousPaperQuery/SuspiciousPaperQuery.vue'), - name: 'SuspiciousPaperQuery', - menuId: 'statisticalManagement/SuspiciousPaperQuery', - meta: { - title: '可疑报告查询', - sort:3, - }, - }, - { - path: 'KyjyStatistics', - component: () => import('@/views/amld/KyjyStatistics/KyjyStatistics.vue'), - name: 'KyjyStatistics', - menuId: 'statisticalManagement/KyjyStatistics', - meta: { - title: '可疑交易报告统计', - sort:4, - }, - }, - { - path: 'WarnOutQuery', - component: () => import('@/views/amld/WarnOutQuery/WarnOutQuery.vue'), - name: 'WarnOutQuery', - menuId: 'statisticalManagement/WarnOutQuery', - meta: { - title: '排除预警查询', - sort:5, - }, - }, - { - path: 'LargePaperQuery', - component: () => import('@/views/amld/LargePaperQuery/LargePaperQuery.vue'), - name: 'LargePaperQuery', - menuId: 'statisticalManagement/LargePaperQuery', - meta: { - title: '大额报告查询', - sort:6, - }, - }, - { - path: 'DejyStatistics', - component: () => import('@/views/amld/DejyStatistics/DejyStatistics.vue'), - name: 'DejyStatistics', - menuId: 'statisticalManagement/DejyStatistics', - meta: { - title: '大额交易报告统计', - sort:7, - }, - }, - { - path: 'YjqkStatistics', - component: () => import('@/views/amld/YjqkStatistics/YjqkStatistics.vue'), - name: 'YjqkStatistics', - menuId: 'statisticalManagement/YjqkStatistics', - meta: { - title: '预警情况统计', - sort:8, - }, - }, - { - path: 'JyqdStatistics', - component: () => import('@/views/amld/JyqdStatistics/JyqdStatistics.vue'), - name: 'JyqdStatistics', - menuId: 'statisticalManagement/JyqdStatistics', - meta: { - title: '交易渠道统计', - sort:9, - }, - }, - { - path: 'KyjxStatistics', - component: () => import('@/views/amld/KyjxStatistics/KyjxStatistics.vue'), - name: 'KyjxStatistics', - menuId: 'statisticalManagement/KyjxStatistics', - meta: { - title: '可疑接续报告统计', - sort:10, - }, - }, - - - - ] - }, - - /*---------------------统计分析end------------------------*/ - - /*---------------------风险评级start(pjgl)------------------------*/ - { - path: '/customerInfoManagement', - component: Layout, - redirect: '/customerInfoManagement', - name: 'CustomerInfoManagement', - menuId: 'CustomerInfoManagement', - meta: { - title: '客户信息管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:1, - }, - children: [ - { - path: 'CustomerQuery', - component: () => import('@/views/amld/CustomerQuery/CustomerQuery.vue'), - name: 'CustomerQuery', - menuId: 'customerInfoManagement/CustomerQuery', - meta: { - title: '客户信息查询', - sort:1, - }, - }, - { - path: 'CustomerMaintain', - component: () => import('@/views/amld/CustomerMaintain/CustomerMaintain.vue'), - name: 'CustomerMaintain', - menuId: 'customerInfoManagement/CustomerMaintain', - meta: { - title: '客户信息维护', - sort:2, - }, - }, - - ] - }, - { - path: '/localCheck', - component: Layout, - redirect: '/localCheck/localCheckTask', - name: 'LocalCheck', - menuId: 'LocalCheck', - meta: { - title: '现场检查', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:2, - }, - children: [ - { - path: 'LocalCheckTask', - component: () => import('@/views/amld/LocalCheckTask/LocalCheckTask.vue'), - name: 'LocalCheckTask', - menuId: 'localCheckTask/LocalCheckTask', - meta: { - title: '现场检查', - sort:1 - }, - }, - { - path: 'LocalCheckVerify', - component: () => import('@/views/amld/LocalCheckVerify/LocalCheckVerify.vue'), - name: 'LocalCheckVerify', - menuId: 'localCheckVerify/LocalCheckVerify', - meta: { - title: '现场检查审核', - sort:2 - }, - } - ] - }, - { - path: '/customerRiskLevel', - component: Layout, - redirect: '/customerRiskLevel', - name: 'CustomerRiskLevel', - menuId: 'CustomerRiskLevel', - meta: { - title: '客户风险评级', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:3, - }, - children: [ - { - path: 'crrRiskResultFirst', - component: () => import('@/views/amld/crrRiskResultFirst/crrRiskResultFirst.vue'), - name: 'crrRiskResultFirst', - menuId: 'customerRiskLevel/crrRiskResultFirst', - meta: { - title: '客户评级初评', - sort:1, - }, - }, - { - path: 'crrRiskResultSecond', - component: () => import('@/views/amld/crrRiskResultSecond/crrRiskResultSecond.vue'), - name: 'crrRiskResultSecond', - menuId: 'customerRiskLevel/crrRiskResultSecond', - meta: { - title: '客户评级复评', - sort:2, - }, - }, - { - path: 'crrRiskResultVerify', - component: () => import('@/views/amld/crrRiskResultVerify/crrRiskResultVerify.vue'), - name: 'crrRiskResultVerify', - menuId: 'customerRiskLevel/crrRiskResultVerify', - meta: { - title: '客户评级审核', - sort:3, - }, - }, - ] - }, - { - path: '/automaticRatingManagement', - component: Layout, - redirect: '/automaticRatingManagement', - name: 'AutomaticRatingManagement', - menuId: 'AutomaticRatingManagement', - meta: { - title: '自动评级管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:4, - }, - children: [ - { - path: 'CustomerLevelStatus', - component: () => import('@/views/amld/CustomerLevelStatus/CustomerLevelStatus.vue'), - name: 'CustomerLevelStatus', - menuId: 'automaticRatingManagement/CustomerLevelStatus', - meta: { - title: '客户评级状态查询', - sort:1 - }, - }, - { - path: 'UserLevelQuery', - component: () => import('@/views/amld/UserLevelQuery/UserLevelQuery.vue'), - name: 'UserLevelQuery', - menuId: 'automaticRatingManagement/UserLevelQuery', - meta: { - title: '人工发起评级查询', - sort:2 - }, - }, - ] - }, - { - path: '/customerRiskLevelController', - component: Layout, - redirect: '/customerRiskLevel', - name: 'CustomerRiskLevelController', - menuId: 'CustomerRiskLevelController', - meta: { - title: '客户风险等级控制', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:5, - }, - children: [ - { - path: 'CustomerRiskLevelQuery', - component: () => import('@/views/amld/CustomerRiskLevelQuery/CustomerRiskLevelQuery.vue'), - name: 'CustomerRiskLevelQuery', - menuId: 'customerRiskLevelController/CustomerRiskLevelQuery', - meta: { - title: '客户风险等级查询', - sort:1 - }, - }, - { - path: 'RGDBQuery', - component: () => import('@/views/amld/RGDBQuery/RGDBQuery.vue'), - name: 'RGDBQuery', - menuId: 'customerRiskLevelController/RGDBQuery', - meta: { - title: '人工督办查询', - sort:2 - }, - }, - { - path: 'CustomerRiskLevelChange', - component: () => import('@/views/amld/CustomerRiskLevelChange/CustomerRiskLevelChange.vue'), - name: 'CustomerRiskLevelChange', - menuId: 'customerRiskLevelController/CustomerRiskLevelChange', - meta: { - title: '客户风险等级变化', - sort:3 - }, - }, - - - ] - }, - { - path: '/riskLevelConfig', - component: Layout, - redirect: '/riskLevelConfig', - name: 'RiskLevelConfig', - menuId: 'RiskLevelConfig', - meta: { - title: '风险等级参数配置', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:6 - }, - children: [ - { - path: 'LevelMaintain', - component: () => import('@/views/amld/LevelMaintain/LevelMaintain.vue'), - name: 'LevelMaintain', - menuId: 'riskLevelConfig/LevelMaintain', - meta: { - title: '评级参数维护', - sort:1 - }, - }, - { - path: 'ScoreLevelAdjust', - component: () => import('@/views/amld/ScoreLevelAdjust/ScoreLevelAdjust.vue'), - name: 'ScoreLevelAdjust', - menuId: 'riskLevelConfig/ScoreLevelAdjust', - meta: { - title: '评分区间调整', - sort:2 - }, - }, - ] - }, - { - path: '/customerIdentityVerify', - component: Layout, - redirect: '/customerIdentityVerify', - name: 'CustomerIdentityVerify', - menuId: 'CustomerIdentityVerify', - meta: { - title: '客户身份识别', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:8, - }, - children: [ - { - path: 'NewCustomerIdentity', - component: () => import('@/views/amld/NewCustomerIdentity/NewCustomerIdentity.vue'), - name: 'NewCustomerIdentity', - menuId: 'customerIdentityVerify/NewCustomerIdentity', - meta: { - title: '新开客户识别', - sort:1, - }, - }, - { - path: 'ReCustomerIdentity', - component: () => import('@/views/amld/ReCustomerIdentity/ReCustomerIdentity.vue'), - name: 'ReCustomerIdentity', - menuId: 'customerIdentityVerify/ReCustomerIdentity', - meta: { - title: '重新客户识别', - sort:2, - }, - }, - { - path: 'CustomerIdentityQuery', - component: () => import('@/views/amld/CustomerIdentityQuery/CustomerIdentityQuery.vue'), - name: 'CustomerIdentityQuery', - menuId: 'customerIdentityVerify/CustomerIdentityQuery', - meta: { - title: '客户识别查询', - sort:3, - }, - }, - ] - }, - { - path: '/financeProRiskEvaluation', - component: Layout, - redirect: '/financeProRiskEvaluation', - name: 'FinanceProRiskEvaluation', - menuId: 'FinanceProRiskEvaluation', - meta: { - title: '金融产品(业务)风险评估管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:9 - }, - children: [ - { - path: 'JRCPSelfEvaluation', - component: () => import('@/views/amld/JRCPSelfEvaluation/JRCPSelfEvaluation.vue'), - name: 'JRCPSelfEvaluation', - menuId: 'financeProRiskEvaluation/JRCPSelfEvaluation', - meta: { - title: '金融产品业务自评', - sort:1 - }, - }, - { - path: 'JRCPVerify', - component: () => import('@/views/amld/JRCPVerify/JRCPVerify.vue'), - name: 'JRCPVerify', - menuId: 'financeProRiskEvaluation/JRCPVerify', - meta: { - title: '金融产品业务审核', - sort:2 - }, - }, - { - path: 'JRCPRiskLevelQuery', - component: () => import('@/views/amld/JRCPRiskLevelQuery/JRCPRiskLevelQuery.vue'), - name: 'JRCPRiskLevelQuery', - menuId: 'financeProRiskEvaluation/JRCPRiskLevelQuery', - meta: { - title: '金融产品业务风险等级查询', - sort:3 - }, - }, - { - path: 'JRCPEvaluateQuery', - component: () => import('@/views/amld/JRCPEvaluateQuery/JRCPEvaluateQuery.vue'), - name: 'JRCPEvaluateQuery', - menuId: 'financeProRiskEvaluation/JRCPEvaluateQuery', - meta: { - title: '金融产品业务评估状态查询', - sort:4 - }, - }, - { - path: 'UserFinanceEvaluate', - component: () => import('@/views/amld/UserFinanceEvaluate/UserFinanceEvaluate.vue'), - name: 'UserFinanceEvaluate', - menuId: 'financeProRiskEvaluation/UserFinanceEvaluate', - meta: { - title: '人工发起金融产品(业务)评估查询', - sort:5 - }, - }, - ] - }, - { - path: '/financialProLevelConfig', - component: Layout, - redirect: '/financialProLevelConfig', - name: 'FinancialProLevelConfig', - menuId: 'FinancialProLevelConfig', - meta: { - title: '金融产品(业务)等级参数配置', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"pjgl", - sort:10, - }, - children: [ - { - path: 'ProductRiskItem', - component: () => import('@/views/amld/ProductRiskItem/ProductRiskItem.vue'), - name: 'ProductRiskItem', - menuId: 'financialProLevelConfig/ProductRiskItem', - meta: { - title: '金融产品(业务)风险子项', - sort:1 - }, - }, - { - path: 'ProductRiskLevel', - component: () => import('@/views/amld/ProductRiskLevel/ProductRiskLevel.vue'), - name: 'ProductRiskLevel', - menuId: 'financialProLevelConfig/ProductRiskLevel', - meta: { - title: '金融产品(业务)风险评估规则', - sort:2 - }, - }, - ] - }, - /*---------------------风险评级end(pjgl)------------------------*/ - - /*---------------------系统管理start------------------------*/ - { - path: '/ruleModelManagement', - component: Layout, - redirect: '/ruleModelManagement', - name: 'RuleModelManagement', - menuId: 'RuleModelManagement', - meta: { - title: '规则模型管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"xtgl", - sort:1 - }, - children: [ - { - path: 'ModelMaintain', - component: () => import('@/views/amld/ModelMaintain/ModelMaintain.vue'), - name: 'ModelMaintain', - menuId: 'ruleModelManagement/ModelMaintain', - meta: { - title: '模型维护', - sort:1 - }, - }, - { - path: 'ModelConfig', - component: () => import('@/views/amld/ModelConfig/ModelConfig.vue'), - name: 'ModelConfig', - menuId: 'ruleModelManagement/ModelConfig', - meta: { - title: '模型阈值配置', - sort:2 - }, - }, - { - path: 'ModleVerify', - component: () => import('@/views/amld/ModleVerify/ModleVerify.vue'), - name: 'ModleVerify', - menuId: 'ruleModelManagement/ModleVerify', - meta: { - title: '模型阈值审核', - sort:3 - }, - }, - { - path: 'ModelEvaluate', - component: () => import('@/views/amld/ModelEvaluate/ModelEvaluate.vue'), - name: 'ModelEvaluate', - menuId: 'ruleModelManagement/ModelEvaluate', - meta: { - title: '模型评价', - sort:4 - }, - }, - { - path: 'ModelOutPut', - component: () => import('@/views/amld/ModelOutPut/ModelOutPut.vue'), - name: 'ModelOutPut', - menuId: 'ruleModelManagement/ModelOutPut', - meta: { - title: '模型出数情况', - sort:5 - }, - }, - ] - }, - { - path: '/system', - component: Layout, - redirect: '/system/sys-menu', - name: 'System', - menuId: 'System', - meta: { - title: '系统管理', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"xtgl", - sort:2, - }, - children: [ - { - path: 'sys-user', - component: () => import('@/views/system/SysUser/SysUser.vue'), - name: 'SysUser', - menuId: 'system/SysUser', - meta: { - title: '用户信息维护', - sort:1 - }, - }, - { - path: 'sys-role', - component: () => import('@/views/system/SysRole/SysRole.vue'), - name: 'SysRole', - menuId: 'system/SysRole', - meta: { - title: '角色信息维护', - sort:2 - }, - }, - { - path: 'sys-organ', - component: () => import('@/views/param/SysOrgan/SysOrgan.vue'), - name: 'SysOrgan', - menuId: 'param/SysOrgan', - meta: { - title: '机构信息维护', - sort:3 - }, - }, - { - path: 'sys-menu', - component: () => import('@/views/system/SysMenu/SysMenu.vue'), - name: 'SysMenu', - menuId: 'system/SysMenu', - meta: { - title: '菜单信息维护', - sort:4 - }, - }, - { - path: 'rep-data-source', - component: () => import('@/views/param/RepDataSource/RepDataSource.vue'), - name: 'RepDataSource', - menuId: 'param/RepDataSource', - meta: { - title: '数据源管理', - sort:5 - } - }, - - { - path: 'sys-login-log', - component: () => import('@/views/system/SysLoginLog/SysLoginLog.vue'), - name: 'SysLoginLog', - menuId: 'system/SysLoginLog', - meta: { - title: '登录日志查询', - sort:6 - }, - }, - { - path: 'sys-organ-tree', - component: () => import('@/views/param/SysOrganTree/SysOrganTree.vue'), - name: 'SysOrganTree', - menuId: 'param/SysOrganTree', - meta: { - title: '机构树管理', - sort:7 - } - }, - { - path: 'AmlBsiHoliday', - component: () => import('@/views/amld/AmlBsiHoliday/AmlBsiHoliday.vue'), - name: 'AmlBsiHoliday', - menuId: 'system/AmlBsiHoliday', - meta: { - title: '节假日', - sort:8 - }, - }, - { - path: 'job', - component: Layout, - redirect: '/job/rep-job', - name: 'Job', - menuId: 'Job', - meta: { - title: '作业管理', - // icon: 'tdesign:task-setting', - alwaysShow: true, - sort:9 - }, - children: [ - { - path: 'rep-job', - component: () => import('@/views/job/RepJob/RepJob.vue'), - name: 'RepJob', - menuId: 'job/RepJob', - meta: { - title: '作业配置', - sort:1 - }, - }, - { - path: 'JobMonitor', - component: () => import('@/views/job/RepTask/RepTask.vue'), - name: 'JobMonitor', - menuId: 'job/JobMonitor', - meta: { - title: '任务监控', - sort:2 - }, - }, - { - path: 'RepScheduleJob', - component: () => import('@/views/job/RepScheduleJob/RepScheduleJob.vue'), - name: 'RepScheduleJob', - menuId: 'job/RepScheduleJob', - meta: { - title: '定时任务列表', - sort:3 - }, - } - - ], - }, - // { - // path: 'sys-dictcode', - // component: () => import('@/views/param/SysDictcode/SysDictcode.vue'), - // name: 'SysDictcode', - // menuId: 'param/SysDictcode', - // meta: { - // title: '参数管理', - // }, - // }, - ], - }, - { - path: '/workGuidance', - component: Layout, - redirect: '/workGuidance', - name: 'WorkGuidance', - menuId: 'WorkGuidance', - meta: { - title: '工作指引', - icon: 'eos-icons:role-binding', - alwaysShow: true, - type:"xtgl", - sort:3 - }, - children: [ - { - path: 'JGWJQuery', - component: () => import('@/views/amld/JGWJQuery/JGWJQuery.vue'), - name: 'JGWJQuery', - menuId: 'workGuidance/JGWJQuery', - meta: { - title: '监管文件查询', - sort:5 - }, - }, - { - path: 'JGWJMaintain', - component: () => import('@/views/amld/JGWJMaintain/JGWJMaintain.vue'), - name: 'JGWJMaintain', - menuId: 'workGuidance/JGWJMaintain', - meta: { - title: '监管文件维护', - sort:6 - }, - }, - ] - }, - - - /*---------------------系统管理end------------------------*/ - // { - // path: '/system', - // component: Layout, - // redirect: '/system/sys-menu', - // name: 'System', - // menuId: 'System', - // meta: { - // title: '报送', - // icon: 'eos-icons:role-binding', - // alwaysShow: true, - // // type:"bslc" - // }, - // children: [] - // }, - // { - // path: '/system', - // component: Layout, - // redirect: '/system/sys-menu', - // name: 'System', - // menuId: 'System', - // meta: { - // title: '查询分析', - // icon: 'eos-icons:role-binding', - // alwaysShow: true, - // }, - // children: [] - // }, - // { - // path: '/system', - // component: Layout, - // redirect: '/system/sys-menu', - // name: 'System', - // menuId: 'System', - // meta: { - // title: '评级', - // icon: 'eos-icons:role-binding', - // alwaysShow: true, - // }, - // children: [] - // }, - // { - // path: '/system', - // component: Layout, - // redirect: '/system/sys-menu', - // name: 'System', - // menuId: 'System', - // meta: { - // title: '管理', - // icon: 'eos-icons:role-binding', - // alwaysShow: true, - // type:"xtgl" - // }, - // children: [] - // }, - - - // { - // path: '/system', - // component: Layout, - // redirect: '/system/sys-menu', - // name: 'System', - // menuId: 'System', - // meta: { - // title: '系统管理', - // icon: 'eos-icons:role-binding', - // alwaysShow: true, - // }, - // children: [ - // { - - // } - // ] - // }, - - - { - path: '/business', - component: Layout, - redirect: '/business/businesssystem', - name: 'business', - menuId: 'business', - meta: { - title: '业务系统管理', - icon: 'tdesign:task-setting', - alwaysShow: true, - }, - children: [ - { - path: 'businesssystem', - component: () => import('@/views/csck/CsckBusinessSystem/CsckBusinessSystem.vue'), - name: 'Businesssystem', - menuId: 'businesssystem', - meta: { - title: '业务系统管理', - }, - }, - ], - }, - { - path: '/model', - component: Layout, - redirect: '/csck/model', - name: 'model', - menuId: 'model', - meta: { - title: '模型配置管理', - icon: 'tdesign:task-setting', - alwaysShow: true, - }, - children: [ - { - path: 'modeldetail', - component: () => import('@/views/csck/CsckModelDetail/CsckModelDetail.vue'), - name: 'Modeldetail', - menuId: 'modeldetail', - meta: { - title: '明细模型管理', - }, - }, - { - path: 'modelitem', - component: () => import('@/views/csck/CsckModelItem/CsckModelItem.vue'), - name: 'Modelitem', - menuId: 'modelitem', - meta: { - title: '指标模型管理', - }, - }, - ], - }, - // { - // path: '/update', - // component: Layout, - // redirect: '/csck/update', - // name: 'update', - // menuId: 'update', - // meta: { - // title: '制度管理', - // icon: 'tdesign:task-setting', - // alwaysShow: true, - // }, - // children: [ - // { - // path: 'updatepack', - // component: () => import('@/views/csck/CsckPackageUpgrade/index.vue'), - // name: 'updatepack', - // menuId: 'updatepack', - // meta: { - // title: '制度包升级', - // }, - // }, - // ], - // }, - { - path: '/check', - component: Layout, - redirect: '/csck/check', - name: 'check', - menuId: 'check', - meta: { - title: '数据校验中心', - icon: 'tdesign:data-checked', - alwaysShow: true, - }, - children: [ - { - path: 'checkversion', - component: () => import('@/views/csck/CsckCheckVesrion/CsckCheckVesrion.vue'), - name: 'Checkversion', - menuId: 'checkversion', - meta: { - title: '校验版本管理', - }, - }, - { - path: 'checkrule', - component: () => import('@/views/csck/CsckCheckRule/CsckCheckRule.vue'), - name: 'Checkrule', - menuId: 'checkrule', - meta: { - title: '校验规则定义', - }, - }, - { - path: 'datacheckresult/:organCode/:id/:date', - component: () => import('@/views/csck/CsckDataCheckResult/CsckDataCheckResult.vue'), - name: 'Datacheckresult', - menuId: 'datacheckresult', - meta: { - title: '校验结果监控', - }, - }, - { - path: 'datacheckimport', - component: () => import('@/views/csck/CsckDataCheckImport/CsckDataCheckImport.vue'), - name: 'Datacheckimport', - menuId: 'datacheckimport', - meta: { - title: '校验数据导出', - }, - }, - ], - }, -]; - -const router = createRouter({ - history: createWebHashHistory(), - strict: true, - routes: constantRouterMap as RouteRecordRaw[], - scrollBehavior: () => ({ left: 0, top: 0 }), -}); - -export const resetRouter = (): void => { - const resetWhiteNameList = ['Redirect', 'Login', 'NoFind', 'Root']; - router.getRoutes().forEach(route => { - const { name } = route; - if (name && !resetWhiteNameList.includes(name as string)) { - router.hasRoute(name) && router.removeRoute(name); - } - }); -}; - -export const setupRouter = (app: App) => { - app.use(router); -}; - -export default router; diff --git a/src/views/dataset/IndexSearchServiceMs/components/TrendAnalysis.vue b/src/views/dataset/IndexSearchServiceMs/components/TrendAnalysis.vue index 9818da3..5130365 100644 --- a/src/views/dataset/IndexSearchServiceMs/components/TrendAnalysis.vue +++ b/src/views/dataset/IndexSearchServiceMs/components/TrendAnalysis.vue @@ -7,8 +7,8 @@ - 检索 - 数据导出 - 转换 +
diff --git a/vite.config.ts b/vite.config.ts index c2c9ff5..7cfd87d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -111,26 +111,22 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { proxy: { // 选项写法 '/api': { - //target: 'http://214.129.16.68:8088/rdvs', - // target: 'http://172.16.87.111:8083/ordb', target: 'http://localhost:8082/srdb', - // target: 'http://172.16.87.111:8080/portal', - // target: 'http://localhost:8082/portal', - // target: 'http://192.168.183.136:8082/portal', + // target: 'http://172.16.87.114:8095/ordb', changeOrigin: true, rewrite: path => path.replace(/^\/api/, '') }, '/pro': { - //target: 'http://214.129.16.68:8088/rdvs', - // target: 'http://172.16.87.111:8083/ordb', target: 'http://localhost:8082/srdb', - // target: 'http://172.16.87.111:8080/portal', - // target: 'http://localhost:8082/portal', - // target: 'http://172.20.10.4:8082/portal', - // target: 'http://192.168.183.136:8082/portal', + // target: 'http://172.16.87.114:8095/ordb', changeOrigin: true, rewrite: path => path.replace(/^\/pro/, '') }, + '/dev': { + target: 'http://172.16.87.114:8095/ordb', + changeOrigin: true, + rewrite: path => path.replace(/^\/dev/, '') + }, }, hmr: { overlay: false