Commit ccc334e8 by 姜雷

Merge branch 'develop' into 'test'

修改储值区域为多选 See merge request !131
parents c8e3c00d 851a51c4
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
filterable filterable
:value="value" :value="value"
@change="changeHandle" @change="changeHandle"
@visible-change="resetFilterText"
:multiple="multiple" :multiple="multiple"
ref="select" ref="select"
> >
...@@ -14,6 +15,7 @@ ...@@ -14,6 +15,7 @@
<el-input <el-input
v-if="multiple" v-if="multiple"
class="out-input" class="out-input"
:value="filterText"
clearable clearable
@click.stop @click.stop
@input="debouncedQueryChange" @input="debouncedQueryChange"
...@@ -111,6 +113,9 @@ export default { ...@@ -111,6 +113,9 @@ export default {
handleQueryChange(val) { handleQueryChange(val) {
this.filterText = val; this.filterText = val;
}, },
resetFilterText(visible) {
if (!visible) this.filterText = '';
},
}, },
}; };
</script> </script>
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<dashboard-area-select <dashboard-area-select
:operateId="filters.operateId" :operateId="filters.operateId"
:value="filters.areaId" :value="filters.areaId"
multiple
@input="val => updateFilters({areaId: val})" @input="val => updateFilters({areaId: val})"
/> />
</search-item> </search-item>
...@@ -114,6 +115,21 @@ export default { ...@@ -114,6 +115,21 @@ export default {
flex: 1; flex: 1;
} }
} }
.el-select {
.el-select__tags {
height: 90%;
overflow: hidden;
input {
display: none;
}
}
.el-input {
overflow: hidden;
}
.el-input__inner {
height: 100% !important;
}
}
} }
</style> </style>
...@@ -4,7 +4,7 @@ import initFiltersStore from '@/store/modules/filters'; ...@@ -4,7 +4,7 @@ import initFiltersStore from '@/store/modules/filters';
const initFilters = () => ({ const initFilters = () => ({
operateId: undefined, operateId: undefined,
areaId: undefined, areaId: [],
timeType: 0, // 0 本日,1 本月, 2 本年 timeType: 0, // 0 本日,1 本月, 2 本年
}); });
const filtersStore = initFiltersStore(initFilters); const filtersStore = initFiltersStore(initFilters);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment