打开聊天弹窗去掉实训校验
This commit is contained in:
parent
77f644fc28
commit
a54a4d0d3c
@ -144,17 +144,17 @@ class Handler {
|
||||
const stepInfo = store.state.trainingNew.stepInfo;
|
||||
const operateOrder = store.state.trainingNew.operateOrder;
|
||||
const operation = stepInfo.operations[operateOrder];
|
||||
const operation1 = {
|
||||
userOperationType: UserOperationType.LEFTCLICK,
|
||||
domId: OperationEvent.Conversation.Chat.sideButton.operation,
|
||||
params: { chatBoxMin: true }
|
||||
};
|
||||
const step1 = {
|
||||
description: '点击打开聊天室',
|
||||
memberId: stepInfo.memberId,
|
||||
operations: [operation1],
|
||||
tipPosition: { deviceCode: '', domId: operation1.domId, operateIndex: 0 }
|
||||
};
|
||||
// const operation1 = {
|
||||
// userOperationType: UserOperationType.LEFTCLICK,
|
||||
// domId: OperationEvent.Conversation.Chat.sideButton.operation,
|
||||
// params: { chatBoxMin: true }
|
||||
// };
|
||||
// const step1 = {
|
||||
// description: '点击打开聊天室',
|
||||
// memberId: stepInfo.memberId,
|
||||
// operations: [operation1],
|
||||
// tipPosition: { deviceCode: '', domId: operation1.domId, operateIndex: 0 }
|
||||
// };
|
||||
const operation2 = {
|
||||
userOperationType: UserOperationType.LEFTCLICK,
|
||||
domId: OperationEvent.Conversation.Chat.record.operation,
|
||||
@ -192,11 +192,11 @@ class Handler {
|
||||
operations: [operation3],
|
||||
tipPosition: { deviceCode: '', domId: operation3.domId, operateIndex: 0 }
|
||||
};
|
||||
if (store.state.training.chatBoxMin) {
|
||||
store.dispatch('trainingNew/setVoiceStepList', [step1, step2, step3]);
|
||||
} else {
|
||||
store.dispatch('trainingNew/setVoiceStepList', [step2, step3]);
|
||||
}
|
||||
// if (store.state.training.chatBoxMin) {
|
||||
// store.dispatch('trainingNew/setVoiceStepList', [step1, step2, step3]);
|
||||
// } else {
|
||||
// }
|
||||
store.dispatch('trainingNew/setVoiceStepList', [step2, step3]);
|
||||
}
|
||||
}
|
||||
export default new Handler();
|
||||
|
@ -97,8 +97,11 @@ export default {
|
||||
sendTextId() {
|
||||
return OperationEvent.Conversation.Chat.menu.domId;
|
||||
},
|
||||
chatBoxMin() {
|
||||
return this.$store.state.training.chatBoxMin;
|
||||
},
|
||||
recordVoice() {
|
||||
return OperationEvent.Conversation.Chat.record.domId;
|
||||
return this.chatBoxMin ? '' : OperationEvent.Conversation.Chat.record.domId;
|
||||
},
|
||||
sideButtonDom() {
|
||||
return OperationEvent.Conversation.Chat.sideButton;
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
<script>
|
||||
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
||||
import {UserOperationType} from '@/scripts/ConstDic';
|
||||
// import {UserOperationType} from '@/scripts/ConstDic';
|
||||
import chatDialog from './chatDialog';
|
||||
export default {
|
||||
name: 'ChatBox',
|
||||
@ -32,6 +32,11 @@ export default {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
chatBoxMin() {
|
||||
this.$nextTick(() => {
|
||||
this.$store.dispatch('training/emitTipFresh');
|
||||
});
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
@ -40,18 +45,18 @@ export default {
|
||||
this.totalUnreadNum = val;
|
||||
},
|
||||
clickBtn() {
|
||||
const operate = {
|
||||
operation: this.sideButtonDom.operation,
|
||||
param: { chatBoxMin: this.chatBoxMin },
|
||||
userOperationType: UserOperationType.LEFTCLICK
|
||||
};
|
||||
// const operate = {
|
||||
// operation: this.sideButtonDom.operation,
|
||||
// param: { chatBoxMin: this.chatBoxMin },
|
||||
// userOperationType: UserOperationType.LEFTCLICK
|
||||
// };
|
||||
this.$store.dispatch('training/setChatBoxMin', false);
|
||||
this.$refs.chatDialog.dialogVisible = true;
|
||||
if (this.$store.state.trainingNew.trainingSwitch) {
|
||||
this.$nextTick(() => {
|
||||
this.$store.dispatch('trainingNew/next', operate);
|
||||
});
|
||||
}
|
||||
// if (this.$store.state.trainingNew.trainingSwitch) {
|
||||
// this.$nextTick(() => {
|
||||
// this.$store.dispatch('trainingNew/next', operate);
|
||||
// });
|
||||
// }
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -121,6 +121,8 @@ export default {
|
||||
this.position = position;
|
||||
this.position.y -= distance;
|
||||
this.popTipShow();
|
||||
} else {
|
||||
this.popTipHide();
|
||||
}
|
||||
} else {
|
||||
this.popTipHide();
|
||||
|
Loading…
Reference in New Issue
Block a user