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