Commit 887bb47d by 匡雅琴

预发布bug解决

1 parent b21d8eff
...@@ -79,6 +79,7 @@ export default { ...@@ -79,6 +79,7 @@ export default {
handleClose() { handleClose() {
this.visible = false this.visible = false
this.selectLevel = [] this.selectLevel = []
this.checkObj.first = ''
this.lastLevel = true this.lastLevel = true
}, },
submit() { submit() {
...@@ -92,11 +93,11 @@ export default { ...@@ -92,11 +93,11 @@ export default {
this.$emit('select', this.checkObj) this.$emit('select', this.checkObj)
this.visible = false this.visible = false
this.selectLevel = [] this.selectLevel = []
this.checkObj.first = ''
this.lastLevel = true this.lastLevel = true
}, },
// 选中时触发 // 选中时触发
selectChange(val) { selectChange(val) {
console.log(val)
this.$set(this.selectLevel, val.depth - 1, val) this.$set(this.selectLevel, val.depth - 1, val)
this.lastLevel = val.childrenNum ? true : false this.lastLevel = val.childrenNum ? true : false
}, },
...@@ -111,7 +112,6 @@ export default { ...@@ -111,7 +112,6 @@ export default {
}, },
// 点击页签,返回 // 点击页签,返回
backLevel(item) { backLevel(item) {
console.log(item)
this.checkObj.first = '' this.checkObj.first = ''
this.lastLevel = item.childrenNum ? true : false this.lastLevel = item.childrenNum ? true : false
console.log(this.lastLevel) console.log(this.lastLevel)
......
...@@ -78,6 +78,7 @@ export default { ...@@ -78,6 +78,7 @@ export default {
handleClose() { handleClose() {
this.visible = false this.visible = false
this.selectLevel = [] this.selectLevel = []
this.checkObj.first = ''
this.lastLevel = true this.lastLevel = true
}, },
submit() { submit() {
...@@ -91,6 +92,7 @@ export default { ...@@ -91,6 +92,7 @@ export default {
this.$emit('selectMerchant', this.checkObj) this.$emit('selectMerchant', this.checkObj)
this.visible = false this.visible = false
this.selectLevel = [] this.selectLevel = []
this.checkObj.first = ''
this.lastLevel = true this.lastLevel = true
}, },
// 选中时触发 // 选中时触发
......
...@@ -99,7 +99,6 @@ export default { ...@@ -99,7 +99,6 @@ export default {
}, },
// 获取搜索框输入值 // 获取搜索框输入值
handleInput: utils.debounce(function(val) { handleInput: utils.debounce(function(val) {
console.log(333)
this.searchValue = val this.searchValue = val
this.pageParams.pageNum = 1 this.pageParams.pageNum = 1
// 判断是商户账户调用还是企业微信调用 // 判断是商户账户调用还是企业微信调用
...@@ -108,7 +107,7 @@ export default { ...@@ -108,7 +107,7 @@ export default {
return return
} }
this.getSearchList(val) this.getSearchList(val)
}, 300), }, 100),
// 根据输入内容搜索企微门店数据 // 根据输入内容搜索企微门店数据
getSearchList(val) { getSearchList(val) {
// this.searchList = [] // this.searchList = []
...@@ -169,7 +168,6 @@ export default { ...@@ -169,7 +168,6 @@ export default {
this.searchKey = val this.searchKey = val
this.$emit('getCurDepartment', val) this.$emit('getCurDepartment', val)
this.visible = false this.visible = false
console.log(this.visible)
}, },
// 选择企微门店 // 选择企微门店
select(val) { select(val) {
...@@ -185,13 +183,11 @@ export default { ...@@ -185,13 +183,11 @@ export default {
}, },
// 输入框失去焦点调用 // 输入框失去焦点调用
handleBlur() { handleBlur() {
console.log(111)
this.visible = false this.visible = false
// this.searchList = [] // this.searchList = []
}, },
// 输入框获取焦点 // 输入框获取焦点
handleFocus() { handleFocus() {
console.log(222)
this.pageParams = { this.pageParams = {
pageNum: 1, pageNum: 1,
pageSize: 10 pageSize: 10
...@@ -208,10 +204,7 @@ export default { ...@@ -208,10 +204,7 @@ export default {
// 下拉框触底获取下一页数据 // 下拉框触底获取下一页数据
load() { load() {
this.pageParams.pageNum++ this.pageParams.pageNum++
console.log(this.count)
console.log(this.searchList.length)
if (this.searchList.length < this.count) { if (this.searchList.length < this.count) {
console.log(555)
if (this.name === 'merchant') { if (this.name === 'merchant') {
this.getMerchantSearchList() this.getMerchantSearchList()
return return
......
...@@ -102,7 +102,9 @@ export default { ...@@ -102,7 +102,9 @@ export default {
dataList: [], dataList: [],
customWidth: 113, customWidth: 113,
shopName: '', shopName: '',
selectedDepartment: '' selectedDepartment: '',
tempDepart: {},
curTempMerchant: {}
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!