diff --git a/src/api/audioResources.js b/src/api/audioResources.js new file mode 100644 index 000000000..8e35efc71 --- /dev/null +++ b/src/api/audioResources.js @@ -0,0 +1,49 @@ +import request from '@/utils/request'; + +// 创建音频资源 +export function createAudioResources(data) { + return request({ + url: `/api/audioResources`, + method: 'post', + data + }); +} +// 查询所有音频资源 +export function queryAllAudioResources() { + return request({ + url: `/api/audioResources/list`, + method: 'get' + }); +} +// 删除音频资源 +export function deleteAudioResources(id) { + return request({ + url: `/api/audioResources/${id}`, + method: 'delete' + }); +} +// 更新音频资源 +export function updateAudioResources(id, data) { + return request({ + url: `/api/audioResources/${id}`, + method: 'put', + data + }); +} +// 分页查询音频资源 +export function pagedAudioResources(params) { + return request({ + url: `/api/audioResources/paged`, + method: 'get', + params + }); +} +// 上传音频文件 +export function uploadAudio(file) { + return request({ + url: `/api/upload/AUDIO?appId=00001&appSecret=joylink00001`, + method: 'post', + data: file, + upload: true + }); +} diff --git a/src/api/iscs.js b/src/api/iscs.js index 2b81ddacb..98c8744f7 100644 --- a/src/api/iscs.js +++ b/src/api/iscs.js @@ -49,3 +49,116 @@ export function queryHasIscs(params) { params }); } +// iscs设备创建 +export function createIscsDevcie(data) { + return request({ + url: `/api/iscsDevice`, + method: 'post', + data + }); +} +// 查询所有iscs设备 +export function queryAllIscsDevice() { + return request({ + url: `/api/iscsDevice/all`, + method: 'get' + }); +} +// 根据id查询iscs设备 +export function queryIscsDevcieById(id) { + return request({ + url: + `/api/iscsDevice/${id}`, + method: 'get' + }); +} +// 根据mapId获取Iscs设备list +export function queryIscsDeviceListByMapId(mapId) { + return request({ + url: `/api/iscsDevice/list/mapId/${mapId}`, + method: 'get' + }); +} +// 分页查询ISCS设备 +export function pagedIscsDevice(params) { + return request({ + url: `/api/iscsDevice/paged`, + method: 'get', + params + }); +} +// 删除ISCS设备 +export function deleteIscsDevice(id) { + return request({ + url: `/api/iscsDevice/${id}`, + method: 'delete' + }); +} +// 根据mapId查询设备列表 +export function getIscsDeviceListByMapId(mapId) { + return request({ + url: `/api/iscsDevice/list/mapId/${mapId}`, + method: 'get' + }); +} +// 根据条件查询设备列表 +export function queryIscsDeviceCod(params) { + return request({ + url: `/api/iscsDevice/list/criteria`, + method: 'get', + params + }); +} +// 批量创建ISCS设备 +export function batchCreateIscsDevcie(data) { + return request({ + url: `/api/iscsDevice/create/batch`, + method: 'post', + data + }); +} +// 创建ISCS系统资源 +export function createIscsResources(data) { + return request({ + url: `/api/systemRes`, + method: 'post', + data + }); +} +// 查询所有ISCS系统资源 +export function queryAllIscsResources() { + return request({ + url: `/api/systemRes/all`, + method: 'get' + }); +} +// 根据id查询ISCS系统资源 +export function queryIscsResourcesById(id) { + return request({ + url: `/api/systemRes/${id}`, + method: 'get' + }); +} +// 分页查询ISCS系统资源 +export function pagedIscsResources(params) { + return request({ + url: `/api/systemRes/paged`, + method: 'get', + params + }); +} +// 删除ISCS系统资源 +export function deleteIscsResources(id) { + return request({ + url: `/api/systemRes/${id}`, + method: 'delete' + }); +} +// 按条件查询ISCS系统资源 +export function queryIscsResourcesCod(params) { + return request({ + url: `/api/systemRes/list/criteria`, + method: 'get', + params + }); +} diff --git a/src/api/simulation.js b/src/api/simulation.js index 12e2bfdd1..920e00e7e 100644 --- a/src/api/simulation.js +++ b/src/api/simulation.js @@ -505,3 +505,11 @@ export function srTrainControl(group, params) { params }); } +/** 条件查询仿真中的ISCS资源 */ +export function queryIscsResourcesByGroup(group, params) { + return request({ + url: `simulation/${group}/iscs/systemResources`, + method: 'get', + params + }); +} diff --git a/src/i18n/langs/en/router.js b/src/i18n/langs/en/router.js index 723edc0dc..8bbad7997 100644 --- a/src/i18n/langs/en/router.js +++ b/src/i18n/langs/en/router.js @@ -100,5 +100,8 @@ export default { voiceTraining: 'Voice Training', mapGroup: 'Map Group', drawingMange:'Drawing Mange', - projectServer: 'Project Server' + projectServer: 'Project Server', + audioResourcesManage: 'Audio Resources Manage', + iscsDeviceManage: 'ISCS Device Manage', + iscsResourcesManage: 'ISCS Resources Manage' }; diff --git a/src/i18n/langs/zh/router.js b/src/i18n/langs/zh/router.js index 7cede752b..f74e62b56 100644 --- a/src/i18n/langs/zh/router.js +++ b/src/i18n/langs/zh/router.js @@ -104,5 +104,8 @@ export default { voiceTraining: '语音训练', mapGroup: '地图分组', drawingMange:'图纸管理', - projectServer: '项目域名' + projectServer: '项目域名', + audioResourcesManage: '音频资源管理', + iscsDeviceManage: 'ISCS设备管理', + iscsResourcesManage: 'ISCS资源管理' }; diff --git a/src/router/index.js b/src/router/index.js index 06c3aed08..749b8ded2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -192,6 +192,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 IscsDeviceManage = () => import('@/views/system/iscsDeviceManage'); +const IscsResourcesManage = () => import('@/views/system/iscsResourcesManage'); // import { GenerateRouteProjectList } from '@/scripts/ProjectConfig'; // import { getSessionStorage } from '@/utils/auth'; @@ -1210,6 +1213,20 @@ export const asyncRouter = [ meta: { i18n: 'router.projectServer' } + }, + { + path: 'iscsDeviceManage', + component: IscsDeviceManage, + meta: { + i18n: 'router.iscsDeviceManage' + } + }, + { + path: 'iscsResourcesManage', + component: IscsResourcesManage, + meta: { + i18n: 'router.iscsResourcesManage' + } } // { // path: 'deviceManage', @@ -1255,6 +1272,13 @@ export const asyncRouter = [ meta: { i18n: 'router.uploadPdf' } + }, + { + path: 'audioResources', + component: VoiceManage, + meta: { + i18n: 'router.audioResourcesManage' + } } ] }, diff --git a/src/store/modules/socket.js b/src/store/modules/socket.js index c409bf503..9490c50b4 100644 --- a/src/store/modules/socket.js +++ b/src/store/modules/socket.js @@ -341,6 +341,8 @@ const socket = { simulationAlarmInfo: [], // 仿真报警信息 deviceStateMessages: null, // 新版订阅设备状态消息 iscsStateMessages: null, // iscs设备状态消息 + iscsStatePaMessages: null, // iscsPA设备状态消息 + iscsStatePisMessages: null, // iscsPIS设备状态消息 simulationSpeed: 1, // 仿真倍速 simulationPause: false, simulationPslStatus: [], // PSL面板按钮状态信息 @@ -425,6 +427,12 @@ const socket = { }, setIscsStateMessages: (state, speed) => { state.iscsStateMessages = speed; + }, + setIscsStatePaMessages: (state, speed) => { + state.iscsStatePaMessages = speed; + }, + setIscsStatePisMessages: (state, speed) => { + state.iscsStatePisMessages = speed; } }, @@ -513,6 +521,12 @@ const socket = { }, handleIscsState:({ commit }, state) => { commit('setIscsStateMessages', state); + }, + handleIscsPaState:({ commit }, state) => { + commit('setIscsStatePaMessages', state); + }, + handleIscsPisState:({ commit }, state) => { + commit('setIscsStatePisMessages', state); } } }; diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 25b070562..6827def93 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -1,4 +1,3 @@ -import store from '@/store/index'; // export function getBaseUrl() { // let BASE_API; // if (process.env.NODE_ENV === 'development') { diff --git a/src/utils/request.js b/src/utils/request.js index 5673dd619..5049fbb20 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -29,6 +29,9 @@ service.interceptors.request.use(config => { if (store.state.user.baseUrl) { config.baseURL = store.state.user.baseUrl; } + if (config.upload) { + config.baseURL = urlData.UPLOAD_API; + } if (config.time) { config.timeout = config.time; // 让每个请求携带自定义token 请根据实际情况自行修改 diff --git a/src/utils/stomp.js b/src/utils/stomp.js index 330881d5c..c420e0fbb 100644 --- a/src/utils/stomp.js +++ b/src/utils/stomp.js @@ -25,6 +25,12 @@ export function getTopic(type, group, stationCode) { case 'ISCSPSD': topic = `/queue/simulation/${group}/iscs/psd/${stationCode}`; break; + case 'ISCSPA': + topic = `/queue/simulation/${group}/iscs/pa`; + break; + case 'ISCSPIS': + topic = `/queue/simulation/${group}/iscs/pis`; + break; } return topic; } @@ -50,8 +56,12 @@ function callback(Response) { store.dispatch('socket/setSimulationTimeSync', Number.parseInt(Response.body)); } else if (Response.headers.destination.includes('state')) { store.dispatch('socket/handleSimulationState', Number.parseInt(Response.body)); - } else if (Response.headers.destination.includes('iscs')) { + } else if (Response.headers.destination.includes('iscs/psd')) { store.dispatch('socket/handleIscsState', JSON.parse(Response.body)); + } else if (Response.headers.destination.includes('iscs/pa')) { + store.dispatch('socket/handleIscsPaState', JSON.parse(Response.body)); + } else if (Response.headers.destination.includes('iscs/pis')) { + store.dispatch('socket/handleIscsPisState', JSON.parse(Response.body)); } else { const data = JSON.parse(Response.body); store.dispatch('socket/setStomp', data); diff --git a/src/views/fileManage/voiceManage/add.vue b/src/views/fileManage/voiceManage/add.vue new file mode 100644 index 000000000..8d7dac412 --- /dev/null +++ b/src/views/fileManage/voiceManage/add.vue @@ -0,0 +1,217 @@ + + + + diff --git a/src/views/fileManage/voiceManage/index.vue b/src/views/fileManage/voiceManage/index.vue new file mode 100644 index 000000000..13d2a5fe0 --- /dev/null +++ b/src/views/fileManage/voiceManage/index.vue @@ -0,0 +1,131 @@ + + + diff --git a/src/views/iscs/iscsSystem/config/broadcast/centerHome.vue b/src/views/iscs/iscsSystem/config/broadcast/centerHome.vue index 61a50dd24..b10c18dcc 100644 --- a/src/views/iscs/iscsSystem/config/broadcast/centerHome.vue +++ b/src/views/iscs/iscsSystem/config/broadcast/centerHome.vue @@ -14,14 +14,14 @@
- -
{{ it }}
+ +
{{ it.name }}
-
+
-
0
+
{{ deviceMap[i+ '-' +j].state }}
@@ -39,13 +39,13 @@
预备
广播
- -
+ +
普通预录

- -
+ +
紧急预录
@@ -55,7 +55,7 @@ 广播内容 - 广播停止 + 广播停止
@@ -64,8 +64,8 @@
背景音乐
- 播放音乐 - 停止音乐 + 播放音乐 + 停止音乐
@@ -76,15 +76,21 @@
- + +
diff --git a/src/views/iscs/iscsSystem/config/broadcast/stateTable.vue b/src/views/iscs/iscsSystem/config/broadcast/stateTable.vue index c9ccf79d8..fda5e22b0 100644 --- a/src/views/iscs/iscsSystem/config/broadcast/stateTable.vue +++ b/src/views/iscs/iscsSystem/config/broadcast/stateTable.vue @@ -16,18 +16,18 @@
2
联动消防广播
9
-
中心普通语录
+
中心普通预录
3
环调话筒广播
-
11
-
车站普通语录
+
10
+
车站普通预录
4
-
中心紧急语录
-
12
+
中心紧急预录
+
11
ATS预录
@@ -38,12 +38,12 @@
6
-
车站紧急语录
+
车站紧急预录
13
设备通讯失败
-
+
背景音乐
被选择
diff --git a/src/views/iscs/iscsSystem/config/broadcast/stationHome.vue b/src/views/iscs/iscsSystem/config/broadcast/stationHome.vue index d4bea04a7..765a1e0e4 100644 --- a/src/views/iscs/iscsSystem/config/broadcast/stationHome.vue +++ b/src/views/iscs/iscsSystem/config/broadcast/stationHome.vue @@ -13,55 +13,55 @@
-
+
全车站
-
-
-
0
+
+
+
{{ deviceMap['LCD'].state }}
-
-
-
0
+
+
+
{{ deviceMap['UP_STAND'].state }}
-
-
-
0
+
+
+
{{ deviceMap['DOWN_STAND'].state }}
-
-
-
0
+
+
+
{{ deviceMap['ADMINISTRATIVE_AREA'].state }}
-
-
-
0
+
+
+
{{ deviceMap['GATE'].state }}
-
-
-
0
+
+
+
{{ deviceMap['TRANSFER_CHANNEL'].state }}
ATC广播
-
{{this.enableAreaList.includes('站厅')? '启用':'未启用'}}
-
{{this.enableAreaList.includes('上行站台')? '启用':'未启用'}}
-
{{this.enableAreaList.includes('下行站台')? '启用':'未启用'}}
-
{{this.enableAreaList.includes('办公区')? '启用':'未启用'}}
-
{{this.enableAreaList.includes('出入口')? '启用':'未启用'}}
-
{{this.enableAreaList.includes('换乘通道')? '启用':'未启用'}}
+
{{ this.enableAreaList.includes('LCD')? '启用':'未启用' }}
+
{{ this.enableAreaList.includes('UP_STAND')? '启用':'未启用' }}
+
{{ this.enableAreaList.includes('DOWN_STAND')? '启用':'未启用' }}
+
{{ this.enableAreaList.includes('ADMINISTRATIVE_AREA')? '启用':'未启用' }}
+
{{ this.enableAreaList.includes('GATE')? '启用':'未启用' }}
+
{{ this.enableAreaList.includes('TRANSFER_CHANNEL')? '启用':'未启用' }}
@@ -70,23 +70,31 @@ -
-
+
+
普通预录
-
-
+
+
紧急预录
-
播放
+
播放
信息描述
-
{{ item }}
+
+ {{ item.name }} +
@@ -94,76 +102,76 @@
广播内容
-
{{ item }}
+
{{ resourcesList[messageIndex] ? resourcesList[messageIndex].desc: '' }}
-
- - -
时间控制
-
- - - -
排定描述
-
- - -
- - -
开始时间
-
- - - - -
结束时间
-
- - - - -
延时时间
-
- - - - -
今日
-
- -
一次
-
- -
无截止
-
-
-
- -
设定
确认
-
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-
+
实时广播
@@ -173,7 +181,7 @@
广播中断
-
广播停止
+
广播停止
@@ -195,16 +203,22 @@
背景音乐
-
播放音乐
-
停止音乐
+
播放音乐
+
停止音乐
+
diff --git a/src/views/system/iscsDeviceManage/batchAdd.vue b/src/views/system/iscsDeviceManage/batchAdd.vue new file mode 100644 index 000000000..c19947d04 --- /dev/null +++ b/src/views/system/iscsDeviceManage/batchAdd.vue @@ -0,0 +1,178 @@ + + + + diff --git a/src/views/system/iscsDeviceManage/index.vue b/src/views/system/iscsDeviceManage/index.vue new file mode 100644 index 000000000..ae1845e9c --- /dev/null +++ b/src/views/system/iscsDeviceManage/index.vue @@ -0,0 +1,254 @@ + + + diff --git a/src/views/system/iscsResourcesManage/add.vue b/src/views/system/iscsResourcesManage/add.vue new file mode 100644 index 000000000..69d54a0d7 --- /dev/null +++ b/src/views/system/iscsResourcesManage/add.vue @@ -0,0 +1,231 @@ + + + + diff --git a/src/views/system/iscsResourcesManage/index.vue b/src/views/system/iscsResourcesManage/index.vue new file mode 100644 index 000000000..ab8311256 --- /dev/null +++ b/src/views/system/iscsResourcesManage/index.vue @@ -0,0 +1,203 @@ + + + diff --git a/src/views/system/serverManage/index.vue b/src/views/system/serverManage/index.vue index 37a73e55a..1925bb4e8 100644 --- a/src/views/system/serverManage/index.vue +++ b/src/views/system/serverManage/index.vue @@ -47,10 +47,10 @@ export default { title: '接口域名', prop: 'domainName' }, - { - title: '资源域名', - prop: 'resourcesDomainName' - }, + { + title: '资源域名', + prop: 'resourcesDomainName' + }, { title: '项目名称', prop: 'projectCode', diff --git a/src/views/system/voiceTraining/index.vue b/src/views/system/voiceTraining/index.vue index 310f63a04..0a8b20b85 100644 --- a/src/views/system/voiceTraining/index.vue +++ b/src/views/system/voiceTraining/index.vue @@ -51,6 +51,7 @@ export default { }, methods: { getUrl(el) { + console.log(el.filePath); return `https://joylink.club/oss/joylink${el.filePath}`; }, covertTime(time) {