地图优化

This commit is contained in:
13218645326 2023-12-02 14:46:39 +08:00
parent 14a0085094
commit 6352984afd
5 changed files with 51 additions and 12 deletions

4
env/.env.dev vendored
View File

@ -5,4 +5,6 @@ VITE_BUILD_MODE = 'dev'
# 开发环境接口地址 # 开发环境接口地址
VITE_API_URL = '/proxyApi' VITE_API_URL = '/proxyApi'
# 代理地址 # 代理地址
VITE_proxyTarget = "http://10.40.92.229:8080" VITE_proxyTarget = "http://10.40.92.64:9501/"

View File

@ -254,7 +254,7 @@ onBeforeMount(()=>{
width: 46px; width: 46px;
height: 59px; height: 59px;
position: absolute; position: absolute;
right: 402px; right: 280px;
bottom: 6px; bottom: 6px;
img{ img{
width: 46px; width: 46px;
@ -271,7 +271,8 @@ onBeforeMount(()=>{
.e_content { .e_content {
display: flex; display: flex;
justify-content: flex-start; justify-content: center;
} }
.left_nav_list { .left_nav_list {
@ -302,7 +303,7 @@ onBeforeMount(()=>{
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
position: absolute; position: absolute;
left: 40px; left: 100px;
bottom: 16px; bottom: 16px;
.out_dot1, .out_dot1,
.out_dot2, .out_dot2,

View File

@ -116,6 +116,12 @@ const propsVal = defineProps({
type: String, type: String,
default: "" default: ""
}, },
tooltipProps:{
type: Object,
default: {
}
},
formatCallBack: {// formatCallBack: {//
type: Function, type: Function,
default: () => { } default: () => { }
@ -169,6 +175,10 @@ const handleSeriesData = () => {
const option = { const option = {
tooltip: { tooltip: {
trigger: "axis", trigger: "axis",
backgroundColor:"rgba(255,255,255,0)",
borderColor:'rgba(255,255,255,0)',
shadowBlur: 0,
shadowColor: 'rgba(0, 0, 0, 0)'
}, },
title: { title: {
text: propsVal.title, text: propsVal.title,

View File

@ -1,9 +1,11 @@
import { post } from '../index' import { get, post } from '../index'
export function apiTest() { export function apiTest1() {
return post('system/user/getInfo', {}) return post('system/user/getInfo', {})
} }
export function apiTest() {
return get('maLeaseInfo/type-list', {})
}
export function apiNoticeAdd() { export function apiNoticeAdd() {
return post('system/notice/add', { return post('system/notice/add', {
"noticeTitle": "测试", "noticeTitle": "测试",

View File

@ -115,6 +115,7 @@
:seriseData="barComProps.seriseData" :emphasisItemStyle="barComProps.emphasisItemStyle" :seriseData="barComProps.seriseData" :emphasisItemStyle="barComProps.emphasisItemStyle"
:itemStyle="barComProps.itemStyle" :stackFlag="barComProps.stackFlag" :itemStyle="barComProps.itemStyle" :stackFlag="barComProps.stackFlag"
:stackLabel="barComProps.stackLabel" :borderRadius="barComProps.borderRadius" :stackLabel="barComProps.stackLabel" :borderRadius="barComProps.borderRadius"
:tooltipProps="barComProps.tooltipProps"
:barWidth="barComProps.barWidth" :formatCallBack="barComProps.formatCallBack"></barCom> :barWidth="barComProps.barWidth" :formatCallBack="barComProps.formatCallBack"></barCom>
</div> </div>
<div class="bottom_row_center_bar_right"> <div class="bottom_row_center_bar_right">
@ -124,7 +125,8 @@
:emphasisItemStyle="barComPropsSimple.emphasisItemStyle" :emphasisItemStyle="barComPropsSimple.emphasisItemStyle"
:itemStyle="barComPropsSimple.itemStyle" :stackFlag="barComPropsSimple.stackFlag" :itemStyle="barComPropsSimple.itemStyle" :stackFlag="barComPropsSimple.stackFlag"
:stackLabel="barComPropsSimple.stackLabel" :borderRadius="barComPropsSimple.borderRadius" :stackLabel="barComPropsSimple.stackLabel" :borderRadius="barComPropsSimple.borderRadius"
:barWidth="barComProps.barWidth" :formatCallBack="barComPropsSimple.formatCallBack"></barCom> :tooltipProps="barComPropsSimple.tooltipProps"
:barWidth="barComPropsSimple.barWidth" :formatCallBack="barComPropsSimple.formatCallBack"></barCom>
</div> </div>
</div> </div>
</div> </div>
@ -141,6 +143,7 @@
:itemStyle="barComPropsHorizontal.itemStyle" :stackFlag="barComPropsHorizontal.stackFlag" :itemStyle="barComPropsHorizontal.itemStyle" :stackFlag="barComPropsHorizontal.stackFlag"
:stackLabel="barComPropsHorizontal.stackLabel" :borderRadius="barComPropsHorizontal.borderRadius" :stackLabel="barComPropsHorizontal.stackLabel" :borderRadius="barComPropsHorizontal.borderRadius"
:itemBackgroundStyle="barComPropsHorizontal.itemBackgroundStyle" :itemBackgroundStyle="barComPropsHorizontal.itemBackgroundStyle"
:tooltipProps="barComPropsHorizontal.tooltipProps"
:formatCallBack="barComPropsHorizontal.formatCallBack"> </barCom> :formatCallBack="barComPropsHorizontal.formatCallBack"> </barCom>
</div> </div>
@ -222,15 +225,22 @@ const barComProps = reactive({
stackLabel: { stackLabel: {
show: true, show: true,
position: 'top', position: 'top',
color: "rgba(255,255,255,0.4)" color: "rgba(255,255,255,0.5)"
}, },
borderRadius: 0, borderRadius: 0,
barWidth: 14, barWidth: 14,
tooltipProps: {
trigger: "axis",
backgroundColor:"rgba(255,255,255,0)",
borderColor:'rgba(255,255,255,0)',
shadowBlur: 0,
shadowColor: 'rgba(0, 0, 0, 0)'
},
formatCallBack: (params: any) => { formatCallBack: (params: any) => {
if (!params || params.length == 0 || !Array.isArray(params)) return if (!params || params.length == 0 || !Array.isArray(params)) return
let fromatStr = "" let fromatStr = ""
params.forEach((ele: any) => { params.forEach((ele: any) => {
fromatStr += '<div style="border-bottom:1px solid #ccc;"><span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:' + ele.color + '"></span>' + ele.data + "</div>" fromatStr += '<div style="<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:rgba(255,255,255,0);color:#fff;"></span> <span style="color:#fff;">'+ele.data+'</span>' + "</div>"
}) })
return fromatStr return fromatStr
} }
@ -270,11 +280,18 @@ const barComPropsSimple = reactive({
}, },
borderRadius: 4, borderRadius: 4,
barWidth: 14, barWidth: 14,
tooltipProps: {
trigger: "axis",
backgroundColor:"rgba(255,255,255,0)",
borderColor:'rgba(255,255,255,0)',
shadowBlur: 0,
shadowColor: 'rgba(0, 0, 0, 0)'
},
formatCallBack: (params: any) => { formatCallBack: (params: any) => {
if (!params || params.length == 0 || !Array.isArray(params)) return if (!params || params.length == 0 || !Array.isArray(params)) return
let fromatStr = "" let fromatStr = ""
params.forEach((ele: any) => { params.forEach((ele: any) => {
fromatStr += '<div style="border-bottom:1px solid #ccc;"><span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:' + ele.color + '"></span>' + ele.data + "</div>" fromatStr += '<div style="<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:rgba(255,255,255,0);color:#fff;"></span> <span style="color:#fff;">'+ele.data+'</span>' + "</div>"
}) })
return fromatStr return fromatStr
} }
@ -315,11 +332,18 @@ const barComPropsHorizontal = reactive({
borderRadius: 0, borderRadius: 0,
barWidth: 14, barWidth: 14,
itemBackgroundStyle:"rgba(255,255,255,0.05)", itemBackgroundStyle:"rgba(255,255,255,0.05)",
tooltipProps: {
trigger: "axis",
backgroundColor:"rgba(255,255,255,0)",
borderColor:'rgba(255,255,255,0)',
shadowBlur: 0,
shadowColor: 'rgba(0, 0, 0, 0)'
},
formatCallBack: (params: any) => { formatCallBack: (params: any) => {
if (!params || params.length == 0 || !Array.isArray(params)) return if (!params || params.length == 0 || !Array.isArray(params)) return
let fromatStr = "" let fromatStr = ""
params.forEach((ele: any) => { params.forEach((ele: any) => {
fromatStr += '<div style="border-bottom:1px solid #ccc;"><span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:' + ele.color + '"></span>' + ele.data + "</div>" fromatStr += '<div style="<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:rgba(255,255,255,0);color:#fff;"></span> <span style="color:#fff;">'+ele.data+'</span>' + "</div>"
}) })
return fromatStr return fromatStr
} }