Commit df6c8c25 by 前端

修改选择客户组件参数

1 parent 1dd47b7d
......@@ -6,7 +6,7 @@
<div class="member-content">
<el-form :inline="true" class="member-form" :model="searchForm" @submit.native.prevent>
<el-form-item label="客户昵称" style="margin-bottom: 0" size="small">
<el-input :size="size" v-model.trim="searchForm.keyword" @keyup.enter.native="search" clearable
<el-input :size="size" v-model.trim="searchForm.userName" @keyup.enter.native="search" clearable
placeholder="输入关键字搜索"></el-input>
</el-form-item>
<el-form-item label style="margin-bottom: 0;margin-left:10px" size="small">
......@@ -65,7 +65,7 @@ export default {
url: 0,
initId:'',
crowdVisible: false,
searchForm: {keyword: ''},
searchForm: {userName: ''},
innerTags: [],
inner: [],
tableCrowdData: [
......@@ -106,12 +106,11 @@ export default {
this.$refs.crowdTable.clearMutiSelect()
},
init(val,userId) {
console.log(userId)
this.initId = userId
this.inner = this.$common.utils.deepClone(val)
this.innerTags = this.$common.utils.deepClone(val)
this.crowdVisible = true
this.searchForm.keyword = ''
this.searchForm.userName = ''
this.$nextTick(() => {
this.$refs.crowdTable.$refs.crowdlistMutiTable.clearSelection()
this.$refs.crowdTable.page.pageNum = 1
......@@ -119,12 +118,12 @@ export default {
})
},
getCrowdList(page = {pageNum: 1, pageSize: 10}) {
console.log(this.initId)
this.$refs.crowdTable.page = page
var params = {
pageSize: page.pageSize,
pageNum: page.pageNum,
userId:this.initId
userId:this.initId,
userName:this.searchForm.userName
}
this.$apis.collocation.getStaffFriends(params).then(res => {
console.log(res)
......@@ -227,7 +226,7 @@ export default {
// console.log(this.innerTags)
this.$emit('customerData', this.innerTags)
this.crowdVisible = false
this.searchForm = {keyword: {}}
this.searchForm = {userName: {}}
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!