Files
waf-platform/EdgeAdmin/web/views/@default/settings/ip-library/cities/index.js
2026-02-04 20:27:13 +08:00

20 lines
523 B
JavaScript

Tea.context(function () {
this.changeCountry = function (item) {
let provinceOptionsBox = this.$refs.provinceOptionsRef
if (item != null) {
provinceOptionsBox.setDataURL("/settings/ip-library/cities/provinceOptions?countryId=" + item.value)
provinceOptionsBox.reloadData()
}
provinceOptionsBox.clear()
}
this.updateCity = function (cityId) {
teaweb.popup("/settings/ip-library/cities/updatePopup?cityId=" + cityId, {
callback: function () {
teaweb.successRefresh("保存成功")
}
})
}
})