上一页 1 2 3 4 5 6 7 8 9 10 ··· 22 下一页
摘要: /** * @param {Array} sourceData 原始数据(必选) * @param {String} keyName 单条数据中的唯一标识符字段名(必选) * @param {String} parentKeyName 单条数据中的上级唯一标识符的字段名(必选) * @return 阅读全文
posted @ 2022-06-09 09:41 yw3692582 阅读(73) 评论(0) 推荐(0) 编辑
摘要: /** * @param {Array} dataList 完整数据(必传) * @param {Sting/Int} keyName 对哪个字段进行与targetID对比(必传) * @param {Sting/Int} targetID 目标数据的唯一标识符(必传) * @param {Stin 阅读全文
posted @ 2022-06-06 13:31 yw3692582 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(366) 评论(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 阅读(1132) 评论(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 阅读(288) 评论(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 阅读(220) 评论(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 阅读(1645) 评论(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 阅读(1602) 评论(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 阅读(312) 评论(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 阅读(707) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 22 下一页