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

tab status'

上级 d6dd1035
...@@ -304,7 +304,7 @@ ...@@ -304,7 +304,7 @@
.catch(() => { .catch(() => {
this.$message.error('未获取到相关信息'); this.$message.error('未获取到相关信息');
this.memberList = []; this.memberList = [];
// this.getErr(); // this.getErr();
}); });
}, },
// 获取AppId // 获取AppId
...@@ -548,8 +548,8 @@ ...@@ -548,8 +548,8 @@
this.muteLocalAudio(); this.muteLocalAudio();
this.rtc.leave(); this.rtc.leave();
this.clearSession(); this.clearSession();
window.location.href = 'about:blank'; // window.location.href = 'about:blank';
window.close(); // window.close();
}, },
// 结束会话 // 结束会话
overFn() { overFn() {
......
...@@ -21,6 +21,7 @@ const main = { ...@@ -21,6 +21,7 @@ const main = {
isSuper: false, isSuper: false,
userID: '', userID: '',
}, },
currentTabStatus: '',
}, },
mutations: { mutations: {
updateCurrentDiagList(state, obj) { updateCurrentDiagList(state, obj) {
...@@ -84,9 +85,11 @@ const main = { ...@@ -84,9 +85,11 @@ const main = {
state.noticeList = obj; state.noticeList = obj;
}, },
updateIsSuperAdmin(state, obj) { updateIsSuperAdmin(state, obj) {
console.log('obj----11111-----', obj);
state.isSuperAdmin = obj; state.isSuperAdmin = obj;
}, },
updateCurrentTabStatus(state, obj) {
state.currentTabStatus = obj;
},
}, },
actions: { actions: {
gotoInquiry({ commit }, current) { gotoInquiry({ commit }, current) {
......
...@@ -27,6 +27,7 @@ const socket = { ...@@ -27,6 +27,7 @@ const socket = {
}); });
socketClient.on('diagnose_push_event', (socket) => { socketClient.on('diagnose_push_event', (socket) => {
const { list, allSize, countRespList } = socket; const { list, allSize, countRespList } = socket;
console.log('-rootState', rootState);
context.commit('main/updateCurrentCalList', countRespList, { context.commit('main/updateCurrentCalList', countRespList, {
root: true, root: true,
}); });
......
...@@ -112,34 +112,6 @@ ...@@ -112,34 +112,6 @@
pageSize: 6, pageSize: 6,
pageNo: 1, 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: { computed: {
...@@ -168,6 +140,7 @@ ...@@ -168,6 +140,7 @@
}; };
this.searchParam = p; this.searchParam = p;
this.tabPosition = s ? s.returnStatus : 1; this.tabPosition = s ? s.returnStatus : 1;
this.$store.commit('main/updateCurrentTabStatus', s);
this.inquirySearch('clear'); this.inquirySearch('clear');
} }
}, },
...@@ -179,6 +152,7 @@ ...@@ -179,6 +152,7 @@
const s = storejs.get('soketQuest'); const s = storejs.get('soketQuest');
const t = s ? s.returnStatus : 1; const t = s ? s.returnStatus : 1;
this.tabPosition = t; this.tabPosition = t;
this.$store.commit('main/updateCurrentTabStatus', t);
const d = s ? s.dateTime : new Date().format('yyyy-MM-dd'); const d = s ? s.dateTime : new Date().format('yyyy-MM-dd');
this.searchParam.dateTime = d; this.searchParam.dateTime = d;
const id = const id =
...@@ -191,6 +165,8 @@ ...@@ -191,6 +165,8 @@
s.returnStatus = val; s.returnStatus = val;
this.searchParam = s; this.searchParam = s;
s.pageNo = 1; s.pageNo = 1;
this.$store.commit('main/updateCurrentTabStatus', val);
this.inquirySearch('tab'); this.inquirySearch('tab');
}, },
changeDatetime(val) { changeDatetime(val) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册