Commit 6a4b0cdd authored by 赵乐's avatar 赵乐

修改图表

parent 99074a0c
...@@ -5,8 +5,8 @@ VITE_DEV=true ...@@ -5,8 +5,8 @@ VITE_DEV=true
# 请求路径 # 请求路径
# VITE_BASE_URL='http://192.168.0.133:48080' # VITE_BASE_URL='http://192.168.0.133:48080'
# VITE_BASE_URL='https://hntqwl.com' VITE_BASE_URL='https://hntqwl.com'
VITE_BASE_URL='http://localhost:48080' # VITE_BASE_URL='http://localhost:48080'
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务 # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务
VITE_UPLOAD_TYPE=server VITE_UPLOAD_TYPE=server
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
"source.fixAll.stylelint": "explicit" "source.fixAll.stylelint": "explicit"
}, },
"[vue]": { "[vue]": {
"editor.defaultFormatter": "octref.vetur" "editor.defaultFormatter": "esbenp.prettier-vscode"
}, },
"i18n-ally.localesPaths": ["src/locales"], "i18n-ally.localesPaths": ["src/locales"],
"i18n-ally.keystyle": "nested", "i18n-ally.keystyle": "nested",
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
"echarts-wordcloud": "^2.1.0", "echarts-wordcloud": "^2.1.0",
"element-china-area-data": "^6.1.0", "element-china-area-data": "^6.1.0",
"element-plus": "2.9.1", "element-plus": "2.9.1",
"express": "^5.1.0",
"fast-xml-parser": "^4.3.2", "fast-xml-parser": "^4.3.2",
"highlight.js": "^11.9.0", "highlight.js": "^11.9.0",
"jsencrypt": "^3.3.2", "jsencrypt": "^3.3.2",
......
<template> <template>
<div class="bar-chart"> <div class="bar-chart">
<h3 class="chart-title">{{ title }}</h3> <h3 class="chart-title">{{ title }}</h3>
<chartsCard <chartsCard :option="chartOption" :width="width" :height="height" @chart-ready="handleChartReady" />
:option="chartOption"
:width="width"
:height="height"
@chart-ready="handleChartReady"
/>
</div> </div>
</template> </template>
...@@ -109,6 +104,11 @@ const chartOption = computed(() => ({ ...@@ -109,6 +104,11 @@ const chartOption = computed(() => ({
barWidth: props.barWidth, barWidth: props.barWidth,
itemStyle: { itemStyle: {
color: props.color, color: props.color,
normal: {
label: {
show: true, // 显示标签(数值)
}
},
borderRadius: [4, 4, 0, 0] // 柱子圆角 borderRadius: [4, 4, 0, 0] // 柱子圆角
}, },
emphasis: { emphasis: {
......
...@@ -85,7 +85,8 @@ const chartOption = computed(() => ({ ...@@ -85,7 +85,8 @@ const chartOption = computed(() => ({
yAxis: { yAxis: {
type: 'value', type: 'value',
axisTick: { axisTick: {
show: false show: false,
alignWithLabel: true
}, },
axisLine: { axisLine: {
show: false show: false
...@@ -111,11 +112,13 @@ const chartOption = computed(() => ({ ...@@ -111,11 +112,13 @@ const chartOption = computed(() => ({
}, },
itemStyle: { itemStyle: {
color: props.color, color: props.color,
borderWidth: 2 borderWidth: 2,
normal: { label: { show: true } },
symbolSize: 10 //设定实心点的大小
}, },
symbol: 'circle', // 标记点形状 symbol: 'circle', // 标记点形状
symbolSize: 6, // 标记点大小 symbolSize: 6, // 标记点大小
showSymbol: false, // 默认不显示标记点,鼠标悬停时显示 showSymbol: true, // 默认不显示标记点,鼠标悬停时显示
emphasis: { emphasis: {
symbol: 'circle', symbol: 'circle',
symbolSize: 8 symbolSize: 8
......
...@@ -307,6 +307,9 @@ const handleUnionAllPrint = async () => { ...@@ -307,6 +307,9 @@ const handleUnionAllPrint = async () => {
if (list.value.length === 0) { if (list.value.length === 0) {
return message.warning('当前不存在可打印数据') return message.warning('当前不存在可打印数据')
} }
// delete queryParams.pageSize
// queryParams.pageSize=100
// 需要修改接口 最多只能100条数据
printData.value = await InfoApi.getUnionAllPrintListByIds(queryParams) printData.value = await InfoApi.getUnionAllPrintListByIds(queryParams)
await nextTick() await nextTick()
const dom = printComp.value.printRef const dom = printComp.value.printRef
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment