Commit 89e48fbb authored by dcy's avatar dcy

跟单客户修改

parent 15f66bff
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="岗位"> <el-form-item label="岗位">
<el-select v-model="form.postIds" multiple placeholder="请选择"> <el-select @change="changList" v-model="form.postIds" multiple placeholder="请选择">
<el-option <el-option
v-for="item in postOptions" v-for="item in postOptions"
:key="item.id" :key="item.id"
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="跟单客服"> <el-form-item label="跟单客服">
<el-select v-model="form.customerServiceId" placeholder="请选择"> <el-select v-model="form.customerServiceId" placeholder="请选择">
<el-option v-for="dict in followUpList" :key="parseInt(dict.id)" :label="dict.nickname" :value="parseInt(dict.id)"/> <el-option v-for="dict in followUpList" :key="parseInt(dict.id)" :label="dict.nickname" :value="parseInt(dict.id)"/>
</el-select> </el-select>
...@@ -377,9 +377,7 @@ export default { ...@@ -377,9 +377,7 @@ export default {
this.getConfigKey("sys.user.init-password").then(response => { this.getConfigKey("sys.user.init-password").then(response => {
this.initPassword = response.msg; this.initPassword = response.msg;
}); });
userList('documentary customer service').then(r => {
this.followUpList = r.data;
})
}, },
methods: { methods: {
// 更多操作 // 更多操作
...@@ -653,7 +651,21 @@ export default { ...@@ -653,7 +651,21 @@ export default {
label: node.name, label: node.name,
children: node.children children: node.children
} }
} },
changList(e){
let codes = this.postOptions.filter(i => {
if( e.indexOf(i.id) > -1) return i.code
}).map(v => v.code).join(',');
if(codes){
userList(codes).then(r => {
console.log(r,'r');
this.followUpList = r.data;
})
}else {
this.followUpList = [];
}
},
} }
}; };
</script> </script>
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