自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 有关el-table设置列宽之后出现的问题

【代码】有关el-table设置列宽之后出现的问题。

2023-08-08 11:36:59 287

原创 根据两个数组重新排序

有关多个数组重新排序成一个数组

2023-02-16 17:34:48 148

原创 有关在vue同一个页面调用多个echarts图表warning

【代码】有关在vue同一个页面调用多个echarts图表warning。

2022-10-26 10:01:42 922

原创 级联选择器单选方法

级联选择器单选

2022-06-15 10:16:48 712

原创 有关打印预览时原生表格table的使用

打印预览使用table

2022-06-15 10:06:20 164

原创 有关element中pagenation组件的二次开发

有关pagenation的使用

2022-06-15 09:58:57 90

原创 有关lodop.js和CLodop服务

有关预览打印 需要下载clodop软件

2022-04-20 16:24:11 1334

原创 有关标准页面的组件方法

vue+element的搜索 表格 分页相结合组件

2022-04-19 09:44:55 185

原创 一个有关标准页面的问题

查询 表格 分页 布局使用

2022-04-18 17:05:44 146

原创 moment日期格式化

import moment from 'moment'import _ from 'lodash'function parseTimeInYmd (time) { if (_.isNil(time)) { return '' } return moment(time * 1000).format('YYYY-MM-DD')}function parseTimeInYmdHm (time) { if (_.isNil(time)) { return '' }

2021-12-15 15:28:24 278

原创 根据moment方法的日期格式方法

身份证校验 时间快速格式化

2021-12-15 15:13:52 1008

原创 根据年月判断当前月份的天数

// 根据年月判断日期 需要传入参数 年和月getDaysByYearAndMonth (year, month) {let isLeapYear = falseconst yearInfo = Number.parseInt(year)if (yearInfo % 400 === 0 ||(yearInfo % 4 === 0 && yearInfo % 100 !== 0)) {isLeapYear = true} let day = 0 const month

2021-11-15 16:51:18 386

原创 有关cubeUI中的toast使用

有关toast的调用

2021-11-10 09:22:08 862

原创 有关element中的loading加载

import { Loading } from ‘element-ui’let loadingComponentfunction show () {loadingComponent = Loading.service({ text: ‘拼命加载中’, background: ‘rgba(0, 0, 0, 0)’ })}function hide () {// 关闭loadingif (loadingComponent) {loadingComponent.close()loadingCom

2021-10-22 16:58:39 238

原创 有关文件下载的处理js

import dateUtil from ‘~/plugins/dateUtil’/**下载文件url 请求地址method: post getmethod=post时,传递data参数,method=get时,传递params参数setFileName为空时,默认设置文件名*/function createElementToExportFile (url, method, params, data, setFileName, axios) {axios({url,responseT

2021-10-22 16:44:58 82

原创 有关vant-ui中toast的使用

import Vue from ‘vue’import { Toast, Dialog } from ‘cube-ui’import _ from ‘lodash’Vue.use(Toast, Dialog)function success (text) {Toast.$create({txt: text,type: ‘correct’,time: 1000}).show()}function error (text) {// eslint-disable-next-line no-

2021-10-20 11:08:08 1053

原创 有关时间格式的转换及身份证验证

需要moment.js lodash.jsimport moment from 'moment'import _ from 'lodash'function parseTimeInYmd (time) { if (_.isNil(time)) { return '' } return moment(time * 1000).format('YYYY-MM-DD')}function parseTimeInYmdHm (time) { if (_.isNil(time))

2021-09-22 16:36:32 200

原创 完成一半的charts

关于调用echartsimport echarts from 'echarts'// 折线图function initLineCharts () {}// 柱形图function initBarCharts (ele, xData, yData) {// ele是dom地址的ID值 xData是x轴数据 yData是y轴数据 const myCharts = echarts.init(document.querySelector(ele)) const option = {

2021-09-22 16:33:34 88

原创 有关element中的dropdown显示表格隐藏列的样式

组件dropdown<template> <el-dropdown size="small"> <el-button type="primary" size="small" icon="el-icon-circle-plus-outline"> 显示列 </el-button> <el-dropdown-menu> <el-checkbox v-model="checkAll" :inde

2021-09-22 15:57:45 279

原创 element中分页组件的优化

page-nation<template> <div align="right" style="margin-top: 10px;"> <el-pagination v-if="total>0" :page-sizes="pageSizes" :page-size="pageObj.pageSize" :current-page="pageObj.pageNum" layout="total, si

2021-09-22 15:40:27 173

原创 有关element中message提示及confirm的优化

有关element的message组件的优化// messsage.jsimport { Message, MessageBox } from 'element-ui'import _ from 'lodash'function success (text) { Message.success({ message: text, duration: 1000 })}function warning (text) { Message.warning({ mes

2021-09-22 15:35:28 534

原创 关于el-table的组件使用

子组件myTable<template> <el-table :data="tableData" size="small" border :cell-style="cellStyle" :header-cell-style="headerStyle" class="table" :max-height="tableHeight" @selection-change="handleSelection" >

2021-09-08 18:47:58 250

原创 对数组元素进行拆分

let arr = [{time: '2001-04-01'},{time: '2001-04-01'},{time: '2001-04-02'},{time: '2001-04-03'},{time: '2001-04-05'},{time: '2001-04-05'},{time: '2001-04-06'},]如何将上面数组按照日期不同拆成多个数组...

2020-04-29 14:45:04 764

原创 关于el-calendar

有没有关于el-calendar的使用,尤其是如何单击以后获取单个日期里面包含的信息

2020-03-23 11:58:08 907

原创 有关cube-ui中的cube-form里面的多行文本域无法使用的问题

<cube-form :model="model"> <cube-form-group> <cube-form-item :field="fields[0]"></cube-form-item> </cube-form-group></cube-form>data(){ return { textaraeVa...

2020-03-05 09:46:47 556 2

原创 有关el-menu的跳转问题

el-menu没有使用router跳转,而是使用window.location.href,能够跳转到当前导航,但是当前导航菜单没有打开`/**Created by Administrator on 2019/3/15.*/var UrlUtil = {getQueryString(name, route) {var reg = new RegExp("(^|&)" + nam...

2020-02-22 17:47:48 1814

原创 将数组的值赋值给对象

var arr=[1,2,3];var obj={};希望出现obj={ key0:1, key1:2, key2:3}

2020-02-22 14:48:44 2223 5

原创 vue项目无法启动

2020-02-07 19:20:44 1285 2

原创 关于在elementui中出现滚动条

<template> <div class="home"> <el-button @click="isShow=true" class="el-button--primary">显示对话框</el-button><!-- <HelloWorld msg="Welcome to Your Vue.js App"/>...

2019-12-23 10:44:33 2049

空空如也

空空如也

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

TA关注的人

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