Commit af388a18 by 王志慧

commit

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