提交 22fd8a19 编写于 作者: lyf's avatar lyf

刷新tabs 数量

上级 9e2b7a9c
......@@ -250,6 +250,7 @@
<match-component
@search="search"
:matchVisible.sync="matchVisible"
:diagnoseLogId="diagnoseLogId"
:batchFlag="batchFlag"
......@@ -641,7 +642,7 @@ export default {
// 重置页面后搜索
getsearch() {
this.resetPage();
this.search();
this.search(true);
},
sortfunc(data){
// ascending 升序
......@@ -664,12 +665,18 @@ export default {
this.searchParam.sort=null
}
this.search()
this.search(true)
},
search() {
search(isTabs) {
this.loading = true;
if(!isTabs){
console.log("isTabs",isTabs)
this.getTabs();
}
this.initTime();
let url = LIST_URL;
this.POST(url, this.searchParam).then((res) => {
this.loading = false;
if (res.code == "000000") {
......@@ -834,7 +841,7 @@ export default {
.then(function (res) {
if (res.code == "000000") {
// this.cancel();
vm.search();
vm.search(false);
} else {
vm.$message.error(res.message);
}
......@@ -910,7 +917,7 @@ export default {
.then(function (res) {
if (res.code == "000000") {
// this.cancel();
vm.search();
vm.search(false);
} else {
vm.$message.error(res.message);
}
......@@ -929,11 +936,12 @@ export default {
},
handleSizeChange(value) {
this.searchParam.pageSize = value;
this.search();
this.search(true);
},
handleCurrentChange(value) {
this.searchParam.pageNo = value;
this.search();
this.search(true);
},
// 清除直播时间相关的seession
clearSession() {
......
......@@ -182,8 +182,11 @@ export default {
// 主动呼叫
drivingCall(data) {
// /team/call/direct/{imAccId}呼叫
let url = `/im/team/call/direct/${data.accId}`;
this.POST(url).then((res) => {
let url = `/im/team/call/direct/`;
let params={
imAccId :data.accId
}
this.POST(url,params).then((res) => {
if (res.code === "000000") {
data.timeleft=60
} else {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册