Browse Source

fix:卡出库新增

confidence
杜贤金 3 years ago
parent
commit
066c006fa7
  1. 26
      src/views/communicationmanage/outbound/outbound.vue

26
src/views/communicationmanage/outbound/outbound.vue

@ -79,6 +79,20 @@
</div>
</el-popconfirm>
</el-dropdown-item>
<el-dropdown-item>
<el-popconfirm
confirm-button-text="确定"
cancel-button-text="取消"
@confirm="handleFlow(scope.row.id)"
icon-color="red"
title="您确认要同步流量吗?"
placement="top-start"
>
<div class="el-icon-refresh-right" slot="reference">
&nbsp;同步流量
</div>
</el-popconfirm>
</el-dropdown-item>
</template>
</avue-crud>
@ -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(

Loading…
Cancel
Save