摘要: downFileFn(record) { console.log(record) var x = new XMLHttpRequest() x.open('GET', record.fileUrl, true) x.responseType = 'blob' x.onload = function( 阅读全文
posted @ 2022-04-15 11:23 MonsterSATSUKI 阅读(76) 评论(0) 推荐(0)
摘要: <a-upload name="file" :file-list="fileList" :multiple="false" @change="changeFile" :custom-request="upLoadFileFn" > <a-button type="link"> <a-icon typ 阅读全文
posted @ 2022-04-15 11:14 MonsterSATSUKI 阅读(581) 评论(0) 推荐(0)
摘要: .ant-table-body { &::-webkit-scrollbar { height: 5px; width: 6px; } &::-webkit-scrollbar-thumb { border-radius: 10px; -webkit-box-shadow: inset 0 0 5p 阅读全文
posted @ 2022-04-08 11:01 MonsterSATSUKI 阅读(736) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-04-07 14:26 MonsterSATSUKI 阅读(38) 评论(0) 推荐(0)
摘要: 注意点1 less一定要是3版本, less-loader一定要是5版本 然后在vue.config.js配置 module.exports = { runtimeCompiler: true, css: { loaderOptions: { less: { javascriptEnabled: t 阅读全文
posted @ 2022-04-01 17:54 MonsterSATSUKI 阅读(185) 评论(0) 推荐(0)
摘要: 例 var a = 9.34545687897 console.log(a.toFixed(2)) 打印结果 阅读全文
posted @ 2022-03-30 09:17 MonsterSATSUKI 阅读(83) 评论(0) 推荐(0)
摘要: 控制台报ChunkLoadError错误,找不到相应的js文件,页面无法跳转 解决办法 检查许久,才发现是我把一个单独的页面的路由,写成与另外一个页面相类似的路由,虽然在本地是好好的 但是打包上线后便找不到该文件 然后我就把那个单独的出错的压面的路径改成与别的页面毫不相干的就解决啦 阅读全文
posted @ 2022-03-24 14:48 MonsterSATSUKI 阅读(126) 评论(0) 推荐(0)
摘要: // 导出 代码如下 exportExcel(url) { return axios.get(url, { responseType: 'blob' }).then(res => { // console.log('1--', res) // console.log(res.headers, res 阅读全文
posted @ 2022-03-16 09:32 MonsterSATSUKI 阅读(62) 评论(0) 推荐(0)
摘要: // 导入 importFiles(e, type) { if (e.target.files.length 0) return const file = e.target.files[0] if (!/\.xlsx$/g.test(file.name)) { message.info('仅支持读取 阅读全文
posted @ 2022-03-16 09:31 MonsterSATSUKI 阅读(44) 评论(0) 推荐(0)
摘要: // 代码如下 downLoadModel(type) { return axios.get('/water-api/excel/templateExport?type=' + type, { responseType: 'blob' }).then(res => { console.log('1- 阅读全文
posted @ 2022-03-16 09:29 MonsterSATSUKI 阅读(56) 评论(0) 推荐(0)