摘要: 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) 编辑
摘要: .ms-title { width: 200px; line-height: 50px; text-align: center; font-size: 20px; color: #fff; margin:0 auto; background-image: -webkit-linear-gradien 阅读全文
posted @ 2020-07-24 10:25 Action_swt 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 解决方法:安装 "babel-polyfill" 1、命令:cnpm install --save-dev babel-polyfill 2、在入口main.js文件引入:import 'babel-polyfill',放页面顶部最好。 3、在build文件夹下找到webpack.base.conf 阅读全文
posted @ 2020-07-23 10:51 Action_swt 阅读(721) 评论(0) 推荐(0) 编辑
摘要: var str = '2016060520103600466'; var str=str.replace(/\s/g,'').replace(/(.{4})/g,"$1 "); 阅读全文
posted @ 2020-07-22 13:54 Action_swt 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 公共样式添加样式。 状态添加。。。。 阅读全文
posted @ 2020-07-21 15:25 Action_swt 阅读(299) 评论(0) 推荐(0) 编辑
摘要: chenkHandle(row){ //原页打开 // this.$router.push({path:'/duocai/detail',query:{ checkType:row.id,role:"manger"}}); //新开页 let newUrl = this.$router.resolv 阅读全文
posted @ 2020-07-21 15:22 Action_swt 阅读(232) 评论(0) 推荐(0) 编辑
摘要: <!--日期start--> <el-form-item label="提交时间:"> <div class="block"> <!-- <span class="demonstration"></span> --> <el-date-picker value-format="yyyy-MM-dd" 阅读全文
posted @ 2020-07-21 13:25 Action_swt 阅读(1350) 评论(0) 推荐(0) 编辑