+
+ {{--操作按钮--}}
+
+ {{ __('common.select_all') }}
+ {{ __('admin/admin_roles.select_all') }}
+
+ {{--搜索输入框--}}
{{--国家列表--}}
@@ -226,7 +239,28 @@
_this.$message.success("{{ __('common.edit_success') }}");
_this.$emit('change-info',countryIds);
- }
+ },
+ // 全选 - 点击全选
+ allSelected(){
+ let _this = this;
+ let countriesList = Object.assign({}, _this.countries_list);
+ let countryIds = {};
+ // 循环全选
+ Object.values(countriesList).forEach(item => {
+ countryIds[item.id] = item;
+ });
+
+ _this.$message.success("{{ __('common.edit_success') }}");
+ _this.$emit('change-info',countryIds);
+ },
+ // 全选 - 取消选中
+ allSelectedCancel(){
+ let _this = this;
+ let countryIds = {};
+
+ _this.$message.success("{{ __('common.edit_success') }}");
+ _this.$emit('change-info',countryIds);
+ },
}