Commit d88c3781 authored by miaojiale's avatar miaojiale

修改

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