diff --git a/src/api/ebiz/common/common.js b/src/api/ebiz/common/common.js index 33713e7e0..408a55fb2 100644 --- a/src/api/ebiz/common/common.js +++ b/src/api/ebiz/common/common.js @@ -90,3 +90,12 @@ export function getCheckModelAgentInfo(data) { data }) } + +// 校验当前用户权限 +export function funcPermCheck(data) { + return request({ + url: getUrl('/agent/funcPerm/check', 1), + method: 'post', + data + }) +} \ No newline at end of file diff --git a/src/router/ebiz/performance.js b/src/router/ebiz/performance.js index cfe9d89ff..2c357db10 100644 --- a/src/router/ebiz/performance.js +++ b/src/router/ebiz/performance.js @@ -9,7 +9,7 @@ export default [ name: 'Performance', component: performance, meta: { - title: '个险业绩查询', + title: '个人业绩查询', index: 1 } }, diff --git a/src/views/ebiz/performance/Performance.vue b/src/views/ebiz/performance/Performance.vue index 2d254f918..a4ad1024c 100644 --- a/src/views/ebiz/performance/Performance.vue +++ b/src/views/ebiz/performance/Performance.vue @@ -449,6 +449,7 @@ export default { // this.params.manageLv = '02' this.orgs[1].code = '' this.orgs[1].inCode = '' + this.orgLev = 0 } this.orgs[2].code = '' this.orgs[2].inCode = '' @@ -484,11 +485,22 @@ export default { // this.params.manageLv = '03' this.orgs[2].code = '' this.orgs[2].inCode = '' + this.orgLev = 1 + //区经理,机构名称选择任意部和组,先部选全部,组再选择全部,页面展示为全部佣金/全部合格人力 + if (this.orgs[1].name == '全部') { + this.orgLev = 0 + } else if (this.orgs[2].name == '全部') { + this.orgLev = 1 + } } + this.orgs[3].name = '全部' + this.orgs[3].code = '' + this.orgs[3].inCode = '' if (status != 'false') { this.getPerformanceDetailC() } if (this.manageLv == '07' || this.manageLv == '08') { + this.OrgLv5s.splice(0) if (data != '全部') { // 查询五级机构--个人 const res = await getMisBranchComList({ @@ -497,7 +509,6 @@ export default { inCode: this.orgs[2].inCode, manageLv: '08' }) - this.OrgLv5s.splice(0) this.OrgLv5s.push(...res.content) } } @@ -519,6 +530,12 @@ export default { // this.params.manageLv = '03' this.orgs[3].code = '' this.orgs[3].inCode = '' + //部经理,机构名称选择任意组和个人,先组选全部,个人再选择全部,页面展示为全部佣金/全部合格人力 + if (this.orgs[2].name == '全部') { + this.orgLev = 1 + } else if (this.orgs[3].name == '全部') { + this.orgLev = 2 + } } this.getPerformanceDetailC() }, diff --git a/src/views/ebiz/product/ProductDetail.vue b/src/views/ebiz/product/ProductDetail.vue index 717a7ce42..64dce1a90 100644 --- a/src/views/ebiz/product/ProductDetail.vue +++ b/src/views/ebiz/product/ProductDetail.vue @@ -31,6 +31,7 @@