摘要: 新增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 云霄紫潭 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 第一步: 将需要权限管理的按钮处理成图所示结构: 第二步:编写指令 import store from '@/store' export default { install(Vue) { Vue.directive('permission', { inserted(el, binding) { co 阅读全文
posted @ 2021-07-28 11:29 云霄紫潭 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 删除树形结构第三层孩子 /** * @method 去除树形结构按钮权限 * @param {Array} data 原始权限数组 * @return {Array} 去除按钮权限的数组 */ export function filterData(data) { // 到叶子节点了,返回,递归出口 阅读全文
posted @ 2021-07-28 11:27 云霄紫潭 阅读(92) 评论(0) 推荐(0) 编辑
摘要: export const sexList = [ { dictId:0, dictName:'男', dictValue:'0', dictType:'sex', dictyDescription:'性别' }, { dictId:0, dictName:'男', dictValue:'0', di 阅读全文
posted @ 2021-06-15 16:43 云霄紫潭 阅读(81) 评论(0) 推荐(0) 编辑
摘要: const TokenKey = "THIS_SESSION-STORAGE_NOT_DEL" **读取** export function getToken(){ return sessionStorage.getItem(TokenKey) } **设置** export function se 阅读全文
posted @ 2021-06-15 16:39 云霄紫潭 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 摘自: 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 云霄紫潭 阅读(54) 评论(0) 推荐(0) 编辑
摘要: /** * @method 数组去重 * @param {Array} ary 需要去重的数组 * @return {Array} tableData 去重后的数组 */ delRepeatData(ary) { let obj = {}; let tableData = []; tableData 阅读全文
posted @ 2021-05-28 14:00 云霄紫潭 阅读(56) 评论(0) 推荐(0) 编辑
摘要: //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 云霄紫潭 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 需要 安装 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 云霄紫潭 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 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 云霄紫潭 阅读(78) 评论(0) 推荐(0) 编辑