Commit 65d03ca2 authored by xiejb's avatar xiejb

高级搜索 重置按钮事件

parent 9172cd79
...@@ -293,7 +293,7 @@ export default { ...@@ -293,7 +293,7 @@ export default {
this.onQuickDateChoose(0, '') this.onQuickDateChoose(0, '')
// console.log(this.moreSearchInfo) // console.log(this.moreSearchInfo)
// this.moreSearchShow = false // this.moreSearchShow = false
// this.$emit('onsearch', this.moreSearchInfo) this.$emit('onclean', this.moreSearchInfo)
}, },
showPost(type) { showPost(type) {
......
...@@ -51,7 +51,7 @@ export default { ...@@ -51,7 +51,7 @@ export default {
return { return {
tabsTitle: [], tabsTitle: [],
moreSearchShow: false, moreSearchShow: false,
activeTab: 'home', activeTab: 'all',
moreSearchInfo: { moreSearchInfo: {
supplier: {}, // 供应商 supplier: {}, // 供应商
consignor: [], // 货主 consignor: [], // 货主
...@@ -151,24 +151,24 @@ export default { ...@@ -151,24 +151,24 @@ export default {
'start': '1' 'start': '1'
} }
companyList.push(removeItem) companyList.push(removeItem)
// let data = {
// list: companyList
// }
let data = { let data = {
'list': [ list: companyList
{
'length': '1',
'attr': {
'empid': '199476,1',
'userid': '23528',
'sysname': 'ERP',
'companyname': '上药控股有限公司'
},
'dbName': '',
'start': '1'
}
]
} }
// let data = {
// 'list': [
// {
// 'length': '1',
// 'attr': {
// 'empid': '199476,1',
// 'userid': '23528',
// 'sysname': 'ERP',
// 'companyname': '上药控股有限公司'
// },
// 'dbName': '',
// 'start': '1'
// }
// ]
// }
getEmployeeOrgQueryList(data).then(rt => { getEmployeeOrgQueryList(data).then(rt => {
if (rt.code === 200) { if (rt.code === 200) {
this.postDataList = rt.data this.postDataList = rt.data
...@@ -270,6 +270,8 @@ export default { ...@@ -270,6 +270,8 @@ export default {
console.log(this.moreSearchInfo) console.log(this.moreSearchInfo)
this.moreSearchInfo = JSON.parse(JSON.stringify(data)) this.moreSearchInfo = JSON.parse(JSON.stringify(data))
this.$EventBus.$emit('myOrderMoreSearch', this.moreSearchInfo) this.$EventBus.$emit('myOrderMoreSearch', this.moreSearchInfo)
this.tabsTitle = []
this.activeTab = 'all'
}, },
/// 处理tabsTitle /// 处理tabsTitle
tabsTitleData() { tabsTitleData() {
......
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