You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
643 B
21 lines
643 B
import { post } from "./api.js"
|
|
import CustomGroup from './csGroup.js'
|
|
export default {
|
|
allCustom : new CustomGroup('customer/getallcustomer'),
|
|
dealCustom : new CustomGroup('customer/getdealcustomer'),
|
|
followCustom : new CustomGroup('customer/getfollowcustomer'),
|
|
waitCustom : new CustomGroup('customer/getwaitcustomer'),
|
|
/**
|
|
* @param {Object} index 根据传递进来的索引,返回不同的CustomGroup
|
|
*/
|
|
getTargetGroupByIndex : function(index){
|
|
if(index == 0){
|
|
return this.allCustom;
|
|
}else if(index == 1){
|
|
return this.dealCustom;
|
|
}else if(index == 2){
|
|
return this.followCustom;
|
|
}
|
|
return this.waitCustom;
|
|
}
|
|
}
|