城市下拉框过滤及精确筛选

This commit is contained in:
714943302@qq.com
2018-11-16 14:18:17 +08:00
parent 6f75265ca8
commit 9be90eabe2
5 changed files with 53 additions and 48 deletions
@@ -37,11 +37,11 @@
</div>
<div class="input-container mr-4">
<label for="">国家:&nbsp;&nbsp;</label>
<select class="form-control">
<select class="form-control" [(ngModel)]="filterItems.ZY" (ngModelChange)="inputFliter()">
<option value=""></option>
<option value="0">中国</option>
<option value="1">美国</option>
<option value="2">英国</option>
<option value="ZG">中国</option>
<option value="MG">美国</option>
<option value="YG">英国</option>
</select>
</div>
<div class="third-condition row">
@@ -45,10 +45,15 @@ FLT_POS = 1; //过滤还是定位
SEL_COL = ''; //选择列名
public filterItems = {
ZY: '', //所在国家
}
public formatter = {
'ZY': {
'ZG': '中国',
'MG': '美国',
"YG": '英国'
},
'SODT': dateFormatter,
'ESTT': dateFormatter,
'ACTT': dateFormatter