会员
周边
众包
新闻
博问
闪存
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
云霄紫潭
博客园
首页
新随笔
联系
订阅
管理
2024年4月18日
element-ui 时间选择器
摘要: 需求: 时分秒的选择,限制选择:自当前时间6个月的内的时间 <el-date-picker v-model="duration" type="datetimerange" range-separator="~" :start-placeholder="this.$t('templateManager
阅读全文
posted @ 2024-04-18 17:16 云霄紫潭
阅读(261)
评论(0)
推荐(0)
2023年12月8日
element-ui 表格分页勾选数据
摘要: 新增 使用:row-key 编辑 主要是回显数据,如果使用 :row-key,会造成取消了,但是翻页后,无法取消的问题。 给表格使用 select 和 select-all 事件去选择 然后把选择的数据给请求,使用this.$refs.multipleTable.toggleRowSelection
阅读全文
posted @ 2023-12-08 11:10 云霄紫潭
阅读(174)
评论(0)
推荐(0)
2023年10月12日
有意思的校验
摘要: 碰到个有意思的校验: ['0 ~ 123','256 ~ 1024'] : 取值范围在:'0 ~ 123'和'256 ~ 1024' ['0 ~ 123', 255] :取值范围在:'0 ~ 123' 和 255 使用方法:
阅读全文
posted @ 2023-10-12 11:04 云霄紫潭
阅读(14)
评论(0)
推荐(0)
2023年7月26日
IPV6校验
摘要: https://www.cnblogs.com/sunliyuan/p/14378518.html
阅读全文
posted @ 2023-07-26 10:03 云霄紫潭
阅读(5)
评论(0)
推荐(0)
2023年6月7日
Notification和MessageBox封装
摘要: ### 1、导入文件 ```JavaScript import context from "@/main"; //导入this import { MessageBox, Notification, Message } from "element-ui"; ``` ### 2、Notification
阅读全文
posted @ 2023-06-07 18:00 云霄紫潭
阅读(67)
评论(0)
推荐(0)
文件下载
摘要: 方式一、 const url = 下载地址 window.location.href = url 方式二、 /** * @method excel下载 * @param {String} type 需要下载的文件类型 * @param {Object} res 文件流 * @param {Strin
阅读全文
posted @ 2023-06-07 17:50 云霄紫潭
阅读(36)
评论(0)
推荐(0)
2023年4月6日
websocket同步推送
摘要: 需求: 要求websocket推送状态, 是一秒切换一次 对websocket传来的数据进行校验 export function evalPushData(val) { const failList = [null, undefined, ""] if (failList.includes(val)
阅读全文
posted @ 2023-04-06 16:35 云霄紫潭
阅读(95)
评论(0)
推荐(0)
2022年11月9日
方法随笔
摘要: ```javascript //数组去重,挑选出非重复项 export function chooseNonRepeatingData(ar1, ar2) { const _arr1 = ar1.filter(item1 => !ar2.includes(item1)); const _arr2 =
阅读全文
posted @ 2022-11-09 10:21 云霄紫潭
阅读(57)
评论(0)
推荐(0)
2022年6月14日
关闭浏览器发送请求
摘要: import { getUserToken, getToken } from "@/utils/auth" export default { data() { return { beforeUnloadTime: "", gapTime: "", } }, mounted() { window.ad
阅读全文
posted @ 2022-06-14 10:44 云霄紫潭
阅读(183)
评论(0)
推荐(0)
2022年1月17日
唯一数
摘要: function genUuid(length) { const random = Date.now().toString(36); if (random.length > length) { return random.substr().substr(random.length - length,
阅读全文
posted @ 2022-01-17 09:21 云霄紫潭
阅读(87)
评论(0)
推荐(0)
下一页
公告