diff --git a/src/router/ebiz/institutionalPerform.js b/src/router/ebiz/institutionalPerform.js index 00093131d..5850b5e36 100644 --- a/src/router/ebiz/institutionalPerform.js +++ b/src/router/ebiz/institutionalPerform.js @@ -27,7 +27,7 @@ export default [ name: 'underOffice', component: UnderOffice, meta: { - title: '机构业绩', + title: '排名', index: 1 } }, diff --git a/src/views/ebiz/institutionalPerform/Organization.vue b/src/views/ebiz/institutionalPerform/Organization.vue index 7810c1354..210cdd1cc 100644 --- a/src/views/ebiz/institutionalPerform/Organization.vue +++ b/src/views/ebiz/institutionalPerform/Organization.vue @@ -14,11 +14,11 @@
| 机构业绩 | +机构业绩 | 达成 | |
|---|---|---|---|
| 预收标保 | -{{ performance.ysbb | unitFilter(1) | blankFilter }} | +预收标保 | +{{ performance.ysbb | unitFilter(1) | blankFilter }} |
| 预收件数 | -{{ performance.ysjs | unitFilter(2) | blankFilter }} | +预收件数 | +{{ performance.ysjs | unitFilter(2) | blankFilter }} |
| 承保标保 | -{{ performance.bzbf | unitFilter(1) | blankFilter }} | +承保标保 | +{{ performance.bzbf | unitFilter(1) | blankFilter }} |
| 承保件数 | -{{ performance.cbjs | unitFilter(2) | blankFilter }} | +承保件数 | +{{ performance.cbjs | unitFilter(2) | blankFilter }} |
| 活动人力 | +活动人力 | 达成(人) | |
|---|---|---|---|
| 合格人力 | -{{ manpower.hgrl | blankFilter }} | +合格人力 | +{{ manpower.hgrl | blankFilter }} |
| 桂冠人力 | -{{ manpower.ggrl | blankFilter }} | +桂冠人力 | +{{ manpower.ggrl | blankFilter }} |
| 桂冠正式会员 | -{{ manpower.ggrl | blankFilter }} | +桂冠正式会员 | +{{ manpower.ggrl | blankFilter }} |
| 双冠人力 | -{{ manpower.sgrl | blankFilter }} | +双冠人力 | +{{ manpower.sgrl | blankFilter }} |
| 新增人力 | -{{ manpower.xzrl | blankFilter }} | +新增人力 | +{{ manpower.xzrl | blankFilter }} |
+ 总保费: {{ allPrice }}(万元) +
| 保费占比(%) | |||||||
|---|---|---|---|---|---|---|---|
| {{ product.productName }} | -{{ product.cbbb | blankFilter }} | -{{ product.cbItems | blankFilter }} | -{{ product.percent | blankFilter }} | +{{ product.productName }} | +{{ product.cbbb | blankFilter }} | +{{ product.cbItems | blankFilter }} | +{{ product.percent | blankFilter }} |
| 暂无数据 | +暂无数据 | ||||||
指标
{{ type @@ -111,7 +111,6 @@ export default { }, data() { return { - resetFlag: false, timeType: 0, // 最大查询日期 maxDate: currentDate, @@ -216,6 +215,10 @@ export default { this.setRightBtn() }, methods: { + changeSearchType() { + this.isSideBarShow = true + document.title = '返回' + }, async reset() { this.params = { manageCode: '86', @@ -236,8 +239,14 @@ export default { this.cityCode = 0 this.areaCode = 0 this.resetFlag = true + }, + async getSetDate() { let result = await this.getSummarizingData() - this.setSummarizingData(result) + if (this.active === 0) { + this.setSummarizingData(result) + } else { + this.$refs.organization.setTableData(result.content, this.params.type) + } }, appCallBack(data) { if (data.trigger == 'right_button_click') { @@ -245,12 +254,7 @@ export default { } }, async dataTypeChange() { - let result = await this.getSummarizingData() - if (this.active === 0) { - this.setSummarizingData(result) - } else { - this.$refs.organization.setTableData(result.content, this.params.type) - } + this.getSetDate() }, setRightBtn() { setTimeout(() => { @@ -327,32 +331,17 @@ export default { async onDayConditionConfirm() { this.isDayConditionShow = false this.timeType = 0 - let result = await this.getSummarizingData() - if (this.active === 0) { - this.setSummarizingData(result) - } else { - this.$refs.organization.setTableData(result.content, this.params.type) - } + this.getSetDate() }, async onMonthConditionConfirm() { this.isMonthConditionShow = false this.timeType = 1 - let result = await this.getSummarizingData() - if (this.active === 0) { - this.setSummarizingData(result) - } else { - this.$refs.organization.setTableData(result.content, this.params.type) - } + this.getSetDate() }, async onYearConditionConfirm() { this.isYearConditionShow = false this.timeType = 2 - let result = await this.getSummarizingData() - if (this.active === 0) { - this.setSummarizingData(result) - } else { - this.$refs.organization.setTableData(result.content, this.params.type) - } + this.getSetDate() }, // 筛选分公司确认事件 async onProvinceConditionConfirm(data) { @@ -377,12 +366,7 @@ export default { }) const seconds = res.content this.cityObjs.push(...seconds) - let result = await this.getSummarizingData() - if (this.active === 0) { - this.setSummarizingData(result) - } else { - this.$refs.organization.setTableData(result.content, this.params.type) - } + this.getSetDate() }, // 筛选城市确认事件 async onCityConditionConfirm(data) { @@ -406,12 +390,7 @@ export default { }) const thirds = res.content this.areaObjs.push(...thirds) - let result = await this.getSummarizingData() - if (this.active === 0) { - this.setSummarizingData(result) - } else { - this.$refs.organization.setTableData(result.content, this.params.type) - } + this.getSetDate() }, // 筛选地区确认事件 async onAreaConditionConfirm(data) { @@ -427,12 +406,7 @@ export default { this.params.manageCode = this.cityCode this.params.manageLv = '03' } - let result = await this.getSummarizingData() - if (this.active === 0) { - this.setSummarizingData(result) - } else { - this.$refs.organization.setTableData(result.content, this.params.type) - } + this.getSetDate() }, // 筛选时间确认事件 async onDayTimeConditionConfirm(time) { @@ -440,16 +414,13 @@ export default { this.timeType = 3 this.timeCondition = dateUtil.formatDate(time, 'MM-dd HH:mm') this.params.date = '' - let result = await this.getSummarizingData() - if (this.active === 0) { - this.setSummarizingData(result) - } else { - this.$refs.organization.setTableData(result.content, this.params.type) - } + this.getSetDate() }, // 切换数据类型事件 async changeDataType(index) { + document.title = '排名' if (this.typeIndex === index) { + this.isSideBarShow = false return } this.typeIndex = index @@ -530,6 +501,9 @@ export default { break } } + }, + async typeIndex() { + this.getSetDate() } } }