上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 23 下一页
摘要: 1、参考数据 [ { id: 1, label: '一级 1', children: [ { id: 4, label: '二级 1-1', children: [ { id: 9, label: '三级 1-1-1', }, { id: 10, label: '三级 1-1-2', }, ], } 阅读全文
posted @ 2022-06-06 11:31 yw3692582 阅读(385) 评论(0) 推荐(0)
摘要: 1、只能输入数字: onkeyup="value = value.replace(/[^\d]/g,'')" 2、只能输入英文:onkeyup="value = value.replace(/[^a-zA-Z]/g,'')" 阅读全文
posted @ 2022-05-31 11:44 yw3692582 阅读(1170) 评论(0) 推荐(0)
摘要: 1、打包后dist文件夹下的index.html可以直接打开,需要修改的地方如下: -src/route/index.js, mode改为hash模式 -config/index.js, build对象下的 assetsPublicPath 改为 './', (ps:productionSource 阅读全文
posted @ 2022-05-09 10:58 yw3692582 阅读(318) 评论(0) 推荐(0)
摘要: 第一种方式(Mac终端):1、安装node.js:http://nodejs.cn/download/ 2、安装squoosh/cli:npx @squoosh/cli(这一步可以忽略) 3、如下: 通用:npx @squoosh/cli --mozjpeg '{"quality":75,"base 阅读全文
posted @ 2022-04-20 22:42 yw3692582 阅读(278) 评论(0) 推荐(0)
摘要: 封装echarts: function workOption({ work_condition_data, public_min, public_max, gauge_min, gauge_max, work_condition_unit, tem_unit, title, warn_line, } 阅读全文
posted @ 2022-03-31 08:52 yw3692582 阅读(1833) 评论(0) 推荐(0)
摘要: <template> <div class="model_box"> <div class="upload_bin"> <el-dialog width="400px" title="上传文件" :lock-scroll="true" :show-close="true" @close="cance 阅读全文
posted @ 2022-03-28 20:15 yw3692582 阅读(1886) 评论(0) 推荐(0)
摘要: template中:<el-select v-model="treeData" placeholder="请选择"> <el-option :value="treeValue" style="height: auto"> <el-tree :data="tree_list" default-expa 阅读全文
posted @ 2022-03-23 16:18 yw3692582 阅读(325) 评论(0) 推荐(0)
摘要: // 列表转树结构 list_to_tree() { let a = [ { id: 3, name: '测试3', up_id: 2, }, { id: 2, name: '测试2', up_id: 1, }, { id: 1, name: '测试1', up_id: null, }, ] let 阅读全文
posted @ 2022-03-22 16:19 yw3692582 阅读(720) 评论(0) 推荐(0)
摘要: 1、<embed id="station_svg" :src="station_svg" type="image/svg+xml" /> 2、let svg_dom = document.getElementById('station_svg').getSVGDocument() // 获取dom 阅读全文
posted @ 2022-03-18 09:19 yw3692582 阅读(938) 评论(0) 推荐(0)
摘要: 1、创建 websocket.js 文件 // 定义 websocket export default { ws: {}, setWs: function(newWs) { this.ws = newWs }, } 2、在main.js 中引入 import wsk from './utils/we 阅读全文
posted @ 2022-03-14 14:13 yw3692582 阅读(1908) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 23 下一页