当前位置: 首页 > news >正文

做金融必看网站html网页设计介绍

做金融必看网站,html网页设计介绍,太原网站建设谁家好,微商城网站建设新闻文章目录 背景一、代码示例 背景 业务场景体现在功能层面主要两点#xff0c; 折线图表设置点击事件点击事件与图标渲染标记绑定 对于节点没有被添加标记的可以#xff0c;弹框提示添加标记#xff0c;并提供标记内容输入框#xff0c;已经添加过标记的点#xff0c;点… 文章目录 背景一、代码示例 背景 业务场景体现在功能层面主要两点 折线图表设置点击事件点击事件与图标渲染标记绑定 对于节点没有被添加标记的可以弹框提示添加标记并提供标记内容输入框已经添加过标记的点点击直接显示标记内容 一、代码示例 dom div classchartbox-domrefvoltageLineRef/div标记弹窗 !-- 标记弹窗 --el-dialog v-modeldialogVisible:titledialogTitlewidth300div v-ifdialogTitle 添加标记p stylepadding-bottom: 10px;font-size: 14px;color:#E6E6E6;标记内容:/pel-input v-modeltagContent:rows2typetextareaplaceholder请输入标记内容 //divdiv stylefont-size: 14px;color:#E6E6E6;v-else{{ tagContent }}/divtemplate #footerdivel-button clickhandleClose关闭/el-buttonel-button typeprimaryv-ifdialogTitle 添加标记clickconfirm保存/el-button/div/template/el-dialog逻辑 import * as echarts from echartsconst tagContent ref() //弹窗内容 const markPointData reactive({y0: [{coord: [2, 0],name: 标记内容自定义1,},{coord: [5, 1],name: 标记内容自定义2,},], // 标记内容y1: [], }) const dialogVisible ref(false) //控制弹窗 const coordValue ref([]) //坐标 const dialogTitle ref(添加标记) const seriesIndex ref(0) //折线图索引//曲线 function voltageLineDraw() {let voltageLineChart echarts.init(voltageLineRef.value)voltageLineChart.group echartGrouplet option {tooltip: {trigger: axis,backgroundColor: rgba(16,28,55,0.9),textStyle: {color: #fff,},axisPointer: {type: cross,},formatter: function (params) {var result params[0].name br/params.forEach(function (item) {var value item.datavar statusif (value 0) {status 低} else if (value 1) {status 中} else {status 高}var color item.color // 获取折线的颜色result div styledisplay: flex; align-items: center;span styledisplay: inline-block; width: 10px; height: 10px; background-color:${color}; border-radius: 50%; margin-right: 5px;/span${item.seriesName}: ${status}/div})return result},},legend: {top: 0,right: 10,itemWidth: 12, // 图例标记的图形宽度itemHeight: 14, // 图例标记的图形高度textStyle: {color: #747C90,},data: [运行状态, 告警状态],},grid: {top: 30,left: 20,right: 40,bottom: 10,containLabel: true,},xAxis: {type: category,boundaryGap: false,axisLabel: {color: #8A92A6,},data: [2023-02-21,2023-02-22,2023-02-23,2023-02-24,2023-02-25,2023-02-26,2023-02-27,],},yAxis: {type: value,axisLabel: {color: #8A92A6,},splitLine: {// 网格线show: true,lineStyle: {//分割线color: #2E3552,width: 1,type: dashed, //dotted虚线 solid:实线},},},dataZoom: [{show: false,realtime: true,xAxisIndex: all,},{type: inside,realtime: true,show: false,xAxisIndex: all,},],series: [{name: 运行状态,type: line,symbol: circle,data: [0, 1, 0, 2, 0, 1, 2],markPoint: {data: markPointData.y0,symbolSize: 30,itemStyle: {color: red,},label: {fontSize: 10,color: #fff,},},},{name: 告警状态,type: line,symbol: circle,data: [2, 1, -1, 0, 1, 0, 1],markPoint: {data: markPointData.y1,symbolSize: 30,itemStyle: {color: red,},label: {fontSize: 10,color: #fff,},},},],}voltageLineChart.setOption(option)voltageLineChart.off(click) //处理点击重复问题voltageLineChart.on(click, (params) {switch (params.componentType) {case markPoint:tagContent.value params.data.nameopenDialog(标记内容, params.dataIndex, params.value)breakcase series:tagContent.value openDialog(添加标记, params.dataIndex, params.value)break}seriesIndex.value params.seriesIndexdialogVisible.value true})echarts.connect(echartGroup)window.addEventListener(resize, () {voltageLineChart.resize()}) }/* 打开弹窗 */ function openDialog(title, index, value) {dialogTitle.value titlecoordValue.value [index, value]dialogVisible.value true } /* 弹窗关闭 */ function handleClose() {tagContent.value dialogVisible.value false } /* 弹窗确定 */ function confirm() {const hasCoordIndex markPointData[y seriesIndex.value].findIndex((num) num.coord[0] coordValue.value[0])if (hasCoordIndex -1) {markPointData[y seriesIndex.value].push({coord: coordValue.value,name: tagContent.value,})} else {markPointData[y seriesIndex.value].splice(hasCoordIndex, 1, {coord: coordValue.value,name: tagContent.value,})}voltageLineDraw()dialogVisible.value false }
http://www.hkea.cn/news/14574611/

相关文章:

  • php网站开发过程网站建设那里
  • 只能在线观看的电影网站咋么做常平网站
  • 济南免费做网站漯河小学网站建设
  • 沈阳百度网站的优点wordpress 登录后页面空白页
  • 背景全屏网站西安搜索引擎
  • 建设网站的费用入什么科目网站建设com
  • app软件开发网站开一家公司最低注册资金
  • 注册域名去哪个网站好怎么做淘宝网站赚钱技巧
  • 单位网站建设费用石林彝族网站建设
  • 无锡做网站哪个公司好表情包制作赚钱软件app哪个好用
  • 网站维护 一年许昌旅游网站建设现状
  • 梁山网站建设哪家好ui设计岗位职责
  • 金融理财网站建设方案网站怎么分工做
  • 帝国cms网站建设兰州网站怎么建设
  • 优质服务的小企业网站建设大流量网站 优化
  • 网站qq号获取网站制作专业的公司
  • 手机响应式网站开发电商搜索关键词
  • 建筑参考网站那里有专门做印刷品的网站
  • 做微课常用的网站有哪些国家对网站建设补补贴
  • 网站建设费属于广告费用吗新颖的公司名字大全
  • 哪里有帮做微课的网站wordpress 3.3.2
  • 咸阳免费做网站怎么创建网站平台赚钱
  • 传播学视角下网站建设研究广西网站开发公司
  • 网站建设费汇算清缴WordPress极品主题
  • 滁州网站建设梦天堂合肥公司建设网站
  • 网站说服力 营销...wordpress上传文件自动按时间命名
  • vs设置网站开发环境网络营销运营推广
  • 大学网站建设图莱芜住房和城乡建设厅网站
  • 12306网站建设费用wordpress主题开发出
  • 福建seo网站廊坊视频优化效果