Vue.component("ns-access-log-box", { props: ["v-access-log", "v-keyword"], data: function () { let accessLog = this.vAccessLog let isFailure = false if (accessLog.isRecursive) { if (accessLog.recordValue == null || accessLog.recordValue.length == 0) { isFailure = true } } else { if (accessLog.recordType == "SOA" || accessLog.recordType == "NS") { if (accessLog.recordValue == null || accessLog.recordValue.length == 0) { isFailure = true } } else if (accessLog.nsRecordId == null || accessLog.nsRecordId == 0) { isFailure = true } } return { accessLog: accessLog, isFailure: isFailure } }, methods: { showLog: function () { let that = this let requestId = this.accessLog.requestId this.$parent.$children.forEach(function (v) { if (v.deselect != null) { v.deselect() } }) this.select() teaweb.popup("/ns/clusters/accessLogs/viewPopup?requestId=" + requestId, { width: "50em", height: "24em", onClose: function () { that.deselect() } }) }, select: function () { this.$refs.box.parentNode.style.cssText = "background: rgba(0, 0, 0, 0.1)" }, deselect: function () { this.$refs.box.parentNode.style.cssText = "" } }, template: `