search.vue
2.51 KB
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
<!--
功能:高级搜索
作者:calliope
-->
<template>
<dialogBox :isButton="false" :isFullscreen="false" width="50%" @closeDialog="closeDialog" v-model="myValue"
title="高级搜索">
<el-form :model="ruleForm" ref="ruleForm" label-width="100px">
<el-row>
<el-col :span="8">
<el-form-item label="业务来源" prop="ywlymc">
<el-input v-model="ruleForm.ywlymc"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="申请业务名称" prop="sqywmc">
<el-input v-model="ruleForm.sqywmc"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="权利人" prop="qlrmc">
<el-input v-model="ruleForm.qlrmc"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="义务人" prop="ywrmc">
<el-input v-model="ruleForm.ywrmc"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="受理时间" prop="slsj">
<el-date-picker v-model="ruleForm.slsj" class="width100" type="date" placeholder="请选择日期" clearable>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row class="search-btn">
<el-button type="text" @click.native="closeDialog">收起搜索</el-button>
<el-button type="primary" icon="el-icon-search" @click="submitForm('ruleForm')">查询</el-button>
<el-button icon="el-icon-refresh-left" @click="resetForm('ruleForm')">重置</el-button>
</el-row>
</el-form>
</dialogBox>
</template>
<script>
export default {
props: {
value: { type: Boolean, default: false },
},
data () {
return {
myValue: this.value,
ruleForm: {
ywlymc: '',
sqywmc: '',
qlrmc: '',
ywrmc: '',
slsj: ''
}
}
},
watch: {
value (val) {
this.myValue = val
}
},
methods: {
closeDialog () {
this.$emit('input', false)
},
resetForm () {
this.$refs['ruleForm'].resetFields()
},
submitForm () {
this.$emit('getSearch', this.ruleForm)
this.$refs['ruleForm'].resetFields()
this.$emit('input', false)
}
}
}
</script>
<style scoped lang='scss'>
@import '~@/styles/public.scss';
.search-btn {
padding: 0 20px 20px 20px;
text-align: right;
}
/deep/.el-icon-date {
display: none;
}
</style>