自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 element中table变色

需求为超时或即将预期 超过三天为超时 超过两天不超过三天为即将预期1. el-table添加:row-class-name="tableRowClassName"改变class来改变样式2. 添加方法// 变色 tableRowClassName({ row, rowIndex }) { const time = Number(this.overtime(row.updateTime, new Date())); if (time >= 3) {

2021-05-07 15:34:21 242

原创 vue+element实现动态面包屑

1. vuex添加2. CommonHeader.vue<template> <el-breadcrumb separator="/" > <el-breadcrumb-item v-for="(item, index) in $store.state.breadcrumb" :key="index" :to="item.path" > <span style="color:#00

2021-05-07 15:00:55 485

原创 vue中过滤器filter的使用

1. src下添加filters文件夹 里添加index.js文件用来写公共的方法2. main.js中加import * as filters from './filters';Object.keys(filters).forEach((key) => { Vue.filter(key, filters[key]);});3. 引用第一个参数 | 方法名(第二个参数,第三个参数)时间差方法// 时间差export const TimeDifference = (beg

2021-05-07 14:45:17 219

原创 vue+element table 合并列

vue+element table 合并列<el-table ref="multipleTable" v-loading="listLoading" :data="tableData" tooltip-effect="dark" :header-cell-style="{background:'#eff3f6'}" :height="system.innerHeight-130-searchBoxHeight-75"

2021-03-24 10:18:54 431

原创 Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.解决办法

Error: Can't find Python executable "python", you can set the PYTHON env variable.解决办法解决办法安装windows-build-tools(以管理员身份打开cmd)npm install --global --production windows-build-tools安装node-gypnpm install --global node-gyp...

2021-01-09 21:48:07 94

原创 vue+element解决浏览器填充账号密码

这里写自定义目录标题input框 添加 auto-complete=“new-password” 完美解决

2020-12-30 18:27:43 403

原创 vue+element实现table+分页

1. template分页<el-pagination :page-size="fileListFrom.pageSize" :current-page="fileListFrom.pageNum" :page-sizes="[10, 50, 100, 200, 300, 500, 1000]" layout="total, sizes, prev, pager, next, jumper" :total="fileListFrom.total" @size-c

2020-12-29 18:37:27 972

原创 vue脚手架实现a标签下载文件

vue脚手架a标签上传下载文件1.template直接加<a :href="`${$store.state.fileUrl}${item.filePath}`" :download="item.fileOldName"> {{ item.fileOldName }} <i class="el-icon-download" style="float: right;line-height:30px" /></a>2.在meth

2020-12-29 18:15:40 594

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除