diff --git a/src/api/trainingManage.js b/src/api/trainingManage.js index 0d14d3c95..97f016604 100644 --- a/src/api/trainingManage.js +++ b/src/api/trainingManage.js @@ -182,3 +182,10 @@ export function importTrainingData(data) { data }); } +/** 实训跳转到当前步骤*/ +export function jumpToTraining(group, stepId) { + return request({ + url: `/api/training2Simulation/${group}/jumpTo/${stepId}`, + method: 'put' + }); +} diff --git a/src/scripts/cmdPlugin/CommandEnum.js b/src/scripts/cmdPlugin/CommandEnum.js index ceca49be2..bda0a47b5 100644 --- a/src/scripts/cmdPlugin/CommandEnum.js +++ b/src/scripts/cmdPlugin/CommandEnum.js @@ -516,7 +516,9 @@ export default { CMD_Conversation_Group_Text_Chat: {value: 'Conversation_Group_Text_Chat', label: '发送会话群文字消息'}, CMD_Conversation_Group_Audio_Base64: {value: 'Conversation_Group_Audio_Base64', label: '发送会话群语音消息'}, CMD_Conversation_Group_Private_Text_Chat: {value: 'Conversation_Group_Private_Text_Chat', label: '发送私聊文字消息'}, - CMD_Conversation_Group_Private_Audio_Base64: {value: 'Conversation_Group_Private_Audio_Base64', label: '发送私聊语音消息'} + CMD_Conversation_Group_Private_Audio_Base64: {value: 'Conversation_Group_Private_Audio_Base64', label: '发送私聊语音消息'}, + CMD_Conversation_Group_Create: {value: 'Conversation_Group_Create', label: '创建会话群'}, + CMD_Conversation_Group_Invite_Member: {value: 'Conversation_Group_Invite_Member', label: '邀请人员入群'} }, PSL: { CMD_PSL_PRESS_BUTTON: {value: 'PSL_PRESS_BUTTON', label: 'PSL按钮操作'} diff --git a/src/scripts/cmdPlugin/OperationHandler.js b/src/scripts/cmdPlugin/OperationHandler.js index 99db76057..d6f5b18ae 100644 --- a/src/scripts/cmdPlugin/OperationHandler.js +++ b/src/scripts/cmdPlugin/OperationHandler.js @@ -4389,11 +4389,11 @@ export const OperationEvent = { }, moonDay: { operation: 'b101', - domId: '_Tips-TicketOrRegister-RegisterInput-MoonDay' + domId: '_Tips-TicketOrRegister-RegisterInput-MoonDay{BOTTOM}' }, hourMinute: { operation: 'b102', - domId: '_Tips-TicketOrRegister-RegisterInput-HourMinute' + domId: '_Tips-TicketOrRegister-RegisterInput-HourMinute{BOTTOM}' }, result: { operation: 'b103', @@ -4401,11 +4401,11 @@ export const OperationEvent = { }, noticeTimeMoonDay: { operation: 'b104', - domId: '_Tips-TicketOrRegister-RegisterInput-NoticeTimeMoonDay' + domId: '_Tips-TicketOrRegister-RegisterInput-NoticeTimeMoonDay{BOTTOM}' }, noticeTimeHourMinute: { operation: 'b105', - domId: '_Tips-TicketOrRegister-RegisterInput-NoticeTimeHourMinute' + domId: '_Tips-TicketOrRegister-RegisterInput-NoticeTimeHourMinute{BOTTOM}' }, noticeTimeInfo: { operation: 'b106', @@ -4413,11 +4413,11 @@ export const OperationEvent = { }, arriveTimeMoonDay: { operation: 'b107', - domId: '_Tips-TicketOrRegister-RegisterInput-ArriveTimeMoonDay' + domId: '_Tips-TicketOrRegister-RegisterInput-ArriveTimeMoonDay{BOTTOM}' }, arriveTimeHourMinute: { operation: 'b108', - domId: '_Tips-TicketOrRegister-RegisterInput-ArriveTimeHourMinute' + domId: '_Tips-TicketOrRegister-RegisterInput-ArriveTimeHourMinute{BOTTOM}' }, arriveTimeInfo: { operation: 'b109', @@ -4425,11 +4425,11 @@ export const OperationEvent = { }, endTimeMoonDay: { operation: 'b110', - domId: '_Tips-TicketOrRegister-RegisterInput-EndTimeMoonDay' + domId: '_Tips-TicketOrRegister-RegisterInput-EndTimeMoonDay{BOTTOM}' }, endTimeHourMinute: { operation: 'b111', - domId: '_Tips-TicketOrRegister-RegisterInput-EndTimeHourMinute' + domId: '_Tips-TicketOrRegister-RegisterInput-EndTimeHourMinute{BOTTOM}' }, endTimeInfo: { operation: 'b112', @@ -5027,7 +5027,7 @@ export const OperationEvent = { }, requestDate:{ operation: '120a', - domId: '_Tips-Rail-equipmentConstructionFill-requestDate' + domId: '_Tips-Rail-equipmentConstructionFill-requestDate{BOTTOM}' }, requestDetails:{ operation: '120b', @@ -5035,7 +5035,7 @@ export const OperationEvent = { }, planSpendTime:{ operation: '120c', - domId: '_Tips-Rail-equipmentConstructionFill-planSpendTime' + domId: '_Tips-Rail-equipmentConstructionFill-planSpendTime{BOTTOM}' }, acceptDetail:{ operation: '120d', @@ -5043,7 +5043,7 @@ export const OperationEvent = { }, confirmReviewDate:{ operation: '120e', - domId: '_Tips-Rail-equipmentConstructionFill-confirmReviewDate' + domId: '_Tips-Rail-equipmentConstructionFill-confirmReviewDate{BOTTOM}' }, confirmReviewDetail:{ operation: '120f', @@ -5165,6 +5165,14 @@ export const OperationEvent = { record: { operation: '1403', domId: '_Tips-Conversation-Chat-record' + }, + createGroup: { + operation: '1404', + domId: '_Tips-Conversation-Chat-createGroup' + }, + inviteToGroup: { + operation: '1405', + domId: '_Tips-Conversation-Chat-inviteToGroup' } } }, diff --git a/src/views/newMap/display/newChat/chatDialog.vue b/src/views/newMap/display/newChat/chatDialog.vue index 5199037ac..f009174eb 100644 --- a/src/views/newMap/display/newChat/chatDialog.vue +++ b/src/views/newMap/display/newChat/chatDialog.vue @@ -33,8 +33,8 @@
-
- +
+
@@ -63,7 +63,7 @@
- + @@ -79,6 +79,7 @@ import AddressBook from './addressBook'; import PopMenu from '@/components/PopMenu'; import DialogMember from './dialogMember'; import { objectIsEqual } from '@/utils/date'; +import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; export default { name: 'ChatDialog', components: { @@ -95,6 +96,7 @@ export default { return { logoImgUrl: '', dialogVisible: false, + showEditGroup: false, tabs: [ {label:'消息', icon:'el-icon-chat-dot-square'}, {label:'通讯录', icon:'el-icon-notebook-1'} @@ -119,6 +121,9 @@ export default { groupId() { return this.$route.query.group; }, + createGroupDomId() { + return this.showEditGroup ? '' : OperationEvent.Conversation.Chat.createGroup.domId; + }, myMemberId() { return this.$store.state.training.myMemberId; }, @@ -275,6 +280,9 @@ export default { this.handleClose(); }, methods: { + handleEditGroup(val) { + this.showEditGroup = val; + }, showMenu(event, item) { this.groupClick(item); this.initMenu(item); diff --git a/src/views/newMap/display/newChat/editGroup.vue b/src/views/newMap/display/newChat/editGroup.vue index 0b4a3a466..2372546a2 100644 --- a/src/views/newMap/display/newChat/editGroup.vue +++ b/src/views/newMap/display/newChat/editGroup.vue @@ -59,7 +59,7 @@ --> 取消 - 确定 + 确定 @@ -69,8 +69,11 @@ diff --git a/src/views/newMap/display/terminals/registerBook.vue b/src/views/newMap/display/terminals/registerBook.vue index 83ba28554..b7b8b125f 100644 --- a/src/views/newMap/display/terminals/registerBook.vue +++ b/src/views/newMap/display/terminals/registerBook.vue @@ -11,15 +11,17 @@ style="width: 100%" :height="tableHeight" > - + - + @@ -30,15 +32,17 @@ - + @@ -50,15 +54,17 @@ - + @@ -70,15 +76,17 @@ - + @@ -304,6 +312,15 @@ export default { }; - diff --git a/src/views/newMap/display/trainingDesign/designPane.vue b/src/views/newMap/display/trainingDesign/designPane.vue index c8e7bbbbf..c0d353d84 100644 --- a/src/views/newMap/display/trainingDesign/designPane.vue +++ b/src/views/newMap/display/trainingDesign/designPane.vue @@ -351,6 +351,7 @@ export default { list.push(obj); }); await updateTrainingStep(this.group, this.editData.id, { step2VOList: list, playerIdList: this.playerIdList }); + this.getStepList(this.editData); this.$message.success('保存实训成功!'); } catch { this.$message.error('保存实训失败'); diff --git a/src/views/newMap/display/trainingDesign/editOperate.vue b/src/views/newMap/display/trainingDesign/editOperate.vue index 5c68424c6..d2358876f 100644 --- a/src/views/newMap/display/trainingDesign/editOperate.vue +++ b/src/views/newMap/display/trainingDesign/editOperate.vue @@ -1,6 +1,8 @@