index.js
988 Bytes
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
export default {
data () {
return {
isSearch: false,
searchList: [],
otherForm: {}
}
},
methods: {
moreQueryClick () {
this.isSearch = true
},
iterationData () {
let obj = {
ywlymc: '业务来源', qllxmc: '权利类型', djlxmc: '登记类型', ywh: '业务号', sqywmc: '申请业务名称',
qlrmc: '权利人', ywrmc: '义务人', slsj: '受理时间'
}
this.searchList = Object.entries({ ...this.searchForm, ...this.otherForm }).map((item) => {
const [name, value] = item
if (value) return { name: obj[name], value, zdm: name }
}).filter(Boolean)
},
getSearch (val) {
this.otherForm = val
this.iterationData()
this.queryClick()
},
hanldeCleanAll () {
this.searchForm = {}
this.queryForm = {
ywly: "",
qllx: "",
djlx: "",
ywh: ""
}
this.searchList = []
this.queryClick()
}
}
}