摘要: :cell-style=“{ textAlign:‘center’}” //内容居中 :header-cell-style=“{ textAlign:‘center’}”//表头居中 <el-table :cell-style=“{ textAlign:‘center’}” :header-cell 阅读全文
posted @ 2024-04-11 17:38 Qing`ing 阅读(698) 评论(0) 推荐(0)
摘要: :header-cell-style="{backgroundColor:'#F6F8F9', color: '#333',textAlign:'center'}" 要求1、折线为渐变色 2、折线区域渐变色 3、x 轴 y轴不展示 4、折线图背景为网格 5、鼠标划上样式修改 const option 阅读全文
posted @ 2024-04-11 17:35 Qing`ing 阅读(682) 评论(0) 推荐(0)
摘要: 每次切换 echarts 时要清除上一次的 echarts的图像 // 清除上次折线图数据 const charts = this.$refs.chart1; const myChart = echarts.init(charts); myChart.clear(); 阅读全文
posted @ 2023-10-25 15:46 Qing`ing 阅读(122) 评论(0) 推荐(0)
摘要: 当后端返回的数据格式为 const datas = [ { fast: '0', publish: '2222' }, { fast: '2', publish: '1111' }, { fast: '23', publish: '113122111' }, { fast: '123', publi 阅读全文
posted @ 2023-10-25 15:44 Qing`ing 阅读(102) 评论(0) 推荐(0)
摘要: 前景 后端返回的 echarts 展示数据格式,既要展示echarts 又要展示table表格,echarts 的数据格式为下面 { xData: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], yData1:[10, 52, 200, 334, 阅读全文
posted @ 2023-08-04 10:58 Qing`ing 阅读(652) 评论(0) 推荐(0)
摘要: 1、问题现象: echarts第一次获取的数据展示后 第二次再次获取会覆盖不了 展示的依然是上次的数据 解决办法: chart.clear() 2、问题现象: echarts 的占位 没有数据的话是只展示 x 轴和 y 轴 解决办法: 利用title的副标题subtext,默认为“暂无数据”,当数据 阅读全文
posted @ 2023-08-04 10:40 Qing`ing 阅读(428) 评论(0) 推荐(0)
摘要: 1.react-flow react-flow是一个用于构建基于节点的应用程序的库。这些可以是简单的静态图或复杂的基于节点的编辑器。同时react-flow支持自定义节点类型和边线类型,并且它附带一些组件,可以查看缩略图的Mini Map和悬浮控制器Controls. 2、react-flow 的安 阅读全文
posted @ 2023-05-25 11:25 Qing`ing 阅读(7031) 评论(0) 推荐(0)
摘要: 1、 HMAC-SHA256的base64加密 首先 npm install crypto-js --save 项目中使用 import CryptoJS from 'crypto-js'; const hash = CryptoJS.HmacSHA256(zhuan, 'secret');//第一 阅读全文
posted @ 2022-12-08 16:41 Qing`ing 阅读(1194) 评论(0) 推荐(0)
摘要: const arr1 = [ '/router1/tricc1', '/router1/tricc2', '/router2/tricc1', '/router2/tricc2', '/router3/tricc1', '/router3/tricc2', ] const arr2 = [ 'rou 阅读全文
posted @ 2022-12-08 16:29 Qing`ing 阅读(71) 评论(0) 推荐(0)
摘要: function addQueryString(params) { let str = ''; for (const Key in params) { str += Key + '=' + params[Key] + '&'; } // return '' + str; return '' + st 阅读全文
posted @ 2022-12-08 16:24 Qing`ing 阅读(87) 评论(0) 推荐(0)