摘要: 以0点到12点为例,可以选择的维度为分钟 1.引入element 2.插入滑块组件 <el-slider v-model="workTime" range show-stops :step="1" :max="720" :marks="marks" :format-tooltip="formatTo 阅读全文
posted @ 2021-04-08 11:35 猩猩侠 阅读(2519) 评论(0) 推荐(0) 编辑
摘要: 1.获取后端返回的二进制流//安装xlsx插件 npm install xlsx -s //在页面引入xlsx impory XLSX from 'xlsx' //如果是axios请求,responseType需要设置为arraybuffer //获取并处理返回的信息 let data = new 阅读全文
posted @ 2021-04-01 14:44 猩猩侠 阅读(481) 评论(0) 推荐(0) 编辑
摘要: //在build/utils.js文件中添加如下代码 阅读全文
posted @ 2021-02-04 16:49 猩猩侠 阅读(99) 评论(0) 推荐(0) 编辑
摘要: //需要让页面滑动到指定位置//首先给元素添加id属性或其他可以获取元素的属性//通过scrollIntoView方法实现页面跳转 document.getElementById(id).scrollIntoView({ behavior: "smooth" }); element.scrollIn 阅读全文
posted @ 2021-02-04 16:27 猩猩侠 阅读(4078) 评论(0) 推荐(1) 编辑
摘要: dayjs是一个轻量级的处理时间和日期的js库。 dayjs的优点:超小的压缩体积,大多数浏览器兼容,提供链式操作。 1.安装 npm install dayjs --save import dayjs from 'dayjs' dayjs()的返回值都是新的dayjs对象 2.常用API //包含 阅读全文
posted @ 2021-01-05 16:52 猩猩侠 阅读(1062) 评论(0) 推荐(0) 编辑
摘要: 使用encodeURI方法处理路径。 encodeURI() 函数可把字符串作为 URI 进行编码。 阅读全文
posted @ 2020-11-09 18:12 猩猩侠 阅读(149) 评论(0) 推荐(0) 编辑
摘要: var excel = layui.excel;//引入插件 dataTable.unshift({ title: "标题", outline: "摘要", content: "内容", keywords: "关键词" }); excel.setExportCellStyle(dataTable, 阅读全文
posted @ 2020-11-09 18:10 猩猩侠 阅读(1092) 评论(0) 推荐(0) 编辑
摘要: 一、安装vue-json-excel插件 npm install vue-json-excel 项目main.js文件引入 import Vue from 'vue' import JsonExcel from 'vue-json-excel' Vue.component('downloadExce 阅读全文
posted @ 2020-10-27 17:49 猩猩侠 阅读(171) 评论(0) 推荐(0) 编辑
摘要: vue项目报错 export default { components: { Breadcrumb, Hamburger, ErrorLog, Screenfull,//最后一个不需要写逗号,eslint样式 }, } 阅读全文
posted @ 2020-10-23 09:40 猩猩侠 阅读(15486) 评论(1) 推荐(0) 编辑
摘要: 错误原因:两个IP不同 解决方法:host改为localhost proxyTable: { '/conference': { target: 'http://132.230.158.38:8000/conference', pathRewrite: { '^/conference': '/' } 阅读全文
posted @ 2020-10-21 14:40 猩猩侠 阅读(1277) 评论(0) 推荐(0) 编辑