diff --git a/src/views/warehouse/chart/BarChart.vue b/src/views/warehouse/chart/BarChart.vue index f3e66592..01e64a95 100644 --- a/src/views/warehouse/chart/BarChart.vue +++ b/src/views/warehouse/chart/BarChart.vue @@ -60,31 +60,31 @@ export default { this.chart = echarts.init(this.$el, 'macarons'); this.chart.setOption({ - title: { - text: this.title - ? '{space|}{tip|}{space|}{value|' + this.title + '}' - : '', - left: '0%', - top: '0%', - textStyle: { - rich: { - tip: { - width: 4, - height: 18, - backgroundColor: '#0B58FF', - marginRight: 6, - }, - space: { - width: 8, - }, - value: { - fontSize: 16, - fontWeight: 'bold', - color: 'black', - }, - }, - }, - }, + // title: { + // text: this.title + // ? '{space|}{tip|}{space|}{value|' + this.title + '}' + // : '', + // left: '0%', + // top: '0%', + // textStyle: { + // rich: { + // tip: { + // width: 4, + // height: 18, + // backgroundColor: '#0B58FF', + // marginRight: 6, + // }, + // space: { + // width: 8, + // }, + // value: { + // fontSize: 16, + // fontWeight: 'bold', + // color: 'black', + // }, + // }, + // }, + // }, color: ['#288AFF', '#8EF0AB', '#FFDC94'], tooltip: { trigger: 'axis', @@ -148,6 +148,7 @@ export default { yAxis: [ { gridIndex: 0, + name: '库存数量', axisTick: { show: false, }, @@ -160,6 +161,7 @@ export default { }, { gridIndex: 1, + name: '剩余使用天数', axisTick: { show: false, }, diff --git a/src/views/warehouse/chart/PieChart.vue b/src/views/warehouse/chart/PieChart.vue index 28526e0c..a0aee033 100644 --- a/src/views/warehouse/chart/PieChart.vue +++ b/src/views/warehouse/chart/PieChart.vue @@ -59,7 +59,7 @@ export default { zlevel: 2, // 控制圆环图中间的字的层级 text: '总数', subtext: totalNumber, - top: '42%', // 控制位置 + top: '35%', // 控制位置 left: '50%', // 控制位置 textAlign: 'center', // 让文字居中 textStyle: { @@ -72,7 +72,7 @@ export default { tooltip: { trigger: 'item', show: true, // 控制鼠标悬浮是否显示数据 - formatter: '产品: {b}
数量: {c}
占比: {d}%', + formatter: '{b}
数量: {c}
占比: {d}%', }, legend: { orient: 'vartical', diff --git a/src/views/warehouse/end-material/InventoryOverview/index.vue b/src/views/warehouse/end-material/InventoryOverview/index.vue index 5d34cee9..53bea0f5 100644 --- a/src/views/warehouse/end-material/InventoryOverview/index.vue +++ b/src/views/warehouse/end-material/InventoryOverview/index.vue @@ -2,16 +2,20 @@ * @Author: zwq * @Date: 2023-08-22 15:01:54 * @LastEditors: zwq - * @LastEditTime: 2023-11-04 16:32:13 + * @LastEditTime: 2023-11-07 14:12:00 * @Description: --> @@ -36,46 +42,62 @@