Commit dbe2db2f authored by 邓春圆's avatar 邓春圆

客户经理列表修改

parent 35174296
...@@ -17,11 +17,15 @@ ...@@ -17,11 +17,15 @@
</template> </template>
<script> <script>
import {getCustomerContactsSelect, getCustomerContacts} from '@/api/ecw/customerContacts' import {getCustomerContactsSelect, getCustomerContacts} from '@/api/ecw/customerContacts'
import {listSimpleUsers} from '@/api/system/user' import {listServiceUser, listSimpleUsers} from '@/api/system/user'
export default { export default {
props:{ props:{
value: [String, Number], value: [String, Number],
clearable: Boolean clearable: Boolean,
manage:{
type:Boolean,
default:false
}
}, },
data(){ data(){
return { return {
...@@ -44,9 +48,18 @@ export default { ...@@ -44,9 +48,18 @@ export default {
} }
}, },
created(){ created(){
if(this.manage){
// 客户经理
listServiceUser().then(r=>{
this.list = r.data;
})
}else {
// 全部客户
listSimpleUsers().then(res => { listSimpleUsers().then(res => {
this.list = res.data this.list = res.data
}) })
}
// this.init() // this.init()
}, },
methods:{ methods:{
...@@ -81,4 +94,4 @@ export default { ...@@ -81,4 +94,4 @@ export default {
} */ } */
} }
} }
</script> </script>
\ No newline at end of file
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