From e363d59d829c3e76fa7568c3456d11acc6cd2696 Mon Sep 17 00:00:00 2001 From: hyt <958868763@qq.com> Date: Wed, 24 Apr 2024 14:14:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=B7=E6=B1=82=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/apiChunks/index.js | 6 +- src/api/apis/auth.js | 2 +- src/api/apis/detailData.js | 2 +- src/api/apis/integration.js | 2 +- src/api/apis/logo.js | 4 +- .../integrationOption/integrationOption.js | 2 +- src/api/login.js | 4 +- src/api/system/integrationOption.js | 2 +- src/permission.js | 1 + src/router/index.js | 1679 +++++++++-------- src/views/apiLogs/configData.js | 267 +++ src/views/apiLogs/index.vue | 336 ++++ src/views/apiLogs/rightDialog.vue | 282 +++ src/views/applicationList/applicationAdd.vue | 4 +- src/views/applicationList/index.vue | 2 +- src/views/applicationList/settingMenu.vue | 2 +- src/views/masterDataOptions/index.vue | 2 +- src/views/masterDataOptions/masterDataAdd.vue | 4 +- src/views/masterDataOptions/settingMenu.vue | 2 +- .../roleJurisdiction/dataPermissions.vue | 2 +- vue.config.js | 5 +- 21 files changed, 1750 insertions(+), 862 deletions(-) create mode 100644 src/views/apiLogs/configData.js create mode 100644 src/views/apiLogs/index.vue create mode 100644 src/views/apiLogs/rightDialog.vue diff --git a/src/api/apiChunks/index.js b/src/api/apiChunks/index.js index 42b755d..10a33e9 100644 --- a/src/api/apiChunks/index.js +++ b/src/api/apiChunks/index.js @@ -4,7 +4,7 @@ import request from '@/utils/request' // 动态模版请求 export function getApiModuleApi(obj, data = {}) { return request({ - url: 'kangarooDataCenterV3/entranceController/option', + url: 'kangarooDataCenter/entranceController/option', method: 'post', headers: obj, data @@ -12,7 +12,7 @@ export function getApiModuleApi(obj, data = {}) { } export function getApiResultApi(data = {}) { return request({ - url: 'kangarooDataCenterV3/entranceController/option ', + url: 'kangarooDataCenter/entranceController/option ', method: 'post', headers: { tl: "appApiService", @@ -24,7 +24,7 @@ export function getApiResultApi(data = {}) { } export function getExcelApi(obj, data = {}) { return request({ - url: 'kangarooDataCenterV3/entranceController/option ', + url: 'kangarooDataCenter/entranceController/option ', method: 'post', responseType: "blob", headers: obj, diff --git a/src/api/apis/auth.js b/src/api/apis/auth.js index 887c223..9f4da06 100644 --- a/src/api/apis/auth.js +++ b/src/api/apis/auth.js @@ -2,7 +2,7 @@ import request from "@/utils/request"; export function authApi(tl,as,dj,url = '',data){ return request({ - url: 'kangarooDataCenterV3/entranceController/option' + url, + url: 'kangarooDataCenter/entranceController/option' + url, headers: { tl:tl, as:as, diff --git a/src/api/apis/detailData.js b/src/api/apis/detailData.js index f2b64ae..db021da 100644 --- a/src/api/apis/detailData.js +++ b/src/api/apis/detailData.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 获取全部插件列表 export function option(obj, data = {}) { return request({ - url: 'kangarooDataCenterV3/entranceController/option', + url: 'kangarooDataCenter/entranceController/option', method: 'post', headers: obj, data diff --git a/src/api/apis/integration.js b/src/api/apis/integration.js index 9052a74..e2c0ea9 100644 --- a/src/api/apis/integration.js +++ b/src/api/apis/integration.js @@ -6,7 +6,7 @@ import request from '@/utils/request' */ export function login(obj) { return request({ - url: 'kangarooDataCenterV3/entranceController/option', + url: 'kangarooDataCenter/entranceController/option', headers: { isToken: false, tl:obj.tl, diff --git a/src/api/apis/logo.js b/src/api/apis/logo.js index ba7366a..c1d1dbc 100644 --- a/src/api/apis/logo.js +++ b/src/api/apis/logo.js @@ -3,7 +3,7 @@ import request from "@/utils/request"; export function uploadLogo(data) { return request({ - url: "/kangarooDataCenterV3/entranceController/fileUpload", + url: "/kangarooDataCenter/entranceController/fileUpload", method: "post", data, }); @@ -11,7 +11,7 @@ export function uploadLogo(data) { //下载 export function downloadLogo(id) { return request({ - url: "/kangarooDataCenterV3/entranceController/fileDownloadNew?id=" + id, + url: "/kangarooDataCenter/entranceController/fileDownloadNew?id=" + id, method: "get", responseType: "arraybuffer", }); diff --git a/src/api/integrationOption/integrationOption.js b/src/api/integrationOption/integrationOption.js index 1ab3aa5..dbb7d00 100644 --- a/src/api/integrationOption/integrationOption.js +++ b/src/api/integrationOption/integrationOption.js @@ -3,7 +3,7 @@ import request from '@/utils/request' export function getUserModuleApi(obj, data = {}) { return request({ - url: 'kangarooDataCenterV3/entranceController/option', + url: 'kangarooDataCenter/entranceController/option', method: 'post', headers: obj, data diff --git a/src/api/login.js b/src/api/login.js index 4286edf..af877fb 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -9,11 +9,9 @@ export function login(login_name, password) { const data = { loginCode:login_name, password, - - } return request({ - url: 'kangarooDataCenterV3/entranceController/option', + url: 'kangarooDataCenter/entranceController/option', headers: { isToken: false, tl: 'loginService', diff --git a/src/api/system/integrationOption.js b/src/api/system/integrationOption.js index aea2038..71ef1d7 100644 --- a/src/api/system/integrationOption.js +++ b/src/api/system/integrationOption.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 集成应用请求 export function getPagesApi(obj, data = {}) { return request({ - url: 'kangarooDataCenterV3/entranceController/option', + url: 'kangarooDataCenter/entranceController/option', method: 'post', headers: obj, data diff --git a/src/permission.js b/src/permission.js index 50c19b5..5817219 100644 --- a/src/permission.js +++ b/src/permission.js @@ -19,6 +19,7 @@ const whiteList = [ "/register", "/systemInit", "/databaseLogin", + "/apiLogs", ]; router.beforeEach((to, from, next) => { diff --git a/src/router/index.js b/src/router/index.js index ccae5ae..1f601b0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,12 +1,12 @@ -import Vue from "vue"; -import Router from "vue-router"; +import Vue from 'vue' +import Router from 'vue-router' -Vue.use(Router); +Vue.use(Router) /* Layout */ -import Layout from "@/layout/index.vue"; -import ParentView from "@/components/ParentView"; -import ApiAdmin from "@/views/integrationApi/apiAdmin" +import Layout from '@/layout/index.vue' +import ParentView from '@/components/ParentView' +import ApiAdmin from '@/views/integrationApi/apiAdmin' /** * Note: 路由配置项 @@ -22,101 +22,106 @@ import ApiAdmin from "@/views/integrationApi/apiAdmin" * roles: ['admin', 'common'] // 访问路由的角色权限 * permissions: ['a:a:a', 'b:b:b'] // 访问路由的菜单权限 * meta : { - noCache: true // 如果设置为true,则不会被 缓存(默认 false) - title: 'title' // 设置该路由在侧边栏和面包屑中展示的名字 - icon: 'svg-name' // 设置该路由的图标,对应路径src/assets/icons/svg - breadcrumb: false // 如果设置为false,则不会在breadcrumb面包屑中显示 - activeMenu: '/system/user' // 当路由设置了该属性,则会高亮相对应的侧边栏。 - } + noCache: true // 如果设置为true,则不会被 缓存(默认 false) + title: 'title' // 设置该路由在侧边栏和面包屑中展示的名字 + icon: 'svg-name' // 设置该路由的图标,对应路径src/assets/icons/svg + breadcrumb: false // 如果设置为false,则不会在breadcrumb面包屑中显示 + activeMenu: '/system/user' // 当路由设置了该属性,则会高亮相对应的侧边栏。 + } */ // 公共路由 export const constantRoutes = [{ - path: "/redirect", - component: Layout, - hidden: true, - children: [{ - path: "/redirect/:path(.*)", - component: () => import("@/views/redirect"), - },], -}, -{ - path: "/login", - component: () => import("@/views/login"), - hidden: true, -}, -{ - path: "/register", - component: () => import("@/views/register/index"), - hidden: true, -}, -{ - path: "/systemInit", - // name: "databaseIndex", - component: () => import("@/views/systemInit/index"), - hidden: true, -}, -{ - path: "/404", - component: () => import("@/views/error/404"), - hidden: true, -}, -{ - path: "/401", - component: () => import("@/views/error/401"), - hidden: true, + path: '/redirect', + component: Layout, + hidden: true, + children: [{ + path: '/redirect/:path(.*)', + component: () => import('@/views/redirect') + }] }, + { + path: '/apiLogs', + component: () => import('@/views/apiLogs/index.vue'), + hidden: true + }, + { + path: '/login', + component: () => import('@/views/login'), + hidden: true + }, + { + path: '/register', + component: () => import('@/views/register/index'), + hidden: true + }, + { + path: '/systemInit', + // name: "databaseIndex", + component: () => import('@/views/systemInit/index'), + hidden: true + }, + { + path: '/404', + component: () => import('@/views/error/404'), + hidden: true + }, + { + path: '/401', + component: () => import('@/views/error/401'), + hidden: true + }, // { // path: "/contractAssistant", // component: () => import("@/views/contractAssistant"), // hidden: true, // }, -{ - path: "", - component: Layout, - redirect: "index", - children: [{ - path: "index", - component: () => import("@/views/index_v2"), - name: "Index", - meta: { - title: "首页", - icon: "dashboard", - affix: true, - }, - }, - { - path: "notFound", - component: () => import("@/views/notFound"), - name: "notFound", - meta: { - title: "404", - icon: "dashboard", - // affix: true, - }, - }, - ], -}, -{ - path: "/user", - component: Layout, - hidden: true, - redirect: "Profile", - children: [{ - path: "Profile", - // component: () => import('@/views/system/user/personalCenter/index'), - component: () => - import( - "@/views/systemSettings/userSettings/PersonnelSettings/personalCenter/index" - ), - name: "Profile", - meta: { - title: "个人中心", - icon: "user", + { + path: '', + component: Layout, + redirect: 'index', + children: [{ + path: 'index', + component: () => import('@/views/index_v2'), + name: 'Index', + meta: { + title: '首页', + icon: 'dashboard', + affix: true + } + }, + { + path: 'notFound', + component: () => import('@/views/notFound'), + name: 'notFound', + meta: { + title: '404', + icon: 'dashboard' + // affix: true, + } + } + ] + }, + { + path: '/user', + component: Layout, + hidden: true, + redirect: 'Profile', + children: [{ + path: 'Profile', + // component: () => import('@/views/system/user/personalCenter/index'), + component: () => + import( + '@/views/systemSettings/userSettings/PersonnelSettings/personalCenter/index' + ), + name: 'Profile', + meta: { + title: '个人中心', + icon: 'user' - }, - },], -}, + } + }] + } // { // path: "/integrationOption", // component: Layout, @@ -249,760 +254,760 @@ export const constantRoutes = [{ // }, // ], // }, - // { - // path: "/scene", - // component: Layout, - // name: "scene", - // redirect: "", - // meta: { - // title: "集成场景", - // icon: "documentation", - // }, - // children: [ - // { - // path: "", - // component: () => import("@/views/intergrationOptionScene/index.vue"), - // name: "sceneAdmin", - // meta: { - // title: "集成场景", - // }, - // }, - // { - // path: "add", - // component: () => import("@/views/intergrationOptionScene/sceneAdd.vue"), - // name: "sceneAdd", - // meta: { - // hidden: true, - // title: "新建场景", - // }, - // }, + // { + // path: "/scene", + // component: Layout, + // name: "scene", + // redirect: "", + // meta: { + // title: "集成场景", + // icon: "documentation", + // }, + // children: [ + // { + // path: "", + // component: () => import("@/views/intergrationOptionScene/index.vue"), + // name: "sceneAdmin", + // meta: { + // title: "集成场景", + // }, + // }, + // { + // path: "add", + // component: () => import("@/views/intergrationOptionScene/sceneAdd.vue"), + // name: "sceneAdd", + // meta: { + // hidden: true, + // title: "新建场景", + // }, + // }, - // ], - // }, - // { - // path: "/receipts", - // component: Layout, - // name: "receipts", - // redirect: "", - // meta: { - // title: "凭证制单", - // icon: "documentation", - // }, - // children: [ - // { - // path: "", - // component: () => import("@/views/receiptsPage/index.vue"), - // name: "receiptsAwait", - // meta: { - // title: "待制单", - // }, - // }, - // { - // path: "/finish", - // component: () => import("@/views/receiptsPage/finish.vue"), - // name: "receiptsFinish", - // meta: { - // title: "已制单", - // }, - // }, - // { - // path: "/unFinish", - // component: () => import("@/views/receiptsPage/unFinish.vue"), - // name: "receiptsUnFinish", - // meta: { - // title: "不制单", - // }, - // }, - // { - // path: "/search", - // component: () => import("@/views/receiptsPage/search.vue"), - // name: "receiptsSearch", - // meta: { - // title: "凭证查询", - // }, - // }, - // ], - // }, - // { - // path: "/task", - // component: Layout, - // name: "task", - // redirect: "", - // meta: { - // title: "集成任务管理", - // icon: "documentation", - // }, - // children: [ - // { - // path: "", - // component: () => import("@/views/intergrationTask/index.vue"), - // name: "taskAdmin", - // meta: { - // title: "集成任务部署", - // }, - // }, - // { - // path: "add", - // component: () => import("@/views/intergrationTask/taskAdd.vue"), - // name: "taskAdd", - // meta: { - // hidden: true, - // title: "新建任务", - // }, - // }, - // { - // path: "monitoring", - // component: () => import("@/views/intergrationTask/monitoring.vue"), - // name: "taskMonitoring", - // meta: { - // title: "集成任务监控", - // }, - // }, - // { - // path: "living", - // component: () => import("@/views/intergrationTask/living.vue"), - // name: "taskLiving", - // meta: { - // title: "集成任务实例", - // }, - // }, - // { - // path: "logdata", - // component: () => import("@/views/intergrationTask/logData.vue"), - // name: "taskLogData", - // meta: { - // title: "集成任务日志", - // }, - // }, - // { - // path: "livingview", - // component: () => import("@/views/intergrationTask/livingViewPage.vue"), - // name: "taskLivingView", - // meta: { - // hidden: true, - // title: "实例查看", - // }, - // }, - // { - // path: "logsview", - // component: () => import("@/views/intergrationTask/logsViewPage.vue"), - // name: "taskLogsView", - // meta: { - // hidden: true, - // title: "日志查看", - // }, - // }, - // ], - // }, - // { - // path: "/integrationApi", - // component: Layout, - // name: "integrationApi", - // redirect: "apiOption", - // meta: { - // title: "集成api配置", - // icon: "documentation", - // }, - // children: [ - // { - // path: "apiOption", - // component: () => import("@/views/integrationApi/index.vue"), - // name: "apiOption", - // redirect: "", - // meta: { - // title: "集成api配置", - // }, - // children: [ - // { - // path: "", - // name: "apiAdmin", - // component: () => import("@/views/integrationApi/apiAdmin"), - // meta: { - // title: "API管理" - // } - // }, - // { - // path: "apiadd", - // name: "apiAdd", - // redirect: "", - // hidden: "true", - // component: () => import("@/views/integrationApi/apiAdd"), - // meta: { - // title: "API新增", + // ], + // }, + // { + // path: "/receipts", + // component: Layout, + // name: "receipts", + // redirect: "", + // meta: { + // title: "凭证制单", + // icon: "documentation", + // }, + // children: [ + // { + // path: "", + // component: () => import("@/views/receiptsPage/index.vue"), + // name: "receiptsAwait", + // meta: { + // title: "待制单", + // }, + // }, + // { + // path: "/finish", + // component: () => import("@/views/receiptsPage/finish.vue"), + // name: "receiptsFinish", + // meta: { + // title: "已制单", + // }, + // }, + // { + // path: "/unFinish", + // component: () => import("@/views/receiptsPage/unFinish.vue"), + // name: "receiptsUnFinish", + // meta: { + // title: "不制单", + // }, + // }, + // { + // path: "/search", + // component: () => import("@/views/receiptsPage/search.vue"), + // name: "receiptsSearch", + // meta: { + // title: "凭证查询", + // }, + // }, + // ], + // }, + // { + // path: "/task", + // component: Layout, + // name: "task", + // redirect: "", + // meta: { + // title: "集成任务管理", + // icon: "documentation", + // }, + // children: [ + // { + // path: "", + // component: () => import("@/views/intergrationTask/index.vue"), + // name: "taskAdmin", + // meta: { + // title: "集成任务部署", + // }, + // }, + // { + // path: "add", + // component: () => import("@/views/intergrationTask/taskAdd.vue"), + // name: "taskAdd", + // meta: { + // hidden: true, + // title: "新建任务", + // }, + // }, + // { + // path: "monitoring", + // component: () => import("@/views/intergrationTask/monitoring.vue"), + // name: "taskMonitoring", + // meta: { + // title: "集成任务监控", + // }, + // }, + // { + // path: "living", + // component: () => import("@/views/intergrationTask/living.vue"), + // name: "taskLiving", + // meta: { + // title: "集成任务实例", + // }, + // }, + // { + // path: "logdata", + // component: () => import("@/views/intergrationTask/logData.vue"), + // name: "taskLogData", + // meta: { + // title: "集成任务日志", + // }, + // }, + // { + // path: "livingview", + // component: () => import("@/views/intergrationTask/livingViewPage.vue"), + // name: "taskLivingView", + // meta: { + // hidden: true, + // title: "实例查看", + // }, + // }, + // { + // path: "logsview", + // component: () => import("@/views/intergrationTask/logsViewPage.vue"), + // name: "taskLogsView", + // meta: { + // hidden: true, + // title: "日志查看", + // }, + // }, + // ], + // }, + // { + // path: "/integrationApi", + // component: Layout, + // name: "integrationApi", + // redirect: "apiOption", + // meta: { + // title: "集成api配置", + // icon: "documentation", + // }, + // children: [ + // { + // path: "apiOption", + // component: () => import("@/views/integrationApi/index.vue"), + // name: "apiOption", + // redirect: "", + // meta: { + // title: "集成api配置", + // }, + // children: [ + // { + // path: "", + // name: "apiAdmin", + // component: () => import("@/views/integrationApi/apiAdmin"), + // meta: { + // title: "API管理" + // } + // }, + // { + // path: "apiadd", + // name: "apiAdd", + // redirect: "", + // hidden: "true", + // component: () => import("@/views/integrationApi/apiAdd"), + // meta: { + // title: "API新增", - // }, - // }, - // { - // path: "apiview", - // name: "apiView", - // hidden: "true", - // component: () => import("@/views/integrationApi/apiView"), - // meta: { - // title: "API查看" - // } - // }, - // ] - // }, - // ], - // }, - // { - // path: "/tool", - // component: Layout, - // meta: { - // title: "测试", - // icon: "documentation", - // }, - // children: [ - // { - // path: "gen", - // component: () => import("@/views/tool/gen/index"), - // name: "gen", - // meta: { - // title: "代码生成", - // }, - // }, - // { - // path: "build", - // component: () => import("@/views/tool/build/index"), - // name: "build", - // meta: { - // title: "表单构建", - // }, - // }, - // ], - // }, - // { - // path: "", - // component: Layout, - // redirect: "newContract", - // children: [ - // { - // path: "/contractManagement/salesContract/newContract", - // component: () => - // import("@/views/contractManagement/salesContract/newContract"), - // name: "NewContract", - // meta: { - // title: "新增合同", - // icon: "documentation", - // keepAlive: true, - // }, - // }, - // { - // path: "contractManagement/salesContract/editContract", - // component: () => - // import("@/views/contractManagement/salesContract/editContract/index"), - // name: "EditContract", - // meta: { - // title: "编辑合同", - // icon: "documentation", - // keepAlive: true, - // }, - // }, - // { - // path: "/contractManagement/salesContract/addReplication", - // component: () => - // import( - // "@/views/contractManagement/salesContract/addReplication/index" - // ), - // name: "AddReplication", - // meta: { - // title: "新增合同(复制)", - // icon: "documentation", - // }, - // }, - // { - // path: "/contractManagement/salesContract/changeContract", - // component: () => - // import( - // "@/views/contractManagement/salesContract/changeContract/index" - // ), - // name: "ChangeContract", - // meta: { - // title: "变更合同", - // icon: "documentation", - // }, - // }, - // { - // path: "/contractManagement/salesContract/addEditChange", - // component: () => - // import( - // "@/views/contractManagement/salesContract/addEditChange/index" - // ), - // name: "AddEditChange", - // meta: { - // title: "", - // icon: "documentation", - // }, - // }, - // ], - // }, - // { - // path: "/contractManagement", - // name: "ContractManagement", - // hidden: true, - // alwaysShow: true, - // component: Layout, - // meta: { - // title: "合同管理", - // icon: "documentation", - // noCache: false - // }, - // children: [ - // { - // path: "salesContract", - // name: "SalesContract", - // hidden: false, - // redirect: "noRedirect", - // component: ParentView, - // alwaysShow: true, - // meta: { - // title: "销售合同", - // icon: "documentation", - // noCache: false - // }, - // children: [ - // { - // path: "newContract", - // component: () => - // import( - // "@/views/contractManagement/salesContract/newContract/index" - // ), - // name: "NewContract", - // meta: { - // title: "新增合同", - // icon: "documentation", - // noCache: false - // }, - // }, - // { - // path: "editContract", - // component: () => - // import( - // "@/views/contractManagement/salesContract/editContract/index" - // ), - // name: "EditContract", - // meta: { - // title: "编辑合同", - // noCache: false - // }, - // }, - // { - // path: "addReplication", - // component: () => - // import( - // "@/views/contractManagement/salesContract/addReplication/index" - // ), - // name: "AddReplication", - // meta: { - // title: "新增合同(复制)", - // icon: "documentation", - // noCache: false - // }, - // }, - // ], - // }, - // ], - // }, - // { - // path: "/contractManagement", - // component: Layout, - // meta: { - // title: "合同管理", - // icon: "documentation", - // }, - // children: [ - // { - // path: "salesContract", - // component: () => import("@/views/contractManagement/salesContract"), - // name: "salesContract", - // meta: { - // title: "销售合同", - // icon: "documentation", - // }, - // children: [ - // { - // path: "newContract", - // component: () => - // import( - // "@/views/contractManagement/salesContract/newContract/index" - // ), - // name: "newContract", - // meta: { - // title: "新增合同", - // icon: "documentation", - // }, - // }, - // { - // path: "editContract", - // component: () => - // import( - // "@/views/contractManagement/salesContract/editContract/index" - // ), - // name: "editContract", - // meta: { - // title: "编辑合同", - // }, - // }, - // { - // path: "addReplication", - // component: () => - // import( - // "@/views/contractManagement/salesContract/addReplication/index" - // ), - // name: "addReplication", - // meta: { - // title: "新增合同(复制)", - // icon: "documentation", - // }, - // }, - // ], - // }, - // ], - // }, - // { - // path: "/edit", - // component: () => import("@/views/systemSettings/viewList/edit"), - // hidden: true, - // }, - // { - // path: '/codeGenerator', - // component: Layout, - // meta: { - // title: '代码生成器', - // icon: 'documentation' - // }, - // children: [{ - // path: 'documentManagement', - // component: () => import('@/views/systemMaintenance/documentManagement/index'), - // name: 'documentManagement', - // meta: { - // title: '单据管理', - // icon: 'documentation' - // }, - // }, - // ] - // }, - // 系统维护 - // { - // path: '/systemMaintenance', - // component: Layout, - // meta: { - // title: '系统维护', - // icon: 'documentation' - // }, - // children: [ - // { - // path: 'menuManagementOld', - // component: () => import('@/views/systemMaintenance/menuManagement/index'), - // name: 'menuManagementOld', - // meta: { - // title: '菜单管理old', - // icon: 'documentation' - // }, - // }, - // // { - // // path: 'buttonManagement', - // // component: () => import('@/views/systemMaintenance/buttonManagement/index'), - // // name: 'buttonManagement', - // // meta: { - // // title: '按钮管理', - // // icon: 'documentation' - // // }, - // // }, { - // // path: 'operationLog', - // // component: () => import('@/views/systemMaintenance/operationLog/index'), - // // name: 'operationLog', - // // meta: { - // // title: '操作日志', - // // icon: 'documentation' - // // }, - // // }, - // // { - // // path: 'iconLibrary', - // // component: () => import('@/views/systemMaintenance/iconLibrary/index'), - // // name: 'iconLibrary', - // // meta: { - // // title: '图标库', - // // icon: 'documentation' - // // }, - // // }, - // // { - // // path: 'InterfaceLog', - // // component: () => import('@/views/systemMaintenance/InterfaceLog/index'), - // // name: 'InterfaceLog', - // // meta: { - // // title: '接口日志', - // // icon: 'documentation' - // // }, - // // } - // ], - // }, - // { - // path: '/systemSettings', - // name: 'SystemSettings', - // component: Layout, - // hidden: false, - // redirect: "noRedirect", - // alwaysShow: true, - // meta: { - // title: '系统配置', - // icon: 'documentation', - // noCache: false, - // }, - // children: [ - // { - // path: 'userSettings', - // component: ParentView, - // name: 'UserSettings', - // hidden: false, - // redirect: "noRedirect", - // alwaysShow: true, - // meta: { - // title: '用户管理', - // icon: 'documentation', - // noCache: false, - // }, - // children: [{ - // path: 'roleSettings', - // component: () => import('@/views/systemSettings/userSettings/roleSettings/index'), - // name: 'Role', - // meta: { - // title: '角色设置', - // icon: 'documentation' - // }, - // }, - // { - // path: 'PersonnelSettings', - // component: () => import( - // '@/views/systemSettings/userSettings/PersonnelSettings/index'), - // name: 'PersonnelSettings', - // meta: { - // title: '人员管理', - // icon: 'documentation' - // }, - // }, - // { - // path: 'userInformation', - // hidden: false, - // component: () => import( - // '@/views/systemSettings/userSettings/userInformation/index'), - // name: 'UserInformation', - // meta: { - // title: '用户信息', - // icon: 'documentation', - // noCache: false, - // }, - // }, - // ], - // }, - // // { - // // path: 'organization', - // // component: () => import('@/views/systemSettings/organization/index'), - // // name: 'organization', - // // meta: { - // // title: '组织机构', - // // icon: 'documentation' - // // }, - // // }, - // { - // path: 'jurisdictionManage', - // component: () => import('@/views/systemSettings/jurisdictionManage/index'), - // meta: { - // title: '权限管理', - // icon: 'documentation' - // }, - // children: [{ - // path: 'userJurisdiction', - // component: () => import( - // '@/views/systemSettings/jurisdictionManage/userJurisdiction/index'), - // name: 'userJurisdiction', - // meta: { - // title: '用户权限', - // icon: 'documentation' - // }, - // }, - // { - // path: 'roleJurisdiction', - // component: () => import( - // '@/views/systemSettings/jurisdictionManage/roleJurisdiction/index'), - // name: 'roleJurisdiction', - // meta: { - // title: '角色权限-暂未', - // icon: 'documentation' - // }, - // }, - // ], - // }, - // { - // path: 'timing', - // component: () => import('@/views/systemSettings/timing/index'), - // name: 'Timing', - // meta: { - // title: '定时任务', - // icon: 'documentation' - // }, - // }, - // { - // path: 'dataDictionary', - // component: () => import('@/views/systemSettings/dataDictionary'), - // name: 'dataDictionary', - // meta: { - // title: '数据字典', - // icon: 'documentation' - // }, - // }, - // ], - // }, - // { - // path: '/fileManagement', - // component: Layout, - // meta: { - // title: '档案管理', - // icon: 'documentation' - // }, - // children: [{ - // path: 'userFileManagement', - // component: () => import('@/views/fileManagement/userFileManagement/index'), - // name: 'userFileManagement', - // meta: { - // title: '客户档案', - // icon: 'documentation' - // } - // }, - // { - // path: 'supplierManagement', - // component: () => import('@/views/fileManagement/supplierManagement/index'), - // name: 'supplierManagement', - // meta: { - // title: '供应商档案', - // icon: 'documentation' - // } - // }, - // { - // path: 'inventoryManagement', - // component: () => import('@/views/fileManagement/inventoryManagement/index'), - // name: 'inventoryManagement', - // meta: { - // title: '存货档案', - // icon: 'documentation' - // }, - // } - // ] - // }, - // 合同管理 - // { - // path: '/contractManagement', - // component: Layout, - // meta: { - // title: '合同管理', - // icon: 'documentation' - // }, - // children: [{ - // path: 'salesContract', - // component: () => import('@/views/contractManagement/salesContract'), - // name: 'salesContract', - // meta: { - // title: '销售合同', - // icon: 'documentation' - // }, - // children: [{ - // path: 'newContract', - // component: () => import( - // '@/views/contractManagement/salesContract/newContract/index'), - // name: 'newContract', - // meta: { - // title: '新增合同', - // icon: 'documentation' - // }, - // }, - // { - // path: 'seeContract', - // component: () => import( - // '@/views/contractManagement/salesContract/seeContract/index'), - // name: 'seeContract', - // meta: { - // title: '查看合同', - // icon: 'documentation' - // }, - // }, - // { - // path: 'changeContract', - // component: () => import( - // '@/views/contractManagement/salesContract/changeContract/index'), - // name: 'changeContract', - // meta: { - // title: '合同变更', - // icon: 'documentation' - // }, - // }, - // { - // path: 'listContract', - // component: () => import( - // '@/views/contractManagement/salesContract/listContract/index'), - // name: 'listContract', - // meta: { - // title: '合同清单', - // icon: 'documentation' - // }, - // } - // ] - // }, ], - // }, - // { - // path: '/tool', - // component: Layout, - // meta: { - // title: '系统工具', - // icon: 'documentation' - // }, - // children: [{ - // path: 'tool', - // component: () => import('@/views/tool/gen/index'), - // name: 'tool', - // meta: { - // title: '代码生成', - // icon: 'documentation' - // } - // }, { - // path: 'build', - // component: () => import('@/views/tool/build/index'), - // name: 'build', - // meta: { - // title: '表单构建', - // icon: 'documentation' - // } - // }] - // }, -]; + // }, + // }, + // { + // path: "apiview", + // name: "apiView", + // hidden: "true", + // component: () => import("@/views/integrationApi/apiView"), + // meta: { + // title: "API查看" + // } + // }, + // ] + // }, + // ], + // }, + // { + // path: "/tool", + // component: Layout, + // meta: { + // title: "测试", + // icon: "documentation", + // }, + // children: [ + // { + // path: "gen", + // component: () => import("@/views/tool/gen/index"), + // name: "gen", + // meta: { + // title: "代码生成", + // }, + // }, + // { + // path: "build", + // component: () => import("@/views/tool/build/index"), + // name: "build", + // meta: { + // title: "表单构建", + // }, + // }, + // ], + // }, + // { + // path: "", + // component: Layout, + // redirect: "newContract", + // children: [ + // { + // path: "/contractManagement/salesContract/newContract", + // component: () => + // import("@/views/contractManagement/salesContract/newContract"), + // name: "NewContract", + // meta: { + // title: "新增合同", + // icon: "documentation", + // keepAlive: true, + // }, + // }, + // { + // path: "contractManagement/salesContract/editContract", + // component: () => + // import("@/views/contractManagement/salesContract/editContract/index"), + // name: "EditContract", + // meta: { + // title: "编辑合同", + // icon: "documentation", + // keepAlive: true, + // }, + // }, + // { + // path: "/contractManagement/salesContract/addReplication", + // component: () => + // import( + // "@/views/contractManagement/salesContract/addReplication/index" + // ), + // name: "AddReplication", + // meta: { + // title: "新增合同(复制)", + // icon: "documentation", + // }, + // }, + // { + // path: "/contractManagement/salesContract/changeContract", + // component: () => + // import( + // "@/views/contractManagement/salesContract/changeContract/index" + // ), + // name: "ChangeContract", + // meta: { + // title: "变更合同", + // icon: "documentation", + // }, + // }, + // { + // path: "/contractManagement/salesContract/addEditChange", + // component: () => + // import( + // "@/views/contractManagement/salesContract/addEditChange/index" + // ), + // name: "AddEditChange", + // meta: { + // title: "", + // icon: "documentation", + // }, + // }, + // ], + // }, + // { + // path: "/contractManagement", + // name: "ContractManagement", + // hidden: true, + // alwaysShow: true, + // component: Layout, + // meta: { + // title: "合同管理", + // icon: "documentation", + // noCache: false + // }, + // children: [ + // { + // path: "salesContract", + // name: "SalesContract", + // hidden: false, + // redirect: "noRedirect", + // component: ParentView, + // alwaysShow: true, + // meta: { + // title: "销售合同", + // icon: "documentation", + // noCache: false + // }, + // children: [ + // { + // path: "newContract", + // component: () => + // import( + // "@/views/contractManagement/salesContract/newContract/index" + // ), + // name: "NewContract", + // meta: { + // title: "新增合同", + // icon: "documentation", + // noCache: false + // }, + // }, + // { + // path: "editContract", + // component: () => + // import( + // "@/views/contractManagement/salesContract/editContract/index" + // ), + // name: "EditContract", + // meta: { + // title: "编辑合同", + // noCache: false + // }, + // }, + // { + // path: "addReplication", + // component: () => + // import( + // "@/views/contractManagement/salesContract/addReplication/index" + // ), + // name: "AddReplication", + // meta: { + // title: "新增合同(复制)", + // icon: "documentation", + // noCache: false + // }, + // }, + // ], + // }, + // ], + // }, + // { + // path: "/contractManagement", + // component: Layout, + // meta: { + // title: "合同管理", + // icon: "documentation", + // }, + // children: [ + // { + // path: "salesContract", + // component: () => import("@/views/contractManagement/salesContract"), + // name: "salesContract", + // meta: { + // title: "销售合同", + // icon: "documentation", + // }, + // children: [ + // { + // path: "newContract", + // component: () => + // import( + // "@/views/contractManagement/salesContract/newContract/index" + // ), + // name: "newContract", + // meta: { + // title: "新增合同", + // icon: "documentation", + // }, + // }, + // { + // path: "editContract", + // component: () => + // import( + // "@/views/contractManagement/salesContract/editContract/index" + // ), + // name: "editContract", + // meta: { + // title: "编辑合同", + // }, + // }, + // { + // path: "addReplication", + // component: () => + // import( + // "@/views/contractManagement/salesContract/addReplication/index" + // ), + // name: "addReplication", + // meta: { + // title: "新增合同(复制)", + // icon: "documentation", + // }, + // }, + // ], + // }, + // ], + // }, + // { + // path: "/edit", + // component: () => import("@/views/systemSettings/viewList/edit"), + // hidden: true, + // }, + // { + // path: '/codeGenerator', + // component: Layout, + // meta: { + // title: '代码生成器', + // icon: 'documentation' + // }, + // children: [{ + // path: 'documentManagement', + // component: () => import('@/views/systemMaintenance/documentManagement/index'), + // name: 'documentManagement', + // meta: { + // title: '单据管理', + // icon: 'documentation' + // }, + // }, + // ] + // }, + // 系统维护 + // { + // path: '/systemMaintenance', + // component: Layout, + // meta: { + // title: '系统维护', + // icon: 'documentation' + // }, + // children: [ + // { + // path: 'menuManagementOld', + // component: () => import('@/views/systemMaintenance/menuManagement/index'), + // name: 'menuManagementOld', + // meta: { + // title: '菜单管理old', + // icon: 'documentation' + // }, + // }, + // // { + // // path: 'buttonManagement', + // // component: () => import('@/views/systemMaintenance/buttonManagement/index'), + // // name: 'buttonManagement', + // // meta: { + // // title: '按钮管理', + // // icon: 'documentation' + // // }, + // // }, { + // // path: 'operationLog', + // // component: () => import('@/views/systemMaintenance/operationLog/index'), + // // name: 'operationLog', + // // meta: { + // // title: '操作日志', + // // icon: 'documentation' + // // }, + // // }, + // // { + // // path: 'iconLibrary', + // // component: () => import('@/views/systemMaintenance/iconLibrary/index'), + // // name: 'iconLibrary', + // // meta: { + // // title: '图标库', + // // icon: 'documentation' + // // }, + // // }, + // // { + // // path: 'InterfaceLog', + // // component: () => import('@/views/systemMaintenance/InterfaceLog/index'), + // // name: 'InterfaceLog', + // // meta: { + // // title: '接口日志', + // // icon: 'documentation' + // // }, + // // } + // ], + // }, + // { + // path: '/systemSettings', + // name: 'SystemSettings', + // component: Layout, + // hidden: false, + // redirect: "noRedirect", + // alwaysShow: true, + // meta: { + // title: '系统配置', + // icon: 'documentation', + // noCache: false, + // }, + // children: [ + // { + // path: 'userSettings', + // component: ParentView, + // name: 'UserSettings', + // hidden: false, + // redirect: "noRedirect", + // alwaysShow: true, + // meta: { + // title: '用户管理', + // icon: 'documentation', + // noCache: false, + // }, + // children: [{ + // path: 'roleSettings', + // component: () => import('@/views/systemSettings/userSettings/roleSettings/index'), + // name: 'Role', + // meta: { + // title: '角色设置', + // icon: 'documentation' + // }, + // }, + // { + // path: 'PersonnelSettings', + // component: () => import( + // '@/views/systemSettings/userSettings/PersonnelSettings/index'), + // name: 'PersonnelSettings', + // meta: { + // title: '人员管理', + // icon: 'documentation' + // }, + // }, + // { + // path: 'userInformation', + // hidden: false, + // component: () => import( + // '@/views/systemSettings/userSettings/userInformation/index'), + // name: 'UserInformation', + // meta: { + // title: '用户信息', + // icon: 'documentation', + // noCache: false, + // }, + // }, + // ], + // }, + // // { + // // path: 'organization', + // // component: () => import('@/views/systemSettings/organization/index'), + // // name: 'organization', + // // meta: { + // // title: '组织机构', + // // icon: 'documentation' + // // }, + // // }, + // { + // path: 'jurisdictionManage', + // component: () => import('@/views/systemSettings/jurisdictionManage/index'), + // meta: { + // title: '权限管理', + // icon: 'documentation' + // }, + // children: [{ + // path: 'userJurisdiction', + // component: () => import( + // '@/views/systemSettings/jurisdictionManage/userJurisdiction/index'), + // name: 'userJurisdiction', + // meta: { + // title: '用户权限', + // icon: 'documentation' + // }, + // }, + // { + // path: 'roleJurisdiction', + // component: () => import( + // '@/views/systemSettings/jurisdictionManage/roleJurisdiction/index'), + // name: 'roleJurisdiction', + // meta: { + // title: '角色权限-暂未', + // icon: 'documentation' + // }, + // }, + // ], + // }, + // { + // path: 'timing', + // component: () => import('@/views/systemSettings/timing/index'), + // name: 'Timing', + // meta: { + // title: '定时任务', + // icon: 'documentation' + // }, + // }, + // { + // path: 'dataDictionary', + // component: () => import('@/views/systemSettings/dataDictionary'), + // name: 'dataDictionary', + // meta: { + // title: '数据字典', + // icon: 'documentation' + // }, + // }, + // ], + // }, + // { + // path: '/fileManagement', + // component: Layout, + // meta: { + // title: '档案管理', + // icon: 'documentation' + // }, + // children: [{ + // path: 'userFileManagement', + // component: () => import('@/views/fileManagement/userFileManagement/index'), + // name: 'userFileManagement', + // meta: { + // title: '客户档案', + // icon: 'documentation' + // } + // }, + // { + // path: 'supplierManagement', + // component: () => import('@/views/fileManagement/supplierManagement/index'), + // name: 'supplierManagement', + // meta: { + // title: '供应商档案', + // icon: 'documentation' + // } + // }, + // { + // path: 'inventoryManagement', + // component: () => import('@/views/fileManagement/inventoryManagement/index'), + // name: 'inventoryManagement', + // meta: { + // title: '存货档案', + // icon: 'documentation' + // }, + // } + // ] + // }, + // 合同管理 + // { + // path: '/contractManagement', + // component: Layout, + // meta: { + // title: '合同管理', + // icon: 'documentation' + // }, + // children: [{ + // path: 'salesContract', + // component: () => import('@/views/contractManagement/salesContract'), + // name: 'salesContract', + // meta: { + // title: '销售合同', + // icon: 'documentation' + // }, + // children: [{ + // path: 'newContract', + // component: () => import( + // '@/views/contractManagement/salesContract/newContract/index'), + // name: 'newContract', + // meta: { + // title: '新增合同', + // icon: 'documentation' + // }, + // }, + // { + // path: 'seeContract', + // component: () => import( + // '@/views/contractManagement/salesContract/seeContract/index'), + // name: 'seeContract', + // meta: { + // title: '查看合同', + // icon: 'documentation' + // }, + // }, + // { + // path: 'changeContract', + // component: () => import( + // '@/views/contractManagement/salesContract/changeContract/index'), + // name: 'changeContract', + // meta: { + // title: '合同变更', + // icon: 'documentation' + // }, + // }, + // { + // path: 'listContract', + // component: () => import( + // '@/views/contractManagement/salesContract/listContract/index'), + // name: 'listContract', + // meta: { + // title: '合同清单', + // icon: 'documentation' + // }, + // } + // ] + // }, ], + // }, + // { + // path: '/tool', + // component: Layout, + // meta: { + // title: '系统工具', + // icon: 'documentation' + // }, + // children: [{ + // path: 'tool', + // component: () => import('@/views/tool/gen/index'), + // name: 'tool', + // meta: { + // title: '代码生成', + // icon: 'documentation' + // } + // }, { + // path: 'build', + // component: () => import('@/views/tool/build/index'), + // name: 'build', + // meta: { + // title: '表单构建', + // icon: 'documentation' + // } + // }] + // }, +] // 动态路由,基于用户权限动态去加载 export const dynamicRoutes = [{ - path: "/tool/gen-edit", - component: Layout, - hidden: true, - permissions: ["tool:gen:edit"], - children: [{ - path: "index/:tableId(\\d+)", - // component: () => import('@/views/tool/gen/editTable'), - // component: () => import('@/views/tool/gen/index'), - name: "GenEdit", - meta: { - title: "修改生成配置", - activeMenu: "/tool/gen", - }, - },], -},]; + path: '/tool/gen-edit', + component: Layout, + hidden: true, + permissions: ['tool:gen:edit'], + children: [{ + path: 'index/:tableId(\\d+)', + // component: () => import('@/views/tool/gen/editTable'), + // component: () => import('@/views/tool/gen/index'), + name: 'GenEdit', + meta: { + title: '修改生成配置', + activeMenu: '/tool/gen' + } + }] +}] // 防止连续点击多次路由报错 -let routerPush = Router.prototype.push; +let routerPush = Router.prototype.push Router.prototype.push = function push(location) { - return routerPush.call(this, location).catch((err) => err); -}; + return routerPush.call(this, location).catch((err) => err) +} export default new Router({ - mode: "hash", // 去掉url中的# - scrollBehavior: () => ({ - y: 0, - }), - routes: constantRoutes, -}); + mode: 'hash', // 去掉url中的# + scrollBehavior: () => ({ + y: 0 + }), + routes: constantRoutes +}) diff --git a/src/views/apiLogs/configData.js b/src/views/apiLogs/configData.js new file mode 100644 index 0000000..c1b9dc6 --- /dev/null +++ b/src/views/apiLogs/configData.js @@ -0,0 +1,267 @@ +/** + * @desc 消息管理日志 + * @date 2023-08-31 + */ +// 表头 +const tableColumnData = [ + { + label: '发送者应用', + prop: 'sendAppName', + tooltip: true, + }, + { + label: '源数据', + prop: 'sourceData', + tooltip: true, + }, + { + label: '目标数据', + prop: 'targetData', + tooltip: true, + }, + { + label: '状态', + prop: 'status', + tooltip: true, + }, + { + label: '错误状态', + prop: 'errorStatus', + tooltip: true, + }, + { + label: '返回信息', + prop: 'returnData', + tooltip: true, + }, { + label: '创建时间', + prop: 'createTime', + tooltip: true, + }, +] +const tableVersionColumn = [ + { + label: '接收者名称', + prop: 'receiveName', + }, + { + label: '接收者编码', + prop: 'receiveCode', + }, + { + label: '接收者应用', + prop: 'receiveApp', + }, + { + label: '接收者', + prop: 'receiveApi', + }, + { + label: '数据类型', + prop: 'dataType', + }, + { + label: '备注', + prop: 'remark', + }, +] + +// 基本信息内容 +const formRow = [ + { + elCol: [{ + label: '消息管理名称', + prop: 'theme', + tag: 'elInput', + disabled: true, + span: 24 + }] + }, + { + elCol: [{ + label: '发送者应用', + prop: 'sendApp', + tag: 'elSelect', + disabled: true, + options: [], + optionValue: 'id', + optionLabel: 'name', + }, { + label: '发送者', + prop: 'sendApi', + tag: 'elSelect', + disabled: true, + options: [], + optionValue: 'id', + optionLabel: 'apiName', + }] + }, + { + elCol: [{ + label: '接收者应用', + prop: 'receiveApp', + tag: 'elSelect', + disabled: true, + options: [], + optionValue: 'id', + optionLabel: 'name', + }, { + label: '接收者', + prop: 'receiveApi', + tag: 'elSelect', + disabled: true, + options: [], + optionValue: 'id', + optionLabel: 'apiName', + }] + }, + { + elCol: [{ + label: '源数据', + prop: 'sourceData', + tag: 'elSlot', + slotName: "sourceData", + span: 24, + }] + }, + { + elCol: [{ + label: '目标数据', + prop: 'targetData', + tag: 'elSlot', + slotName: "targetData", + span: 24, + }] + }, + { + elCol: [{ + label: '状态', + prop: 'status', + tag: 'elRadio', + disabled: true, + span: 24, + options: [ + {value: "1", label: "待发送"}, + {value: "2", label: "发送中"}, + {value: "3", label: "发送成功"}, + {value: "4", label: "发送失败"}, + ], + },] + }, + { + elCol: [{ + label: '错误状态', + prop: 'error_status', + tag: 'elRadio', + disabled: true, + span: 24, + options: [ + {value: "1", label: "需要重新发送"}, + {value: "2", label: "不需要重新发送"}, + ], + },] + }, + { + elCol: [{ + label: '返回信息', + prop: 'returnData', + tag: 'elInput', + type: 'textarea', + disabled: true, + span: 24, + }] + }, +] + +const basicsRules = { + sourceData: [{ + required: true, + message: '请输入源数据', + trigger: 'blur' + }], + targetData: [{ + required: true, + message: '请输入目标数据', + trigger: 'blur' + }], +} + +// 查看 +const formRowShow = [ + { + elCol: [{ + label: '发送者应用', + prop: 'sendApp', + tag: 'elSelect', + disabled: true, + options: [], + optionValue: 'id', + optionLabel: 'name', + },] + }, + { + elCol: [{ + label: '源数据', + prop: 'sourceData', + tag: 'elInput', + disabled: true, + type: 'textarea', + span: 24, + }] + }, + { + elCol: [{ + label: '目标数据', + prop: 'targetData', + tag: 'elInput', + disabled: true, + type: 'textarea', + span: 24, + }] + }, + { + elCol: [{ + label: '状态', + prop: 'status', + tag: 'elRadio', + disabled: true, + span: 24, + options: [ + {value: "1", label: "待发送"}, + {value: "2", label: "发送中"}, + {value: "3", label: "发送成功"}, + {value: "4", label: "发送失败"}, + ], + },] + }, + { + elCol: [{ + label: '错误状态', + prop: 'errorStatus', + tag: 'elRadio', + disabled: true, + span: 24, + options: [ + {value: "1", label: "需要重新发送"}, + {value: "2", label: "不需要重新发送"}, + ], + },] + }, + { + elCol: [{ + label: '返回信息', + prop: 'returnData', + tag: 'elInput', + type: 'textarea', + disabled: true, + span: 24, + }] + }, +] +export default { + tableColumnData, + formRow, + basicsRules, + formRowShow, + tableVersionColumn +} diff --git a/src/views/apiLogs/index.vue b/src/views/apiLogs/index.vue new file mode 100644 index 0000000..8493043 --- /dev/null +++ b/src/views/apiLogs/index.vue @@ -0,0 +1,336 @@ + + + + + diff --git a/src/views/apiLogs/rightDialog.vue b/src/views/apiLogs/rightDialog.vue new file mode 100644 index 0000000..f7526f5 --- /dev/null +++ b/src/views/apiLogs/rightDialog.vue @@ -0,0 +1,282 @@ + + + + + diff --git a/src/views/applicationList/applicationAdd.vue b/src/views/applicationList/applicationAdd.vue index 823abe7..a36a381 100644 --- a/src/views/applicationList/applicationAdd.vue +++ b/src/views/applicationList/applicationAdd.vue @@ -103,7 +103,7 @@ export default { // this.appLogo = el.id // } return request({ - url: "/kangarooDataCenterV3/entranceController/fileUpload", + url: "/kangarooDataCenter/entranceController/fileUpload", method: "post", data: formData, }).then((res) => { @@ -230,7 +230,7 @@ export default { getLogoUrl() { let id = this.appLogo ? this.appLogo : this.$route.query.appLogo return request({ - url: "/kangarooDataCenterV3/entranceController/fileDownloadNew?id=" + id, + url: "/kangarooDataCenter/entranceController/fileDownloadNew?id=" + id, method: "get", responseType: 'arraybuffer' }).then((res) => { diff --git a/src/views/applicationList/index.vue b/src/views/applicationList/index.vue index 8f9ae77..d4c3201 100644 --- a/src/views/applicationList/index.vue +++ b/src/views/applicationList/index.vue @@ -202,7 +202,7 @@ export default { this.pageModel.total = res.attribute.total; res.attribute.list.map(el => { return request({ - url: "/kangarooDataCenterV3/entranceController/fileDownloadNew?id=" + el.appLogo, + url: "/kangarooDataCenter/entranceController/fileDownloadNew?id=" + el.appLogo, method: "get", responseType: 'arraybuffer' }).then((res) => { diff --git a/src/views/applicationList/settingMenu.vue b/src/views/applicationList/settingMenu.vue index 2bff7e8..00e0c59 100644 --- a/src/views/applicationList/settingMenu.vue +++ b/src/views/applicationList/settingMenu.vue @@ -79,7 +79,7 @@ export default { this.versionNumber = res.attribute.versionNumber //下载logo return request({ - url: "/kangarooDataCenterV3/entranceController/fileDownloadNew?id=" + res.attribute.appLogo, + url: "/kangarooDataCenter/entranceController/fileDownloadNew?id=" + res.attribute.appLogo, method: "get", responseType: 'arraybuffer' }).then((res) => { diff --git a/src/views/masterDataOptions/index.vue b/src/views/masterDataOptions/index.vue index cf786cb..20f0d7e 100644 --- a/src/views/masterDataOptions/index.vue +++ b/src/views/masterDataOptions/index.vue @@ -183,7 +183,7 @@ export default { res.attribute.list.map(el => { this.$set(el,'imgLoading',true) return request({ - url: "/kangarooDataCenterV3/entranceController/fileDownloadNew?id=" + el.mdmLogo, + url: "/kangarooDataCenter/entranceController/fileDownloadNew?id=" + el.mdmLogo, method: "get", responseType: 'arraybuffer' }).then((res) => { diff --git a/src/views/masterDataOptions/masterDataAdd.vue b/src/views/masterDataOptions/masterDataAdd.vue index 44f83c6..d3745df 100644 --- a/src/views/masterDataOptions/masterDataAdd.vue +++ b/src/views/masterDataOptions/masterDataAdd.vue @@ -92,7 +92,7 @@ export default { formData.append("fileFlag", true); formData.append("businessType", "application"); return request({ - url: "/kangarooDataCenterV3/entranceController/fileUpload", + url: "/kangarooDataCenter/entranceController/fileUpload", method: "post", data: formData, }).then((res) => { @@ -210,7 +210,7 @@ export default { this.imgLoading = true let id = this.appLogo ? this.appLogo : this.$route.query.appLogo return request({ - url: "/kangarooDataCenterV3/entranceController/fileDownloadNew?id=" + id, + url: "/kangarooDataCenter/entranceController/fileDownloadNew?id=" + id, method: "get", responseType: 'arraybuffer' }).then((res) => { diff --git a/src/views/masterDataOptions/settingMenu.vue b/src/views/masterDataOptions/settingMenu.vue index ff7ce6e..7453f84 100644 --- a/src/views/masterDataOptions/settingMenu.vue +++ b/src/views/masterDataOptions/settingMenu.vue @@ -63,7 +63,7 @@ export default { //下载logo this.imgLoading = true return request({ - url: "/kangarooDataCenterV3/entranceController/fileDownloadNew?id=" + res.attribute.mdmLogo, + url: "/kangarooDataCenter/entranceController/fileDownloadNew?id=" + res.attribute.mdmLogo, method: "get", responseType: 'arraybuffer' }).then((res) => { diff --git a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/dataPermissions.vue b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/dataPermissions.vue index 1ea2a40..0ccc422 100644 --- a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/dataPermissions.vue +++ b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/dataPermissions.vue @@ -5,7 +5,7 @@