摘要: 思路: 第一步:在公共的css文件里面设置class类名,并添加要修改得样式。 第二步:在要修改控制的组件里,生命周期mounted中给要修改样式的DOM添加class类名。(此步可能涉及到异步。) 具体实现:common.css 阅读全文
posted @ 2020-07-27 14:55 Action_swt 阅读(540) 评论(0) 推荐(0) 编辑
摘要: 控制台输出。fetch("https://m.jiahuaduola.com/api/app/json",{ method:"POST", headers:{'content-type': 'application/json'}, mode: 'cors', body:JSON.stringify( 阅读全文
posted @ 2020-07-27 13:54 Action_swt 阅读(636) 评论(0) 推荐(0) 编辑
摘要: 第一次搜索查询到多页数据,此时点击第二页数据(举例,非第一页),再次改变搜索条件,查询到多页数据时,此时分页的页号显示还是上次查询的页数 第二页。但是实际上第二次查询是第一页的数据,此时并没没有更新分页组件的当前页数。 此bug是element UI分页组件的bug。 解决思路是当点击查询的时候,再 阅读全文
posted @ 2020-07-27 13:33 Action_swt 阅读(751) 评论(0) 推荐(0) 编辑
摘要: function getBase64 (file) { return new Promise(function (resolve, reject) { let reader = new FileReader() let imgResult = '' reader.readAsDataURL(file 阅读全文
posted @ 2020-07-27 11:55 Action_swt 阅读(1471) 评论(0) 推荐(0) 编辑
摘要: import Vue from 'vue' import axios from 'axios' Vue.prototype.$download = function download(url,param) { axios.get(url, { responseType: 'blob', params 阅读全文
posted @ 2020-07-27 11:37 Action_swt 阅读(664) 评论(0) 推荐(0) 编辑
摘要: 第一步:开启表格的高亮显示配置属性。highlight-current-row 第二步:全局引入css /* 用来设置当前页面element全局table 选中某行时的背景色*/ .container .el-table__body tr.current-row>td{ background-col 阅读全文
posted @ 2020-07-27 10:58 Action_swt 阅读(2159) 评论(0) 推荐(0) 编辑