Commit bb1cd067 authored by dcy's avatar dcy

佣金修改搜索

parent 7a25916b
...@@ -7,11 +7,8 @@ ...@@ -7,11 +7,8 @@
<el-select <el-select
v-model="customerForm.name" v-model="customerForm.name"
filterable filterable
remote
reserve-keyword
placeholder="请输入关键词" placeholder="请输入关键词"
@change="changefn" @change="changefn">
:remote-method="remoteMethod">
<el-option <el-option
v-for="item in customeList" v-for="item in customeList"
:key="item.id" :key="item.id"
...@@ -341,6 +338,7 @@ export default { ...@@ -341,6 +338,7 @@ export default {
}, },
}, },
created() { created() {
this.getCustomeList();
if(this.$route.params.dictId != 0){ if(this.$route.params.dictId != 0){
commissionGetByCustomerId(this.$route.params.dictId).then(r => { commissionGetByCustomerId(this.$route.params.dictId).then(r => {
if(r.code === 0){ if(r.code === 0){
...@@ -402,8 +400,6 @@ export default { ...@@ -402,8 +400,6 @@ export default {
}, },
remoteMethod(val) { remoteMethod(val) {
this.customerForm.name = val; this.customerForm.name = val;
console.log(val,'customerId')
this.getCustomeList();
}, },
changefn(val){ changefn(val){
console.log(val,'val') console.log(val,'val')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment