优化改进配置的 默认项
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
<div class="input-group item">
|
||||
<span class="input-group-addon" style="width: 130px;">{{filter.label}}</span>
|
||||
<select class="form-control" v-model="filter['type']" style="width: 100px">
|
||||
<option v-for="(t, index) in filter.filterType" :value="t.name" v-text="t.remark"></option>
|
||||
<option v-for="(t, i) in filter.filterType" :value="t.name" v-text="t.remark"></option>
|
||||
</select>
|
||||
<span class="input-group-addon fix-border fix-padding"></span>
|
||||
<input v-if="!filter.inType || filter.inType == 'INPUT'" type="text" class="form-control" v-model="filter['value']">
|
||||
@@ -300,7 +300,14 @@
|
||||
});
|
||||
},
|
||||
loadCfg() {
|
||||
getCfg({name: this.service}).then(res => this.cfg = res);
|
||||
getCfg({name: this.service}).then(res => {
|
||||
res['type'] = res.filters[0]['name']
|
||||
|
||||
for (i in res["filters"]) {
|
||||
res["filters"][i]['type'] = res["filters"][i]['filterType'][0]['name']
|
||||
}
|
||||
this.cfg = res
|
||||
});
|
||||
},
|
||||
dealFieldFmt(bean, colFmt) { //处理字典数据 及 自定义函数处理数据
|
||||
|
||||
|
||||
Reference in New Issue
Block a user