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

客户经理列表修改

parent bf847544
...@@ -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:{
......
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