增加封禁省份管理

This commit is contained in:
刘祥超
2020-11-06 11:30:35 +08:00
parent d8cb7e15d4
commit f3e3bffa2b
8 changed files with 172 additions and 5 deletions

View File

@@ -0,0 +1,23 @@
Tea.context(function () {
this.isCheckingAll = false
this.selectProvince = function (province) {
province.isChecked = !province.isChecked
}
this.deselectProvince = function (province) {
province.isChecked = false
}
this.checkAll = function () {
this.isCheckingAll = !this.isCheckingAll
this.provinces.forEach(function (province) {
province.isChecked = that.isCheckingAll
})
}
this.success = function () {
teaweb.successToast("保存成功")
}
})