会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yw3692582
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
23
下一页
2023年7月18日
axios封装的请求及拦截统一管理,和之前相比方便添加自定义请求头和超时
摘要: 1、api.js文件 import axios from 'axios' import { Message } from 'element-ui' const timeout = 5000 // 默认超时 const api = axios.create({ baseURL: '', // 设置AP
阅读全文
posted @ 2023-07-18 16:49 yw3692582
阅读(148)
评论(0)
推荐(0)
2023年5月25日
echarts通用
摘要: draw_chart(id) { let myCharts = this.$echarts.getInstanceByDom(document.getElementById(id)) if (myCharts == null) { myCharts = this.$echarts.init(docu
阅读全文
posted @ 2023-05-25 15:57 yw3692582
阅读(33)
评论(0)
推荐(0)
2023年5月12日
el-table模糊搜索
摘要: computed: { // 根据ip或盒子名称进行搜索 getSearchInfo() { let search = this.search if (search) { this.currpage = 1 this.currentPage = 1 return this.tableData.fil
阅读全文
posted @ 2023-05-12 16:46 yw3692582
阅读(68)
评论(0)
推荐(0)
2023年2月23日
echarts折线图Y轴自适应最大值和最小值
摘要: yAxis:{ ... max: val => { if (!y_max) return if (val.max > y_max) return val.max + 100 else return y_max + 100 }, min: val => { if (!y_min) return if
阅读全文
posted @ 2023-02-23 10:36 yw3692582
阅读(1502)
评论(0)
推荐(0)
2023年1月10日
el-table合并某个字段相同的项
摘要: 1、el-table添加span-method <el-table :data="table_data" id="out-table" :span-method="objectSpanMethod" style="width: 100%"> ... </el-table> 2、合并的方法 // 合并
阅读全文
posted @ 2023-01-10 20:34 yw3692582
阅读(948)
评论(0)
推荐(0)
2023年1月6日
legend分页
摘要: legend: { type: 'scroll', pageIconColor: 'white', //激活的分页按钮颜色 pageIconInactiveColor: 'white', //没激活的分页按钮颜色 pageTextStyle: { color: 'white', }, textSty
阅读全文
posted @ 2023-01-06 18:19 yw3692582
阅读(90)
评论(0)
推荐(0)
2022年12月1日
vue中导出PDF和图片
摘要: 1、安装:npm install html2canvas jspdf --save 2、创建:html2canvas.js 文件,内容如下: import html2Canvas from 'html2canvas' import JsPDF from 'jspdf' /** * @param {S
阅读全文
posted @ 2022-12-01 19:37 yw3692582
阅读(446)
评论(0)
推荐(0)
2022年11月17日
input只能输入纯数字
摘要: 公共: @blur="send_data.num = $event.target.value ? Number($event.target.value) : null" 不能输入小数点:oninput="value=value.replace(/[^\d]/g,'')" 可输入小数点:oninput
阅读全文
posted @ 2022-11-17 18:30 yw3692582
阅读(68)
评论(0)
推荐(0)
2022年11月7日
el-table固定表头
摘要: 前提:getTableMaxHeight.js /** * @param {Number} difference_height 需要减去的值 * @return {Number} table的最大高度值 */ function getTableMaxHeight(difference_height)
阅读全文
posted @ 2022-11-07 13:50 yw3692582
阅读(989)
评论(0)
推荐(0)
2022年11月2日
div可拖拽宽度
摘要: <template> <div class="x-handle" @mousedown="mouseDown"></div> </template> <script> export default { name: 'HandleEvent', data() { return { lastX: '',
阅读全文
posted @ 2022-11-02 11:24 yw3692582
阅读(107)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
23
下一页
公告