综合演练仿真聊天 请求会话成员代码调整 退出会话代码调整

This commit is contained in:
joylink_cuiweidong 2020-06-03 16:44:38 +08:00
parent 49c61f8c8d
commit 156a746a07
3 changed files with 3 additions and 3 deletions

View File

@ -151,7 +151,7 @@ export default {
}, },
quitCoversition() { quitCoversition() {
quitCoversition(this.group, this.currentCoversition.id).then(res=>{ quitCoversition(this.group, this.currentCoversition.id).then(res=>{
this.currentCoversition = null; this.currentCoversition = {all:undefined, id:null};
this.$refs.chatCoversitionList.initPage(true); this.$refs.chatCoversitionList.initPage(true);
this.isHasCoversition = false; this.isHasCoversition = false;
}).catch(error=>{ }).catch(error=>{

View File

@ -94,7 +94,7 @@ export default {
}, },
methods:{ methods:{
inintData() { inintData() {
if (this.coversition) { if (this.coversition.id) {
getSimulationContextListNew(this.$route.query.group, this.coversition.id).then(res=>{ getSimulationContextListNew(this.$route.query.group, this.coversition.id).then(res=>{
const userId = this.$store.state.user.id; const userId = this.$store.state.user.id;
const coversitionList = res.data.map(coversition=>{ const coversitionList = res.data.map(coversition=>{

View File

@ -59,7 +59,7 @@ export default {
methods:{ methods:{
getSimulationMembers() { getSimulationMembers() {
this.memberList = []; this.memberList = [];
if (this.currentCoversition && this.currentCoversition.id) { if (this.currentCoversition.id) {
getSimulationChatMemberNew(this.$route.query.group, this.currentCoversition.id).then(resp => { getSimulationChatMemberNew(this.$route.query.group, this.currentCoversition.id).then(resp => {
let lastData = JSON.stringify(resp.data); let lastData = JSON.stringify(resp.data);
const roleTypeList = ConstConfig.ConstSelect.roleTypeNew; const roleTypeList = ConstConfig.ConstSelect.roleTypeNew;