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

修改图表

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