|
|
@ -79,6 +79,20 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-popconfirm> |
|
|
|
</el-popconfirm> |
|
|
|
</el-dropdown-item> |
|
|
|
</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"> |
|
|
|
|
|
|
|
同步流量 |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</el-popconfirm> |
|
|
|
|
|
|
|
</el-dropdown-item> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</avue-crud> |
|
|
|
</avue-crud> |
|
|
|
|
|
|
|
|
|
|
@ -175,6 +189,7 @@ import { |
|
|
|
syncRealNameStatus, |
|
|
|
syncRealNameStatus, |
|
|
|
updateSimStatus, |
|
|
|
updateSimStatus, |
|
|
|
} from "@/api/communication/outbound"; |
|
|
|
} from "@/api/communication/outbound"; |
|
|
|
|
|
|
|
import { syncUsage } from "@/api/informationmanage/sim.js"; |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
import { getToken } from "@/util/auth"; |
|
|
|
import { getToken } from "@/util/auth"; |
|
|
|
export default { |
|
|
|
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 = {}) { |
|
|
|
onLoad(page, params = {}) { |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
getList( |
|
|
|
getList( |
|
|
|