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 @@
+
+