Commit af388a18 by 王志慧

commit

1 parent 90b1c3d5
......@@ -22,14 +22,13 @@ export default {
watch: {
tabIndex: {
handler() {
this.initTextData()
this.initTextData()
},
immediate: true
},
outputData: {
handler() {
this.initTextData()
},
deep: true,
immediate: true
......@@ -65,10 +64,10 @@ export default {
if (parseInt(time[1]) > 9) {
this.text = time[1] + '月'
} else {
this.text = time[1]&&time[1].split('')[1] + '月'
this.text = time[1] && time[1].split('')[1] + '月'
}
}
this.initData()
this.initData()
},
initData() {
let {
......@@ -128,6 +127,7 @@ export default {
}
},
click(index) {
this.$emit('change', index)
}
}
......@@ -149,7 +149,7 @@ export default {
background-color: #dfe7f1;
.item {
width: 50%;
transition: all 0.5s;
// transition: all 0.5s;
font-size: 14px;
}
.active-left {
......@@ -184,7 +184,7 @@ export default {
.item {
color: #333333;
flex: 1;
transition: all 0.5s;
// transition: all 0.5s;
font-size: 14px;
}
.active {
......
......@@ -119,6 +119,8 @@ export default {
})
},
initLineChart(id = 'lineChart') {
let offsetY
offsetY = document.getElementById(id).height * 0.4
let { trendList } = this
trendList.forEach(item => {
item.type = '新增产值'
......@@ -127,7 +129,7 @@ export default {
this.lineChart = null
this.lineChart = new F2.Chart({
id,
padding: [50, 50, 20, 50],
padding: [70, 50, 20, 50],
pixelRatio: window.devicePixelRatio
})
......@@ -156,6 +158,7 @@ export default {
// layout: 'vertical'
// })
const tooltipEl = this.$refs.lineTooltip
this.lineChart.tooltip({
custom: true,
showCrosshairs: false,
......@@ -196,7 +199,8 @@ export default {
...textObj,
content: '产值',
offsetX: -10,
offsetY: -165
// offsetY: -`${offsetY}`
offsetY: -156
})
this.lineChart.render()
},
......@@ -246,19 +250,21 @@ export default {
onClick(ev) {
const data = ev.data
if (data) {
console.log(data)
// console.log(data)
}
}
})
this.chart.render()
},
async lineCustomerChart(id = 'lineCustomerChart') {
let offsetY
offsetY = document.getElementById(id).height * 0.4
await this.dynamicTick() //动态生成各个标度点的间距
this.lineChartCustomer && this.lineChartCustomer.clear()
this.lineChartCustomer = null
this.lineChartCustomer = new F2.Chart({
id,
padding: [50, 50, 20, 50],
padding: [70, 50, 20, 50],
pixelRatio: window.devicePixelRatio
})
let trendList = []
......@@ -347,7 +353,7 @@ export default {
...textObj,
content: '数量',
offsetX: -10,
offsetY: -165
offsetY: -156
})
this.lineChartCustomer.render()
},
......
......@@ -64,8 +64,8 @@ export default {
? '精品升级'
: '权益提单'
}
console.log(fastOrderSource)
console.log(text)
// console.log(fastOrderSource)
// console.log(text)
if (accountLevel !== 4) {
this.fastData.push(
{ text: '增长速度最快的业务:', info: text, icon: 'rank' },
......
......@@ -50,6 +50,7 @@ export default {
mounted() {},
methods: {
click(tabIndex) {
this.showLoading()
this.tabIndex = tabIndex
this.$emit('change', tabIndex)
}
......
......@@ -50,7 +50,7 @@ fetchConfig(!isMock).then(res => {
window.$fetchConfig = res
/**登录过期 重新登录 */
window.reLogin = () => {
console.log('重新登录')
// console.log('重新登录')
util.clearSessionId()
store.dispatch('navigation')
}
......
......@@ -208,7 +208,7 @@ export default {
onClick(ev) {
const data = ev.data
if (data) {
console.log(data)
// console.log(data)
}
}
})
......
......@@ -87,6 +87,7 @@ export default {
},
getData() {
this.INIT_DATA()
// this.hideLoading()
if (this.tabIndex == 1) {
this.getReport({
reportType: this.reportType,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!