diff --git a/src/views/communicationmanage/outbound/outbound.vue b/src/views/communicationmanage/outbound/outbound.vue index 94b8084..1c31ac1 100644 --- a/src/views/communicationmanage/outbound/outbound.vue +++ b/src/views/communicationmanage/outbound/outbound.vue @@ -79,6 +79,20 @@ + + +
+  同步流量 +
+
+
@@ -175,6 +189,7 @@ import { syncRealNameStatus, updateSimStatus, } from "@/api/communication/outbound"; +import { syncUsage } from "@/api/informationmanage/sim.js"; import { mapGetters } from "vuex"; import { getToken } from "@/util/auth"; export default { @@ -895,6 +910,17 @@ export default { }); } }, + //同步流量 + handleFlow(id) { + syncUsage(id).then((res) => { + if (res.data.code == 200) { + this.$message.success("同步成功"); + this.onLoad(this.page, this.query); + } else { + this.$message.error("同步失败"); + } + }); + }, onLoad(page, params = {}) { this.loading = true; getList(