2024年7月23日
摘要: 1、二次封装Notification openMessageBox(val) { return new Promise((resolve, reject) => { const h = this.$createElement this.$msgbox({ title: '告警确认处理', showC 阅读全文
posted @ 2024-07-23 14:11 小虾米吖~ 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1、封装socketjs import store from '@/store'class socketIO { constructor() { this.socketTask = null this.is_open_socket = false //避免重复连接 this.is_show_Load 阅读全文
posted @ 2024-07-23 14:05 小虾米吖~ 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、根目录permission.js import VueSocketIO from "vue-socket.io"; import { getToken } from '@/utils/auth' router.beforeEach((to, from, next) => { NProgress. 阅读全文
posted @ 2024-07-23 14:01 小虾米吖~ 阅读(1) 评论(0) 推荐(0) 编辑
  2024年7月10日
摘要: 待更新 阅读全文
posted @ 2024-07-10 11:56 小虾米吖~ 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 注意事项: 1、关键点: 初始化蓝牙——》 uni.openBluetoothAdapter 获取本机蓝牙适配器状态——》uni.getBluetoothAdapterState 开始搜索蓝牙设备——》uni.startBluetoothDevicesDiscovery 监听蓝牙设备(或者蓝牙设备列 阅读全文
posted @ 2024-07-10 11:51 小虾米吖~ 阅读(56) 评论(0) 推荐(0) 编辑
  2024年6月28日
摘要: defaultSelect.js 目录 代码: export default { update(el, bindings) { const [defaultValues, selectValue] = bindings.value // 需要隐藏的标签索引 const indexs = [] sel 阅读全文
posted @ 2024-06-28 11:46 小虾米吖~ 阅读(15) 评论(0) 推荐(0) 编辑
  2024年6月27日
摘要: // 识别二维码 export default function(url){ return new Promise((resolve, reject) => { uni.previewImage({ urls: [url], longPressActions: { itemList: ['保存图片' 阅读全文
posted @ 2024-06-27 14:51 小虾米吖~ 阅读(12) 评论(0) 推荐(0) 编辑
摘要: // 压缩图片 export function compressImage(url,qa) { return new Promise((resolve, reject) => { const filenames = url.split('/') const name = "_doc/upload/" 阅读全文
posted @ 2024-06-27 14:49 小虾米吖~ 阅读(2) 评论(0) 推荐(0) 编辑
摘要: import store from '@/store' import config from '@/config' import { getToken } from '@/utils/auth' import errorCode from '@/utils/errorCode' import { t 阅读全文
posted @ 2024-06-27 14:47 小虾米吖~ 阅读(2) 评论(0) 推荐(0) 编辑
摘要: // 日期格式化 export function parseTime(time, pattern) { if (arguments.length 0 || !time) { return null } const format = pattern || '{y}-{m}-{d} {h}:{i}:{s 阅读全文
posted @ 2024-06-27 14:45 小虾米吖~ 阅读(2) 评论(0) 推荐(0) 编辑