diff --git a/src/components/echarts/MyEchart.vue b/src/components/echarts/MyEchart.vue index 6f53c2d..982da03 100644 --- a/src/components/echarts/MyEchart.vue +++ b/src/components/echarts/MyEchart.vue @@ -13,8 +13,6 @@ import 'echarts-liquidfill' import 'echarts/lib/component/dataZoom' import { color, gradeColor3 } from './color' import { useConfig } from '@/stores/config' -import { saveAs } from 'file-saver' -import { t } from 'vxe-table' // import { nextTick } from 'process' const config = useConfig() @@ -119,7 +117,15 @@ const initChart = () => { height: 13, bottom: '20px', end: 100 - } + }, + // { + // show: true, + // yAxisIndex: 0, + // width: 12, + // handleSize: 8, + // showDataShadow: false, + // right: 12 + // } ], color: props.options?.color || color, series: props.options?.series, @@ -177,7 +183,7 @@ const handlerYAxis = () => { color: '#000', fontSize: 14, formatter: function (value) { - return value.toFixed(0) // 格式化显示为一位小数 + return parseFloat(value.toFixed(1)) // 格式化显示为一位小数 } }, splitLine: { @@ -217,9 +223,9 @@ const handlerXAxis = () => { // textStyle: { fontFamily: 'dinproRegular', color: '#000', - fontSize: '12', + fontSize: '12' // } - }, + } // boundaryGap: false, } // props.options?.xAxis 是数组还是对象 diff --git a/src/components/table/fieldRender/index.vue b/src/components/table/fieldRender/index.vue index bb0a2ee..4dd27d2 100644 --- a/src/components/table/fieldRender/index.vue +++ b/src/components/table/fieldRender/index.vue @@ -3,14 +3,27 @@ - +
+ +
- +
@@ -31,29 +44,55 @@ -
+
- +