Commit d88c3781 authored by miaojiale's avatar miaojiale

修改

parent ebd48e90
...@@ -10,16 +10,8 @@ ...@@ -10,16 +10,8 @@
:style="formStyle" :style="formStyle"
@submit.native.prevent="handleSearch()" @submit.native.prevent="handleSearch()"
> >
<el-col <div v-for="(item, index) in forms" :key="index">
v-for="(item, index) in forms" <template v-if="!item.hidden">
v-if="!item.hidden"
:key="index"
:xs="item.xs ? item.xs : 24"
:sm="item.sm ? item.sm : 12"
:md="item.md ? item.md : 8"
:lg="item.lg ? item.lg : 8"
:xl="item.xl ? item.xl : 6"
>
<el-form-item <el-form-item
v-if="item.type != 'btn'" v-if="item.type != 'btn'"
:label="item.label ? item.label + (item.hiddenColon ? '' : ':') : ''" :label="item.label ? item.label + (item.hiddenColon ? '' : ':') : ''"
...@@ -105,6 +97,7 @@ ...@@ -105,6 +97,7 @@
:picker-options="item.options" :picker-options="item.options"
:format="item.format" :format="item.format"
:value-format="item.valueFormat" :value-format="item.valueFormat"
@change="handleSearch"
></el-date-picker> ></el-date-picker>
<!-- 日期 --> <!-- 日期 -->
...@@ -116,6 +109,7 @@ ...@@ -116,6 +109,7 @@
:picker-options="item.options" :picker-options="item.options"
:format="item.format" :format="item.format"
:value-format="item.valueFormat" :value-format="item.valueFormat"
@change="handleSearch"
></el-date-picker> ></el-date-picker>
<!-- 下拉框 --> <!-- 下拉框 -->
...@@ -126,7 +120,7 @@ ...@@ -126,7 +120,7 @@
filterable filterable
:disabled="item.disabled" :disabled="item.disabled"
:placeholder="item.placeholder ? item.placeholder : '请选择'" :placeholder="item.placeholder ? item.placeholder : '请选择'"
@change="item.func ? item.func($event) : {}" @change="item.func ? item.func($event) : handleSearch()"
> >
<el-option <el-option
v-for="(opt, optIndex) in item.opts" v-for="(opt, optIndex) in item.opts"
...@@ -211,8 +205,9 @@ ...@@ -211,8 +205,9 @@
> >
</div> </div>
</template> </template>
</div></template
>
</div> </div>
</el-col>
<el-col v-if="lists" :xs="24" :sm="24" :lg="24" style="padding-left: 120px"> <el-col v-if="lists" :xs="24" :sm="24" :lg="24" style="padding-left: 120px">
<el-button <el-button
...@@ -342,6 +337,8 @@ export default { ...@@ -342,6 +337,8 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.el-form-self { .el-form-self {
display: flex;
flex-wrap: wrap;
width: 100%; width: 100%;
margin: 20px 0; margin: 20px 0;
overflow: hidden; overflow: hidden;
......
...@@ -328,9 +328,10 @@ export default { ...@@ -328,9 +328,10 @@ export default {
}, },
onSearch(form) { onSearch(form) {
console.log(form) console.log(form)
this.pageIndex = 1
sessionStorage.setItem("followQuery-form", JSON.stringify(form)) sessionStorage.setItem("followQuery-form", JSON.stringify(form))
this.formEdit = form this.formEdit = form
// this.handleSearch() this.handleSearch()
}, },
onClickSearch() { onClickSearch() {
this.pageIndex = 1 this.pageIndex = 1
......
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