Commit b03e2301 by 匡雅琴

搜索下拉修改

1 parent 1a942727
<template> <template>
<div class="scrm-main"> <div class="scrm-main">
<div class="form-header" v-if="$globalState.session.accountLevel == 1 && $globalState.session.merchantModel == 1"> <div class="form-header" v-if="$globalState.session.accountLevel == 1 && $globalState.session.merchantModel == 1">
<GLButton @click="handleContact" icon="el-icon-link" fn="门店账户关联企微" type="primary" size="small" mode="el-button">门店账户关联企微</GLButton> <!-- <GLButton @click="handleContact" icon="el-icon-link" fn="门店账户关联企微" type="primary" size="small" mode="el-button">门店账户关联企微</GLButton> -->
<!-- <el-button type="primary" @click="handleContact" size="small" icon="el-icon-link">门店账户关联企微</el-button> --> <el-button type="primary" @click="handleContact" size="small" icon="el-icon-link">门店账户关联企微</el-button>
</div> </div>
<div class="follow-form"> <div class="follow-form">
<GLCombiForm :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
......
...@@ -93,6 +93,7 @@ export default { ...@@ -93,6 +93,7 @@ export default {
this.$apis.baseInfo.findDepartmentList(params).then(res => { this.$apis.baseInfo.findDepartmentList(params).then(res => {
console.log(res) console.log(res)
if (res.data.length) { if (res.data.length) {
this.count = res.count
this.searchList = this.searchList.concat(res.data) this.searchList = this.searchList.concat(res.data)
} }
this.pageParams.pageNum++ this.pageParams.pageNum++
...@@ -118,13 +119,15 @@ export default { ...@@ -118,13 +119,15 @@ export default {
this.$emit('getCurDepartment', val.first) this.$emit('getCurDepartment', val.first)
}, },
handleBlur() { handleBlur() {
// this.visible = false this.visible = false
// this.searchKey = '' this.searchKey = ''
// this.searchList = [] this.searchList = []
}, },
load() { load() {
// this.searchList.push(`Aaaaa${this.count++}`) // this.searchList.push(`Aaaaa${this.count++}`)
this.getSearchList(this.searchValue) if (this.searchList.length < this.count) {
this.getSearchList(this.searchValue)
}
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!