diff --git a/src/views/sys/banner/form-edit.vue b/src/views/sys/banner/form-edit.vue index 589490f..cf2ca0a 100644 --- a/src/views/sys/banner/form-edit.vue +++ b/src/views/sys/banner/form-edit.vue @@ -248,6 +248,34 @@ + + + + + + + {{ + item.country.aliasName || item.country.enName + }} + + + + { + that.loadingCountry = false; + that.countryList = res.body || []; + }) + .catch(er => { + that.loadingCountry = false; + console.error(er); + }); + }, + + // 选择国家 + changeCountry(val) { + const that = this; + that.form.countryCode = that.selectCountryCode.join(","); + }, handleClose() { this.$emit("close"); }, diff --git a/src/views/sys/banner/index.vue b/src/views/sys/banner/index.vue index b03d4ba..0d7ffc9 100644 --- a/src/views/sys/banner/index.vue +++ b/src/views/sys/banner/index.vue @@ -76,6 +76,7 @@ placeholder="国家" style="width: 200px" class="filter-item" + clearable collapse-tags @change="changeCountry" >