diff --git a/src/api/projectConfig.js b/src/api/projectConfig.js new file mode 100644 index 000000000..785d66289 --- /dev/null +++ b/src/api/projectConfig.js @@ -0,0 +1,145 @@ +import request from '@/utils/request'; + +/** 后端项目配置分页 */ +export function getBackProjectConfigByPage(params) { + return request({ + url: `/api/project/page`, + method: 'get', + params + }); +} + +/** 全量后端项目配置 */ +export function getAllBackProjectConfig() { + return request({ + url: `/api/project/all`, + method: 'get' + }); +} + +/** 主键获取后端项目配置 */ +export function getBackProjectConfigById(id) { + return request({ + url: `/api/project/${id}`, + method: 'get' + }); +} + +/** 删除后端项目配置 */ +export function deleteBackProjectConfig(id) { + return request({ + url: `/api/project/del/${id}`, + method: 'delete' + }); +} + +/** 更新后端项目配置 */ +export function updateBackProjectConfig(data) { + return request({ + url: `/api/project/update`, + method: 'put', + data + }); +} + +/** 保存后端项目配置 */ +export function saveBackProjectConfig(data) { + return request({ + url: `/api/project/save`, + method: 'POST', + data + }); +} + +/** 获取后端项目列表,关联时使用 */ +export function getBackProjectConfigList(id) { + return request({ + url: `/api/project/simple`, + method: 'get' + }); +} + +/** 前端项目配置分页 */ +export function getFrontProjectConfigByPage(params) { + return request({ + url: `/api/project/viewSetting/page`, + method: 'get', + params + }); +} + +/** 全量前端项目配置 */ +export function getAllFrontProjectConfig() { + return request({ + url: `/api/project/viewSetting/all`, + method: 'get' + }); +} + +/** 获取前端项目配置 */ +export function getFrontProjectConfigById(id) { + return request({ + url: `/api/project/viewSetting/${id}`, + method: 'get' + }); +} + +/** 删除前端项目配置 */ +export function deleteFrontProjectConfig(id) { + return request({ + url: `/api/project/viewSetting/del/${id}`, + method: 'delete' + }); +} + +/** 更新前端项目配置 */ +export function updateFrontProjectConfig(data) { + return request({ + url: `/api/project/viewSetting/update`, + method: 'put', + data + }); +} + +/** 保存前端项目配置 */ +export function saveFrontProjectConfig(data) { + return request({ + url: `/api/project/viewSetting/save`, + method: 'POST', + data + }); +} + +/** 登录时根据前端标识获取配置 */ +export function getFrontProjectConfigByLogin(markKey) { + return request({ + url: `/api/project/viewSetting/project/${markKey}`, + method: 'get' + }); +} + +/** 登录时获取全量前端配置 */ +export function getAllFrontProjectConfigByLogin(markKey) { + return request({ + url: `/api/project/viewSetting/simple/all`, + method: 'get' + }); +} + +/** 检查项目code */ +export function checkBackProjectExist(params) { + return request({ + url: `/api/project/check/code`, + method: 'get', + params + }); +} + +/** 检查项目markKey */ +export function checkFrontProjectExist(params) { + return request({ + url: `/api/project/check/markKey`, + method: 'get', + params + }); +} diff --git a/src/i18n/langs/en/router.js b/src/i18n/langs/en/router.js index 9fd78d3f9..9bd82f6a3 100644 --- a/src/i18n/langs/en/router.js +++ b/src/i18n/langs/en/router.js @@ -104,5 +104,7 @@ export default { projectServer: 'Project Server', audioResourcesManage: 'Audio Resources Manage', iscsDeviceManage: 'ISCS Device Manage', - iscsResourcesManage: 'ISCS Resources Manage' + iscsResourcesManage: 'ISCS Resources Manage', + projectManage: 'Project Manage', + frontProjectConfigManage:'Front Project Config Manage' }; diff --git a/src/i18n/langs/zh/router.js b/src/i18n/langs/zh/router.js index c5349e2fe..bf73d7645 100644 --- a/src/i18n/langs/zh/router.js +++ b/src/i18n/langs/zh/router.js @@ -108,5 +108,7 @@ export default { projectServer: '项目域名', audioResourcesManage: '音频资源管理', iscsDeviceManage: 'ISCS设备管理', - iscsResourcesManage: 'ISCS资源管理' + iscsResourcesManage: 'ISCS资源管理', + projectManage: '项目管理', + frontProjectConfigManage:'前端项目配置管理' }; diff --git a/src/router/index.js b/src/router/index.js index 683b270b2..7d79156a4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -208,6 +208,9 @@ const UploadPdfList = () => import('@/views/uploadPdf/list'); const ThirdLogin = () => import('@/views/thirdLogin'); const ProjectServer = () => import('@/views/system/serverManage'); const VoiceManage = () => import('@/views/fileManage/voiceManage'); +const ProjectManage = () => import('@/views/system/projectManage'); +const FrontProjectConfigManage = () => import('@/views/system/frontProjectConfigManage'); + const IscsDeviceManage = () => import('@/views/system/iscsDeviceManage'); const IscsResourcesManage = () => import('@/views/system/iscsResourcesManage'); @@ -1336,6 +1339,20 @@ export const asyncRouter = [ meta: { i18n: 'router.audioResourcesManage' } + }, + { + path:'projectManage', + component: ProjectManage, + meta: { + i18n: 'router.projectManage' + } + }, + { + path:'frontProjectConfigManage', + component: FrontProjectConfigManage, + meta: { + i18n: 'router.frontProjectConfigManage' + } } ] }, diff --git a/src/views/system/frontProjectConfigManage/add.vue b/src/views/system/frontProjectConfigManage/add.vue new file mode 100644 index 000000000..d9ac4302e --- /dev/null +++ b/src/views/system/frontProjectConfigManage/add.vue @@ -0,0 +1,123 @@ + + diff --git a/src/views/system/frontProjectConfigManage/index.vue b/src/views/system/frontProjectConfigManage/index.vue new file mode 100644 index 000000000..3b9e1b4e8 --- /dev/null +++ b/src/views/system/frontProjectConfigManage/index.vue @@ -0,0 +1,132 @@ + + diff --git a/src/views/system/projectManage/add.vue b/src/views/system/projectManage/add.vue new file mode 100644 index 000000000..5f8b4efd6 --- /dev/null +++ b/src/views/system/projectManage/add.vue @@ -0,0 +1,128 @@ + + + diff --git a/src/views/system/projectManage/index.vue b/src/views/system/projectManage/index.vue new file mode 100644 index 000000000..03e358444 --- /dev/null +++ b/src/views/system/projectManage/index.vue @@ -0,0 +1,118 @@ + +