|
@@ -2,7 +2,7 @@ |
|
@@ -2,7 +2,7 @@ |
2
|
<div class="filter-box">
|
2
|
<div class="filter-box">
|
3
|
<div class="filter" :class="{ 'filter-open': isVisible}">
|
3
|
<div class="filter" :class="{ 'filter-open': isVisible}">
|
4
|
<div class="filter-actions">
|
4
|
<div class="filter-actions">
|
5
|
- <a href="javascript:;" class="filter-action" @click="clearVals">清空</a>
|
5
|
+ <button class="button-ghost filter-action" @click="clearVals">清空</button>
|
6
|
<button class="button button-small filter-action" @click="okAction">确定</button>
|
6
|
<button class="button button-small filter-action" @click="okAction">确定</button>
|
7
|
</div>
|
7
|
</div>
|
8
|
<div class="filter-params">
|
8
|
<div class="filter-params">
|
|
@@ -62,7 +62,7 @@ |
|
@@ -62,7 +62,7 @@ |
62
|
},
|
62
|
},
|
63
|
|
63
|
|
64
|
okAction: function() {
|
64
|
okAction: function() {
|
65
|
- this.$set('selected', Object.assign({}, this.selected,this.params));
|
65
|
+ this.$set('selected', Object.assign({}, this.selected, this.params));
|
66
|
bus.$emit('filter.change', {
|
66
|
bus.$emit('filter.change', {
|
67
|
val: this.selected,
|
67
|
val: this.selected,
|
68
|
ref: this._uid
|
68
|
ref: this._uid
|
|
@@ -82,11 +82,11 @@ |
|
@@ -82,11 +82,11 @@ |
82
|
this.$set(`params.${this.subType}`, item);
|
82
|
this.$set(`params.${this.subType}`, item);
|
83
|
},
|
83
|
},
|
84
|
|
84
|
|
85
|
- showLabel: function(key){
|
85
|
+ showLabel: function(key) {
|
86
|
const newSelected = this.params[key];
|
86
|
const newSelected = this.params[key];
|
87
|
const oldSelected = this.selected[key];
|
87
|
const oldSelected = this.selected[key];
|
88
|
|
88
|
|
89
|
- if(newSelected) {
|
89
|
+ if (newSelected) {
|
90
|
return newSelected.name || '';
|
90
|
return newSelected.name || '';
|
91
|
} else {
|
91
|
} else {
|
92
|
return oldSelected && oldSelected.name || '';
|
92
|
return oldSelected && oldSelected.name || '';
|