1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
| <template>
| <div class="flex align-center justify-between">
| <div class="">
| <el-button-group>
| <el-button type="primary" size="mini" icon="el-icon-plus" @click="$emit('addmodal')">新建</el-button>
| <el-button v-if="dele" type="primary" size="mini" icon="el-icon-delete">删除</el-button>
| </el-button-group>
| <el-button-group class="margin-left">
| <el-button class="" v-if="tolead" type="primary" size="mini" icon="el-icon-upload2">导入</el-button>
| <el-button v-if="derive" type="primary" size="mini" icon="el-icon-download">导出</el-button>
| </el-button-group>
| <el-button
| class="margin-left"
| v-if="refresh"
| :loading="loading"
| size="mini"
| icon="el-icon-refresh"
| @click="$emit('refresh')"
| >刷新</el-button
| >
| </div>
| <div id="topinquer" class="flex align-center">
| <div class="flex align-center margin-right">
| <el-input size="mini" clearable v-model="iqnuer[filter]" class="input-with-select">
| <el-select @change="selchange" v-model="filter" slot="prepend">
| <el-option
| v-for="(item, index) in filterList"
| :label="item.label"
| :value="item.value"
| :key="index"
| ></el-option>
| </el-select>
| </el-input>
| </div>
| <el-button type="primary" size="mini" @click="inquer">查询</el-button>
| </div>
| </div>
| </template>
|
| <script>
| export default {
| data() {
| return {
| iqnuer: {},
| applytime: [],
| visible: false,
| filter: ''
| };
| },
| props: {
| advanced: {
| type: Boolean,
| default: false
| },
| dele: {
| type: Boolean,
| default: false
| },
| refresh: {
| type: Boolean,
| default: true
| },
| tolead: {
| type: Boolean,
| default: false
| },
| derive: {
| type: Boolean,
| default: false
| },
| loading: {
| type: Boolean,
| default: false
| },
| byfilter: {
| type: String,
| default: ''
| },
| filterList: {
| type: Array,
| default: () => []
| }
| },
| mounted() {
| this.filter = this.byfilter;
| },
| methods: {
| inquer() {
| this.$emit('inquer', this.iqnuer);
| },
| selchange() {
| this.iqnuer = {};
| }
| },
| watch: {
| byfilter: {
| handler(nvl, ovl) {
| this.filter = nvl;
| }
| }
| }
| };
| </script>
|
| <style lang="scss" scoped>
| #topinquer {
| ::v-deep .el-select {
| width: 100px;
| }
| }
| </style>
|
|