流浪のwolf

卷帝

导航

2023年3月20日

C#学习

摘要: VS2022 安装 阅读全文

posted @ 2023-03-20 19:01 流浪のwolf 阅读(1) 评论(0) 推荐(0) 编辑

element在input的后面加上文字

摘要: 阅读全文

posted @ 2023-03-20 16:48 流浪のwolf 阅读(16) 评论(0) 推荐(0) 编辑

element输入天数,获取当前时间加上天数 【时间获取】

摘要: handleInput (val) { // console.log(this.formModel.ITEM_PM) if (!(/[^\d]/g).test(val)) { // console.log('非数字') // 当前时间加上PM天数 console.log(val) let now = 阅读全文

posted @ 2023-03-20 13:33 流浪のwolf 阅读(17) 评论(0) 推荐(0) 编辑

element设置table某个列的样式

摘要: <el-table style="width: 100%;" height="250" :data="tableData" border size="mini" ref="multipleTable" :header-cell-style="{ background: '#80c1e2', colo 阅读全文

posted @ 2023-03-20 13:31 流浪のwolf 阅读(11) 评论(0) 推荐(0) 编辑

element的upload 图片上传主函数

摘要: /** 图片上传 */ async UploadImage (event, file, filelist) { // 清空坐标 this.formModel.ITEM_XY = [0, 0] this.imgX = 0 this.imgY = 0 let fd = new FormData() fd 阅读全文

posted @ 2023-03-20 13:30 流浪のwolf 阅读(10) 评论(0) 推荐(0) 编辑

element的图片上传预处理函数

摘要: /** 图片格式和大小的控制 */ beforeAvatarUpload (file) { // 允许上传 jpg 和 png 格式的图片 const isJPG = file.type "image/jpeg" || file.type "image/png" // 限制图片的大小 2 MB co 阅读全文

posted @ 2023-03-20 13:29 流浪のwolf 阅读(19) 评论(0) 推荐(0) 编辑