Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -29,7 +29,7 @@ export class DictSelectComponent implements OnInit, ControlValueAccessor {
|
||||
@Input() containsAllLabel = true; // 是否包含全部这一选项
|
||||
@Input() mode: 'multiple' | 'tags' | 'default' = 'default';
|
||||
|
||||
constructor(public service: DictSelectService, public cdr: ChangeDetectorRef) {}
|
||||
constructor(public service: DictSelectService, public cdr: ChangeDetectorRef) { }
|
||||
|
||||
writeValue(geo: string): void {
|
||||
if (geo == null) {
|
||||
@ -56,7 +56,6 @@ export class DictSelectComponent implements OnInit, ControlValueAccessor {
|
||||
if (this.dictList.length > 0 && this.containsAllLabel !== false) {
|
||||
const obj = { label: '全部', value: '' };
|
||||
this.dictList.unshift(obj);
|
||||
console.log(this.dictList);
|
||||
}
|
||||
this.cdr.markForCheck();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user