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

刷新tabs 数量

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