Files
waf-platform/EdgeAdmin/web/views/@default/ns/routes/createPopup.js
2026-02-04 20:27:13 +08:00

23 lines
482 B
JavaScript

Tea.context(function () {
this.rangeTypeCode = "ipRange"
this.rangeType = null
this.ranges = []
this.$delay(function () {
this.changeRangeType()
})
this.changeRangeType = function () {
let that = this
this.rangeType = this.rangeTypes.$find(function (k, v) {
return v.code == that.rangeTypeCode
})
if (this.$refs != null) {
let rangesBox = this.$refs.routeRangesBox
if (rangesBox != null) {
rangesBox.updateRangeType(this.rangeTypeCode)
}
}
}
})