摘要: 1、小程序后台 → downloadFile 合法域名2、富文本 /mp-html/ 原生<video>:只要 URL 里出现中文、特殊字符、空格 ,真机直接黑屏 3、后端上传视频时:必须把文件名改成 纯英文 + 数字 + 下划线,视频文件名带中文 + 特殊符号 → 真机不识别! 4、对视频 URL 阅读全文
posted @ 2026-04-24 10:52 柠檬青味 阅读(9) 评论(0) 推荐(0)
摘要: exportByIds({ ids: this.multipleSelection }).then((response) => { const blob = new Blob([response]) const downloadElement = document.createElement('a' 阅读全文
posted @ 2022-02-22 08:50 柠檬青味 阅读(1055) 评论(0) 推荐(0)
摘要: 上传文件放在public文件夹下 <el-button type="primary" size="medium" icon="el-icon-upload2" style="margin-left: 20px;" @click.native="handleUpload('student')">批量导 阅读全文
posted @ 2022-02-07 11:08 柠檬青味 阅读(452) 评论(0) 推荐(0)
摘要: var date = new Date(); date .getYear(); //获取当前年份(2位) date .getFullYear(); //获取完整的年份(4位) date .getMonth(); //获取当前月份(0-11,0代表1月) date .getDate(); //获取当前 阅读全文
posted @ 2022-01-26 17:04 柠檬青味 阅读(12454) 评论(0) 推荐(0)
摘要: <el-input v-model="pitem.cheapPayMoney" :placeholder="`最大输入金额为${pitem.maxcheapPayMoney}元`" class="table-input" type="number" step="0.01" onkeyup="if(i 阅读全文
posted @ 2022-01-17 16:31 柠檬青味 阅读(862) 评论(0) 推荐(0)
摘要: // list数组分组 根据名字 const groupYear = this.groupBy(list, (item) => { return item.year// 按照year进行分组 }) groupBy(list, fn) { const groups = {} list.forEach( 阅读全文
posted @ 2022-01-17 16:06 柠檬青味 阅读(294) 评论(0) 推荐(0)
摘要: 后端返回的数据格式 转成el-tree接收的格式 // 树形结构数据转换 每个元素的 children 属性对应的 value 通过 pid 去找到,然后递归执行下去 arrToTree(arr, upperDeptId = '0') { const res = [] arr.forEach(ite 阅读全文
posted @ 2022-01-17 16:03 柠檬青味 阅读(984) 评论(0) 推荐(0)
摘要: //a.vue页面调用<user-detail ref="detailRef" :detail-visible="detailVisible" @changeShow="showDetail" /> //引入import UserDetail from './detail.vue' componen 阅读全文
posted @ 2022-01-17 15:59 柠檬青味 阅读(84) 评论(0) 推荐(0)
摘要: <el-table v-loading="loading" highlight-current-row :data="tableData" border style="width: 100%" @current-change="handleSelectChange"> <el-table-colum 阅读全文
posted @ 2022-01-17 15:54 柠檬青味 阅读(2222) 评论(0) 推荐(0)
摘要: this.ruleForm = Object.assign({},this.ruleForm,row) this.ruleForm = Object.assign([],this.ruleForm,row) 阅读全文
posted @ 2022-01-17 15:51 柠檬青味 阅读(82) 评论(0) 推荐(0)