提交 1039769e 编写于 作者: 张磊's avatar 张磊

tab status'

上级 d6dd1035
......@@ -304,7 +304,7 @@
.catch(() => {
this.$message.error('未获取到相关信息');
this.memberList = [];
// this.getErr();
// this.getErr();
});
},
// 获取AppId
......@@ -548,8 +548,8 @@
this.muteLocalAudio();
this.rtc.leave();
this.clearSession();
window.location.href = 'about:blank';
window.close();
// window.location.href = 'about:blank';
// window.close();
},
// 结束会话
overFn() {
......
......@@ -21,6 +21,7 @@ const main = {
isSuper: false,
userID: '',
},
currentTabStatus: '',
},
mutations: {
updateCurrentDiagList(state, obj) {
......@@ -84,9 +85,11 @@ const main = {
state.noticeList = obj;
},
updateIsSuperAdmin(state, obj) {
console.log('obj----11111-----', obj);
state.isSuperAdmin = obj;
},
updateCurrentTabStatus(state, obj) {
state.currentTabStatus = obj;
},
},
actions: {
gotoInquiry({ commit }, current) {
......
......@@ -27,6 +27,7 @@ const socket = {
});
socketClient.on('diagnose_push_event', (socket) => {
const { list, allSize, countRespList } = socket;
console.log('-rootState', rootState);
context.commit('main/updateCurrentCalList', countRespList, {
root: true,
});
......
......@@ -112,34 +112,6 @@
pageSize: 6,
pageNo: 1,
},
testlistdata: [
{
appointBeginTime: '2021-07-29T05:28:57.396Z',
appointEndTime: '2021-07-29T05:28:57.396Z',
department: '内科',
departmentId: 3876,
diagnoseLogId: 38,
diagnoseType: 1,
doctorCallKfStatus: 1,
doctorCallTime: '',
doctorId: 0,
doctorMobile: '16789987665',
doctorName: '孙思邈',
doctorTrtcEntryStatus: 1,
imStatus: 0,
imTeamId: '',
returnStatus: 1,
roomId: 'string',
sort: 0,
status: 0,
userCallKfStatus: 0,
userCallTime: '',
userId: 0,
userMobile: '12343123233',
userName: '孙思邈',
userTrtcEntryStatus: 0,
},
],
};
},
computed: {
......@@ -168,6 +140,7 @@
};
this.searchParam = p;
this.tabPosition = s ? s.returnStatus : 1;
this.$store.commit('main/updateCurrentTabStatus', s);
this.inquirySearch('clear');
}
},
......@@ -179,6 +152,7 @@
const s = storejs.get('soketQuest');
const t = s ? s.returnStatus : 1;
this.tabPosition = t;
this.$store.commit('main/updateCurrentTabStatus', t);
const d = s ? s.dateTime : new Date().format('yyyy-MM-dd');
this.searchParam.dateTime = d;
const id =
......@@ -191,6 +165,8 @@
s.returnStatus = val;
this.searchParam = s;
s.pageNo = 1;
this.$store.commit('main/updateCurrentTabStatus', val);
this.inquirySearch('tab');
},
changeDatetime(val) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册