|
@@ -21,9 +21,9 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
// newData: {
|
|
// newData: {
|
|
- cdepNameArr: [], //部门 数组
|
|
|
|
- iquantityArr: [], //实际数量
|
|
|
|
- inatMoneyArr: [] //本币金额
|
|
|
|
|
|
+ cdepNameArr: [], // 部门 数组
|
|
|
|
+ iquantityArr: [], // 实际数量
|
|
|
|
+ inatMoneyArr: [] // 本币金额
|
|
// }
|
|
// }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -34,7 +34,7 @@ export default {
|
|
created() {
|
|
created() {
|
|
// 初次加载当月
|
|
// 初次加载当月
|
|
this.firstDepData()
|
|
this.firstDepData()
|
|
- console.log('内 部门chart');
|
|
|
|
|
|
+ console.log('内 部门chart')
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 初次加载
|
|
// 初次加载
|
|
@@ -65,7 +65,7 @@ export default {
|
|
// console.log('部门三数组', this.cdepNameArr, this.iquantityArr, this.inatMoneyArr)
|
|
// console.log('部门三数组', this.cdepNameArr, this.iquantityArr, this.inatMoneyArr)
|
|
}
|
|
}
|
|
|
|
|
|
- //2、后图
|
|
|
|
|
|
+ // 2、后图
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.initEcharts()
|
|
this.initEcharts()
|
|
})
|
|
})
|
|
@@ -87,7 +87,7 @@ export default {
|
|
// console.log('部门三数组', this.cdepNameArr, this.iquantityArr, this.inatMoneyArr)
|
|
// console.log('部门三数组', this.cdepNameArr, this.iquantityArr, this.inatMoneyArr)
|
|
}
|
|
}
|
|
|
|
|
|
- //2、后图
|
|
|
|
|
|
+ // 2、后图
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.initEcharts()
|
|
this.initEcharts()
|
|
})
|
|
})
|
|
@@ -95,7 +95,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
initEcharts() {
|
|
initEcharts() {
|
|
- const myChart = echarts.init(document.getElementById('departmentChart')) //dark
|
|
|
|
|
|
+ const myChart = echarts.init(document.getElementById('departmentChart')) // dark
|
|
|
|
|
|
const option = {
|
|
const option = {
|
|
title: {
|
|
title: {
|
|
@@ -127,17 +127,17 @@ export default {
|
|
data: ['实际数量', '本币金额']
|
|
data: ['实际数量', '本币金额']
|
|
},
|
|
},
|
|
grid: {
|
|
grid: {
|
|
- show: true, //是否显示直角坐标系网格。[ default: false ]
|
|
|
|
|
|
+ show: true, // 是否显示直角坐标系网格。[ default: false ]
|
|
left: '6%', // 组件离容器左侧的距离。
|
|
left: '6%', // 组件离容器左侧的距离。
|
|
right: '6%',
|
|
right: '6%',
|
|
- borderColor: 'none', //网格的边框颜色
|
|
|
|
|
|
+ borderColor: 'none', // 网格的边框颜色
|
|
bottom: '20%'
|
|
bottom: '20%'
|
|
},
|
|
},
|
|
|
|
|
|
xAxis: {
|
|
xAxis: {
|
|
type: 'category',
|
|
type: 'category',
|
|
axisLabel: {
|
|
axisLabel: {
|
|
- interval: 0 //控制X轴刻度全部显示
|
|
|
|
|
|
+ interval: 0 // 控制X轴刻度全部显示
|
|
// rotate: 30 //倾斜角度
|
|
// rotate: 30 //倾斜角度
|
|
},
|
|
},
|
|
|
|
|