会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
云霄紫潭
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2021年9月10日
国际化全部整理
摘要: 新增il8n文件夹 包括: lang文件夹 i18n.js lang文件夹 en.js 英文 ja.js 日文 zh.js 中文 index.js //导出文件 import elementJaLocale from 'element-ui/lib/locale/lang/ja' // elemen
阅读全文
posted @ 2021-09-10 10:37 云霄紫潭
阅读(134)
评论(0)
推荐(0)
2021年7月28日
按钮权限
摘要: 第一步: 将需要权限管理的按钮处理成图所示结构: 第二步:编写指令 import store from '@/store' export default { install(Vue) { Vue.directive('permission', { inserted(el, binding) { co
阅读全文
posted @ 2021-07-28 11:29 云霄紫潭
阅读(106)
评论(0)
推荐(0)
树形结构操作
摘要: 删除树形结构第三层孩子 /** * @method 去除树形结构按钮权限 * @param {Array} data 原始权限数组 * @return {Array} 去除按钮权限的数组 */ export function filterData(data) { // 到叶子节点了,返回,递归出口
阅读全文
posted @ 2021-07-28 11:27 云霄紫潭
阅读(111)
评论(0)
推荐(0)
2021年6月15日
基本类型数据封装
摘要: export const sexList = [ { dictId:0, dictName:'男', dictValue:'0', dictType:'sex', dictyDescription:'性别' }, { dictId:0, dictName:'男', dictValue:'0', di
阅读全文
posted @ 2021-06-15 16:43 云霄紫潭
阅读(109)
评论(0)
推荐(0)
sessionStorage 封装
摘要: const TokenKey = "THIS_SESSION-STORAGE_NOT_DEL" **读取** export function getToken(){ return sessionStorage.getItem(TokenKey) } **设置** export function se
阅读全文
posted @ 2021-06-15 16:39 云霄紫潭
阅读(274)
评论(0)
推荐(0)
2021年6月1日
博客园安装markDown编辑器
摘要: 摘自: https://www.cnblogs.com/ggymx/p/12198506.html https://highlightjs.org/static/demo/ https://github.com/highlightjs/highlight.js const PI = 3.14;
阅读全文
posted @ 2021-06-01 17:26 云霄紫潭
阅读(76)
评论(0)
推荐(0)
2021年5月28日
数组对象去重
摘要: /** * @method 数组去重 * @param {Array} ary 需要去重的数组 * @return {Array} tableData 去重后的数组 */ delRepeatData(ary) { let obj = {}; let tableData = []; tableData
阅读全文
posted @ 2021-05-28 14:00 云霄紫潭
阅读(76)
评论(0)
推荐(0)
G6策略树
摘要: //G6组件 <template> <div id="container" :style="{ height: '500px', width: '100%' }" /> </template> <script> import G6 from '@antv/g6' export default { d
阅读全文
posted @ 2021-05-28 13:43 云霄紫潭
阅读(480)
评论(0)
推荐(0)
2021年5月18日
Vue的Excel表格上传解析与导出
摘要: 需要 安装 xlsx HTML <div> <el-upload action="222" accept=".xlsx,.xls" :auto-upload="false" :show-file-list="false" :on-change="hanlde" > <el-button size="
阅读全文
posted @ 2021-05-18 22:32 云霄紫潭
阅读(252)
评论(0)
推荐(0)
2021年5月14日
Vuex封装
摘要: index import Vue from 'vue' import Vuex from 'vuex' import getters from './getters' import 自定义 from './modules/user' //导入的modules 文件 Vue.use(Vuex) con
阅读全文
posted @ 2021-05-14 09:03 云霄紫潭
阅读(104)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告