|
|
|
@ -123,27 +123,29 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '等级',
|
|
|
|
|
key: 'level',
|
|
|
|
|
width:80
|
|
|
|
|
width:80,
|
|
|
|
|
render: (h, params) => {
|
|
|
|
|
return h('span', params.row.organizational.level);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '客户经理数',
|
|
|
|
|
key: 'managerNumb',
|
|
|
|
|
key: 'customerManagerCount',
|
|
|
|
|
width:120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '推广员数',
|
|
|
|
|
key: 'extensionNumb',
|
|
|
|
|
key: 'extensionCount',
|
|
|
|
|
width:120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '客户数',
|
|
|
|
|
key: 'clientNumb',
|
|
|
|
|
key: 'customerCount',
|
|
|
|
|
width:80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '业绩',
|
|
|
|
|
key: 'performance',
|
|
|
|
|
key: 'achievement',
|
|
|
|
|
width:80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -339,9 +341,9 @@
|
|
|
|
|
};
|
|
|
|
|
bulletinService.promoterList(request, function (data) {
|
|
|
|
|
that.loading = false;
|
|
|
|
|
if (data.code == "0000") {
|
|
|
|
|
if (data.data.code == "0000") {
|
|
|
|
|
that.data1 = [];
|
|
|
|
|
let datas = data.results;
|
|
|
|
|
let datas = data.data.results;
|
|
|
|
|
//总页数
|
|
|
|
|
if (datas.total == null) {
|
|
|
|
|
that.total = 0;
|
|
|
|
@ -367,9 +369,23 @@
|
|
|
|
|
cancel(){
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
},
|
|
|
|
|
// 拒绝审核
|
|
|
|
|
confirm(index) {
|
|
|
|
|
console.log(123);
|
|
|
|
|
// 升级
|
|
|
|
|
confirm(rData) {
|
|
|
|
|
let request={
|
|
|
|
|
promoterId:rData.id
|
|
|
|
|
}
|
|
|
|
|
let that = this;
|
|
|
|
|
bulletinService.promoterUpgrade(request, function (data) {
|
|
|
|
|
that.loading = false;
|
|
|
|
|
if (data.data.code == "0000") {
|
|
|
|
|
that.$Message.info("升级成功");
|
|
|
|
|
that.getPromoterList();
|
|
|
|
|
}else{
|
|
|
|
|
that.$Message.error("系统异常");
|
|
|
|
|
}
|
|
|
|
|
}, function (error) {
|
|
|
|
|
that.loading = false;
|
|
|
|
|
});
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
},
|
|
|
|
|
show(index) {
|
|
|
|
@ -377,16 +393,28 @@
|
|
|
|
|
this.rowData = index;
|
|
|
|
|
},
|
|
|
|
|
doShow (currData,ishow) {
|
|
|
|
|
this.showrecruit = ishow;
|
|
|
|
|
this.recruitSchedule = currData;
|
|
|
|
|
debugger
|
|
|
|
|
this.showrecruit = false;
|
|
|
|
|
let that = this;
|
|
|
|
|
let param = {
|
|
|
|
|
promoterId:currData.id
|
|
|
|
|
}
|
|
|
|
|
bulletinService.promoterDetail(param, function (data) {
|
|
|
|
|
that.loading = false;
|
|
|
|
|
if (data.data.code == "0000") {
|
|
|
|
|
// TODO 接口暂无数据,先传当前点击行数据,待后续完善.
|
|
|
|
|
that.showrecruit = ishow;
|
|
|
|
|
that.recruitSchedule = currData;
|
|
|
|
|
console.log(data.data);
|
|
|
|
|
}else{
|
|
|
|
|
that.$Message.error("系统异常");
|
|
|
|
|
}
|
|
|
|
|
}, function (error) {
|
|
|
|
|
that.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 列表: /fission/promoter/list
|
|
|
|
|
// 查看上下级: /fission/promoter/detail
|
|
|
|
|
// 升级: /fission/promoter/upgrade
|
|
|
|
|
// 列表的数据结构和招募审核列表的数据结构一致
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|