diff --git a/src/pages/recruit/CheckList.vue b/src/pages/recruit/CheckList.vue index 892fe2f..7e0e7c1 100644 --- a/src/pages/recruit/CheckList.vue +++ b/src/pages/recruit/CheckList.vue @@ -689,7 +689,8 @@ export default { function(data) { that.loading = false; if (data.data.code == "0000") { - that.$Message.info("审核通过"); + that.$Message.info(data.data.results); + _this.$router.push("/recruit/check/list"); } else { that.$Message.error("系统异常"); } diff --git a/src/pages/recruit/PromoterList.vue b/src/pages/recruit/PromoterList.vue index c997504..d49f9ed 100644 --- a/src/pages/recruit/PromoterList.vue +++ b/src/pages/recruit/PromoterList.vue @@ -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 -// 列表的数据结构和招募审核列表的数据结构一致