上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 21 下一页
摘要: 当使用echarts折线图时,每个数据会打点,在数据量小的时候,美观又快捷,但是当数据量过大时,会非常的卡,以及不美观 例如: series: { symbol:'circle', } 可以设置只在鼠标移入时打点 可以如下设置: series: { symbol:'circle', showSymb 阅读全文
posted @ 2021-03-12 15:39 sinceForever 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 原因:动态获取的数据,会出现这样的问题,例如我遇到的数据: 从后端动态获得的数据: let obj = { "2019-09-11 2:00:00": 181.95, "2019-09-11 13:00:00": 186.34, "2019-09-11 14:00:00": 194.06, "201 阅读全文
posted @ 2021-03-12 14:42 sinceForever 阅读(404) 评论(2) 推荐(1) 编辑
摘要: 我们在项目中,遇到echarts纵坐标自适应最大值与实际最大值相差太多,导致纵坐标太高 这个时候我们可以设置他的纵坐标的最大值 yAxis:{ max: function(value) { console.log("value",value.max) //正常情况下已经可以拿到最大值了,下面的处理是 阅读全文
posted @ 2021-03-12 14:38 sinceForever 阅读(3595) 评论(0) 推荐(0) 编辑
摘要: urlToBlob(swiperItem) { // let file_url = // 'http://obdataplatform-test.oss-cn-shenzhen.aliyuncs.com/2020_07_10/391f56b9-f4bc-408b-868b-31ea0f8b1b47. 阅读全文
posted @ 2021-02-04 16:10 sinceForever 阅读(679) 评论(0) 推荐(0) 编辑
摘要: <el-form-item label="附件" label-width="100px" prop="docsNew" ref="headimgUpload"> <div class="file-con"> <div :key="key" v-for="(i, key) in item.docsNe 阅读全文
posted @ 2021-02-04 16:07 sinceForever 阅读(674) 评论(0) 推荐(0) 编辑
摘要: // 同一项目,不同窗口切换时,也要执行进入方法 document.addEventListener('visibilitychange',function(){ if(document.visibilityState=='hidden') { // if(ws){ // ws.close(); / 阅读全文
posted @ 2020-12-29 15:46 sinceForever 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 页面加载时只执行onload 页面关闭时先执行onbeforeunload,最后onunload 页面刷新时先执行onbeforeunload,然后onunload,最后onload 刷新和关闭都会执行 window.onbeforeunload = async function(){ // deb 阅读全文
posted @ 2020-12-29 15:44 sinceForever 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 想要在一个页面级的组件内修改body的背景色或者背景图,但是直接在组件内部写样式会影响其他页面组件;此时只需要在该组件内如此设置: beforeCreate() { document.querySelector('body').setAttribute('style', 'background:#e 阅读全文
posted @ 2020-12-08 09:38 sinceForever 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 我的情况是本地项目是新建的vue项目,github上新建了一个同名的仓库 现在就是把本地的项目建立与github上建立联系,即将本地项目上传到github上去, 我的项目在建立vue项目的时候已经git初始化过了, 如果你的是普通的文件夹则需要执行 git init 我的其他项目命令行如下: git 阅读全文
posted @ 2020-11-26 16:10 sinceForever 阅读(71) 评论(0) 推荐(0) 编辑
摘要: vant环形进度条中间加图片 <template> <div> <van-circle v-model="currentRate" layer-color="#ccc" :rate="30" color="rgb(251 153 49)" size="180px" > <img :src="addI 阅读全文
posted @ 2020-11-25 14:15 sinceForever 阅读(1109) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 21 下一页