|
|
@@ -1634,7 +1634,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
legend: {
|
|
|
- position:'left'
|
|
|
+ position:'bottom'
|
|
|
},
|
|
|
// 添加 中心统计文本 交互
|
|
|
interactions: [{ type: 'element-single-selected' },{ type: 'element-active' }],
|
|
|
@@ -1734,6 +1734,9 @@ export default {
|
|
|
seriesField: 'key',
|
|
|
minBarWidth: 20,
|
|
|
maxBarWidth: 40,
|
|
|
+ label:{
|
|
|
+ position:top
|
|
|
+ },
|
|
|
legend: {
|
|
|
position: 'top-left',
|
|
|
},
|
|
|
@@ -1765,7 +1768,24 @@ export default {
|
|
|
param.content.dataid = param.content.dataid[param.content.dataid.length - 1]
|
|
|
}
|
|
|
let res = await this.$api.requested(param)
|
|
|
- this.addData.arr1 = res.data.histogram
|
|
|
+ /*this.addData.arr1 = res.data.histogram*/
|
|
|
+ let lastYear = []
|
|
|
+ let nowYear = []
|
|
|
+ let k=0
|
|
|
+ for (var i=0;i<res.data.histogram.length;i++){
|
|
|
+ if (res.data.histogram[i].key === '去年同期新增'){
|
|
|
+ lastYear[k]=res.data.histogram[i]
|
|
|
+ k++
|
|
|
+ }
|
|
|
+ }
|
|
|
+ let x=0
|
|
|
+ for (var i=0;i<res.data.histogram.length;i++){
|
|
|
+ if (res.data.histogram[i].key === '本期新增'){
|
|
|
+ nowYear[x]=res.data.histogram[i]
|
|
|
+ x++
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.addData.arr1 = lastYear.concat(nowYear)
|
|
|
res.data.lineChart.forEach(item => item[`同比增长率`] = item.value)
|
|
|
this.addData.arr2 = res.data.lineChart
|
|
|
if (init) {
|
|
|
@@ -1778,12 +1798,24 @@ export default {
|
|
|
geometry: 'column',
|
|
|
isGroup: true,
|
|
|
seriesField: 'key',
|
|
|
+ color:['#62daab','#6395fa'],
|
|
|
+ label:{
|
|
|
+ position:top
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
geometry: 'line',
|
|
|
lineStyle: {
|
|
|
lineWidth: 2,
|
|
|
},
|
|
|
+ color: '#F6903D',
|
|
|
+ smooth: true,
|
|
|
+ label:{
|
|
|
+ position:top,
|
|
|
+ formatter: (datum) =>{
|
|
|
+ return datum.value + '%'
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
],
|
|
|
tooltip: {
|
|
|
@@ -1804,7 +1836,24 @@ export default {
|
|
|
param.content.dataid = param.content.dataid[param.content.dataid.length - 1]
|
|
|
}
|
|
|
let res = await this.$api.requested(param)
|
|
|
- this.baobeiData.arr1 = res.data.histogram
|
|
|
+ /*this.baobeiData.arr1 = res.data.histogram*/
|
|
|
+ let lastYear = []
|
|
|
+ let nowYear = []
|
|
|
+ let k=0
|
|
|
+ for (var i=0;i<res.data.histogram.length;i++){
|
|
|
+ if (res.data.histogram[i].key === '去年同期报备'){
|
|
|
+ lastYear[k]=res.data.histogram[i]
|
|
|
+ k++
|
|
|
+ }
|
|
|
+ }
|
|
|
+ let x=0
|
|
|
+ for (var i=0;i<res.data.histogram.length;i++){
|
|
|
+ if (res.data.histogram[i].key === '本期报备'){
|
|
|
+ nowYear[x]=res.data.histogram[i]
|
|
|
+ x++
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.baobeiData.arr1 = lastYear.concat(nowYear)
|
|
|
res.data.lineChart.forEach(item => item[`同比增长率`] = item.value)
|
|
|
this.baobeiData.arr2 = res.data.lineChart
|
|
|
if (init) {
|
|
|
@@ -1817,12 +1866,24 @@ export default {
|
|
|
geometry: 'column',
|
|
|
isGroup: true,
|
|
|
seriesField: 'key',
|
|
|
+ color:['#62daab','#6395fa'],
|
|
|
+ label:{
|
|
|
+ position:top
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
geometry: 'line',
|
|
|
lineStyle: {
|
|
|
lineWidth: 2,
|
|
|
},
|
|
|
+ color: '#F6903D',
|
|
|
+ smooth: true,
|
|
|
+ label:{
|
|
|
+ position:top,
|
|
|
+ formatter: (datum) =>{
|
|
|
+ return datum.value + '%'
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
],
|
|
|
tooltip: {
|
|
|
@@ -1844,6 +1905,23 @@ export default {
|
|
|
}
|
|
|
let res = await this.$api.requested(param)
|
|
|
this.fllowData = res.data
|
|
|
+ let lastYear = []
|
|
|
+ let nowYear = []
|
|
|
+ let k=0
|
|
|
+ for (var i=0;i<res.data.followup.length;i++){
|
|
|
+ if (res.data.followup[i].key === '去年同期跟进'){
|
|
|
+ lastYear[k]=res.data.followup[i]
|
|
|
+ k++
|
|
|
+ }
|
|
|
+ }
|
|
|
+ let x=0
|
|
|
+ for (var i=0;i<res.data.followup.length;i++){
|
|
|
+ if (res.data.followup[i].key === '本期跟进'){
|
|
|
+ nowYear[x]=res.data.followup[i]
|
|
|
+ x++
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.fllowData.followup = lastYear.concat(nowYear)
|
|
|
this.fllowData.tbzzl.forEach(item => item.key = '同比增长率')
|
|
|
console.log(res.data,'跟进数据');
|
|
|
if (init) {
|
|
|
@@ -1856,12 +1934,21 @@ export default {
|
|
|
geometry: 'column',
|
|
|
seriesField:'key',
|
|
|
isGroup: 'true',
|
|
|
- color: '#5B8FF9',
|
|
|
+ color:['#62daab','#6395fa'],
|
|
|
+ label:{
|
|
|
+ position:top
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
geometry: 'line',
|
|
|
seriesField:'key',
|
|
|
- color: '#5AD8A6',
|
|
|
+ color: '#F6903D',
|
|
|
+ smooth: true,
|
|
|
+ label:{
|
|
|
+ formatter: (datum) =>{
|
|
|
+ return datum.value + '%'
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
],
|
|
|
tooltip: {
|
|
|
@@ -1883,13 +1970,14 @@ export default {
|
|
|
}
|
|
|
let res = await this.$api.requested(param)
|
|
|
this.baojiaData = res.data
|
|
|
- console.log(res.data,'报价数据');
|
|
|
+
|
|
|
if (init) {
|
|
|
this.baojiaMap = new Line(this.$refs.baojiaEl, {
|
|
|
data:this.baojiaData,
|
|
|
xField: 'date',
|
|
|
yField: 'value',
|
|
|
seriesField: 'key',
|
|
|
+ label:{},
|
|
|
xAxis: {
|
|
|
/*type: 'time',*/
|
|
|
},
|
|
|
@@ -1899,6 +1987,7 @@ export default {
|
|
|
// formatter: (v) => `${v}`.replace(/\d{1,3}(?=(\d{3})+$)/g, (s) => `${s},`),
|
|
|
// },
|
|
|
},
|
|
|
+ smooth: true,
|
|
|
})
|
|
|
this.baojiaMap.render()
|
|
|
} else {
|
|
|
@@ -2191,13 +2280,17 @@ export default {
|
|
|
xField: 'datetype',
|
|
|
yField: 'value',
|
|
|
seriesField: 'key',
|
|
|
+ label:{
|
|
|
+ position:top
|
|
|
+ },
|
|
|
/** 设置颜色 */
|
|
|
//color: ['#1ca9e6', '#f88c24'],
|
|
|
/** 设置间距 */
|
|
|
+
|
|
|
// marginRatio: 0.1,
|
|
|
- label: {
|
|
|
+ /*label: {
|
|
|
// 可手动配置 label 数据标签位置
|
|
|
- position: 'middle', // 'top', 'middle', 'bottom'
|
|
|
+ position: 'top', // 'top', 'middle', 'bottom'
|
|
|
// 可配置附加的布局方法
|
|
|
layout: [
|
|
|
// 柱形图数据标签位置自动调整
|
|
|
@@ -2207,7 +2300,7 @@ export default {
|
|
|
// 数据标签文颜色自动调整
|
|
|
{ type: 'adjust-color' },
|
|
|
],
|
|
|
- },
|
|
|
+ },*/
|
|
|
interactions: [{ type: 'element-highlight-by-x' }],
|
|
|
});
|
|
|
this.customerUnfllowMap.on('element:click',(v) => {
|