摘要: 原代码 let dom = <el-dialog title="详细信息" visible={ this.dialogshow } cancel:false width="600px"> <el-form model={ this.ruleForm } rules={this.rules} ref= 阅读全文
posted @ 2023-02-10 11:16 2han9x1nyun 阅读(280) 评论(0) 推荐(1)
摘要: [{Col:2,Row:3,Lay:1},{Col:1,Row:1,Lay:1},{Col:1,Row:2,Lay:4}] 简略数据格式如上,用sort方法排序 data.Result.sort((a,b)=>{ if(a.Row!==b.Row){ return a.Row-b.Row } els 阅读全文
posted @ 2022-11-21 13:56 2han9x1nyun 阅读(74) 评论(0) 推荐(0)
摘要: <el-date-picker vModel={ this.EndTime } value-format="yyyy-MM-dd" type="date" placeholder="结束时间" style="width:130px;" placement={'bottom-start'} on-ch 阅读全文
posted @ 2022-11-10 14:56 2han9x1nyun 阅读(100) 评论(0) 推荐(0)
摘要: 1.先在项目根目录npm install crypto-js 2.在common目录下新建一个encrypt.js文件 3.引入包并写加解密方法 import CryptoJS from 'crypto-js' let keyStr=''//加密秘钥 let ivStr='' export defa 阅读全文
posted @ 2022-09-21 17:18 2han9x1nyun 阅读(1983) 评论(0) 推荐(0)
摘要: 在manifest.json的源码视图中加入 "optimization": { "subPackages": true }, 配置 可将分包中使用的组件放到分包中 再加上 勾选压缩代码。 阅读全文
posted @ 2022-09-16 15:46 2han9x1nyun 阅读(238) 评论(0) 推荐(0)
摘要: webgl公共函数包.rar下载 阅读全文
posted @ 2022-09-16 13:12 2han9x1nyun 阅读(14) 评论(0) 推荐(0)
摘要: 先调通接口,后端一般会返回给我们这样的数据格式。下图的File及为base64字符串,FileName为文件名 首先,我们先将base64转换为blob类型(blob是一个长度可变的二进制大对象字符串) dataURLtoBlob(dataurl,name) { var mime = name.su 阅读全文
posted @ 2022-06-10 14:25 2han9x1nyun 阅读(1521) 评论(0) 推荐(0)
摘要: 在一个大屏项目中,需求需要把echarts图轮播起来,于是我再echarts画板外又套用了一层swiper轮播插件。 除了echarts的点击效果失效外,在swiper的loop属性设置为true时,轮播图的第一块slide和最后一块slide都会出现无法渲染的问题 点击效果本文暂时不谈,着重解决无 阅读全文
posted @ 2022-05-27 13:13 2han9x1nyun 阅读(1050) 评论(0) 推荐(0)
摘要: 根据报错的意思,可以了解到是chosseimge的传参sizeType有问题 sizeType有两个参数: sizeType: () => ['original','compressed'], original代表着原图 compressed代表这压缩后的图, 安卓手机上的原图original的参数 阅读全文
posted @ 2022-04-18 14:55 2han9x1nyun 阅读(999) 评论(0) 推荐(0)
摘要: 因为使用jsx的写法 <el-tree ref="myTree" data={this.tagtree} props={this.defaultProps} on-node-click={this.handleNodeClick} current-node-key={this.currentNode 阅读全文
posted @ 2022-03-29 13:45 2han9x1nyun 阅读(2387) 评论(0) 推荐(0)