Commit a320b325 by 前端

Merge branch 'littlexu_dev_v3.5.0' into 'v3.5.0'

修改选择客户组件参数

See merge request !58
2 parents ef3cf413 667ddcea
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="member-content"> <div class="member-content">
<el-form :inline="true" class="member-form" :model="searchForm" @submit.native.prevent> <el-form :inline="true" class="member-form" :model="searchForm" @submit.native.prevent>
<el-form-item label="客户昵称" style="margin-bottom: 0" size="small"> <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> placeholder="输入关键字搜索"></el-input>
</el-form-item> </el-form-item>
<el-form-item label style="margin-bottom: 0;margin-left:10px" size="small"> <el-form-item label style="margin-bottom: 0;margin-left:10px" size="small">
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
url: 0, url: 0,
initId:'', initId:'',
crowdVisible: false, crowdVisible: false,
searchForm: {keyword: ''}, searchForm: {userName: ''},
innerTags: [], innerTags: [],
inner: [], inner: [],
tableCrowdData: [ tableCrowdData: [
...@@ -106,12 +106,11 @@ export default { ...@@ -106,12 +106,11 @@ export default {
this.$refs.crowdTable.clearMutiSelect() this.$refs.crowdTable.clearMutiSelect()
}, },
init(val,userId) { init(val,userId) {
console.log(userId)
this.initId = userId this.initId = userId
this.inner = this.$common.utils.deepClone(val) this.inner = this.$common.utils.deepClone(val)
this.innerTags = this.$common.utils.deepClone(val) this.innerTags = this.$common.utils.deepClone(val)
this.crowdVisible = true this.crowdVisible = true
this.searchForm.keyword = '' this.searchForm.userName = ''
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.crowdTable.$refs.crowdlistMutiTable.clearSelection() this.$refs.crowdTable.$refs.crowdlistMutiTable.clearSelection()
this.$refs.crowdTable.page.pageNum = 1 this.$refs.crowdTable.page.pageNum = 1
...@@ -119,12 +118,12 @@ export default { ...@@ -119,12 +118,12 @@ export default {
}) })
}, },
getCrowdList(page = {pageNum: 1, pageSize: 10}) { getCrowdList(page = {pageNum: 1, pageSize: 10}) {
console.log(this.initId)
this.$refs.crowdTable.page = page this.$refs.crowdTable.page = page
var params = { var params = {
pageSize: page.pageSize, pageSize: page.pageSize,
pageNum: page.pageNum, pageNum: page.pageNum,
userId:this.initId userId:this.initId,
userName:this.searchForm.userName
} }
this.$apis.collocation.getStaffFriends(params).then(res => { this.$apis.collocation.getStaffFriends(params).then(res => {
console.log(res) console.log(res)
...@@ -227,7 +226,7 @@ export default { ...@@ -227,7 +226,7 @@ export default {
// console.log(this.innerTags) // console.log(this.innerTags)
this.$emit('customerData', this.innerTags) this.$emit('customerData', this.innerTags)
this.crowdVisible = false 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!