diff --git a/src/api/room-anchor.js b/src/api/room-anchor.js index 412efa3..ce434ad 100644 --- a/src/api/room-anchor.js +++ b/src/api/room-anchor.js @@ -1,116 +1,125 @@ -import request from '@/utils/request' +import request from "@/utils/request"; // BD列表 export function pageRoomBDInfo(params) { return request({ - url: '/team/bd/page', - method: 'get', + url: "/team/bd/page", + method: "get", params - }) + }); } // BD代理列表 export function pageRoomTeamBDInfo(params) { return request({ - url: '/team/bd/member/page', - method: 'get', + url: "/team/bd/member/page", + method: "get", params - }) + }); } // 删除BD export function deleteBD(id) { return request({ - url: '/team/bd/del', - method: 'get', + url: "/team/bd/del", + method: "get", params: { id } - }) + }); } // 删除BD中的代理成员 export function deleteBDMember(id) { return request({ - url: '/team/bd/member/del', - method: 'get', + url: "/team/bd/member/del", + method: "get", params: { id } - }) + }); } // 添加BD export function addBD(data) { return request({ - url: '/team/bd/add', - method: 'post', + url: "/team/bd/add", + method: "post", data - }) + }); } // 修改BD export function updateBD(data) { return request({ - url: '/team/bd/update', - method: 'post', + url: "/team/bd/update", + method: "post", data - }) + }); } // 根据bdID获得bd信息 export function getBdById(id) { return request({ - url: '/bd/' + id, - method: 'get' - }) + url: "/bd/" + id, + method: "get" + }); +} + +// 换绑BD Leader +export function bingdBDLeader(data) { + return request({ + url: "/team/bd/change-bd-leader", + method: "post", + data + }); } // BD Lead 列表 export function pageBdLead(params) { return request({ - url: '/team/bd/leader/page', - method: 'get', + url: "/team/bd/leader/page", + method: "get", params - }) + }); } // 删除BD Lead export function deleteBdLead(id) { return request({ - url: '/team/bd/leader/del', - method: 'get', + url: "/team/bd/leader/del", + method: "get", params: { id } - }) + }); } // 添加BD Lead export function addBdLead(data) { return request({ - url: '/team/bd/leader/add', - method: 'post', + url: "/team/bd/leader/add", + method: "post", data - }) + }); } // 编辑BD Lead export function updateBDLead(data) { return request({ - url: '/team/bd/leader/update', - method: 'post', + url: "/team/bd/leader/update", + method: "post", data - }) + }); } // BD Lead添加子级BD export function leadBindBd(data) { return request({ - url: '/team/bd/leader/bind/bd', - method: 'post', + url: "/team/bd/leader/bind/bd", + method: "post", data - }) + }); } // BD工作统计 export function pageWorkStatistics(params) { return request({ - url: '/team/bd/work/statistics', - method: 'get', + url: "/team/bd/work/statistics", + method: "get", params - }) + }); } diff --git a/src/views/team/business-development/bind-bd-leader.vue b/src/views/team/business-development/bind-bd-leader.vue new file mode 100644 index 0000000..77599b9 --- /dev/null +++ b/src/views/team/business-development/bind-bd-leader.vue @@ -0,0 +1,122 @@ + + diff --git a/src/views/team/business-development/index.vue b/src/views/team/business-development/index.vue index 58832bd..a278786 100644 --- a/src/views/team/business-development/index.vue +++ b/src/views/team/business-development/index.vue @@ -1,8 +1,10 @@