Commit 931b4bb5 by 匡雅琴

第一轮bug修复

1 parent 84c2988c
......@@ -49,7 +49,7 @@ export default {
return {
loading: false,
visible: false,
dialogTitle: '选择商户账户',
dialogTitle: '选择企业微信',
listHeight: 220,
departmentList: [],
parentMerchantList: [],
......
......@@ -8,7 +8,7 @@
<template>
<div>
<el-popover :popper-class="'search-popper'" placement="bottom-start" width="280" trigger="manual" @blur="handleBlur" v-model="visible">
<el-popover :popper-class="'search-popper'" placement="bottom-start" width="280" trigger="manual" v-model="visible">
<ul class="el-scrollbar__view el-cascader__suggestion-list" v-infinite-scroll="load" style="overflow: auto">
<!-- <li class="el-cascader__suggestion-item" :class="isCheck ? 'is-checked' : ''">dafsd</li> -->
<template v-if="searchList.length">
......@@ -22,7 +22,7 @@
<li>无数据</li>
</template>
</ul>
<el-input slot="reference" debounce style="width: 320px" v-model="searchKey.departmentName" :size="size" @input="handleInput" @focus="handleFocus" placeholder="请输入内容">
<el-input slot="reference" debounce style="width: 320px" v-model="searchKey.departmentName" :size="size" @input="handleInput" @blur="handleBlur" @focus="getSearchList" placeholder="请输入内容">
<!-- <i slot="suffix" class="el-input__icon el-icon-arrow-down" :class="isOpen ? 'is-focus' : ''"></i> -->
<template slot="append">
<div class="input_append" @click.stop="arrowClick">
......@@ -84,8 +84,7 @@ export default {
}, 300),
// 根据输入内容搜索企微门店数据
getSearchList(val) {
this.loading = true
console.log(this.searchValue)
this.visible = true
var params = JSON.parse(JSON.stringify(this.pageParams))
params.departmentName = val
console.log(params)
......@@ -107,7 +106,6 @@ export default {
} else {
this.searchList = []
}
this.visible = true
},
selectItem(val) {
console.log(val)
......@@ -127,13 +125,11 @@ export default {
this.$emit('getCurDepartment', val.first)
},
handleBlur() {
this.searchKey.departmentName = ''
this.visible = false
// this.searchKey = {}
this.searchList = []
},
handleFocus() {
this.getSearchList(this.searchKey.departmentName)
if (this.searchList.length) this.visible = true
console.log(this.visible, this.searchList)
},
load() {
// this.searchList.push(`Aaaaa${this.count++}`)
......
......@@ -179,7 +179,7 @@ export default {
getCurDepartment(val) {
console.log(val, '---')
this.tempDepart = {
departmentId: val.departmentId,
departmentId: val.id,
departmentName: val.departmentName
}
// let ids = val[val.length - 1]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!