11 2022 档案

摘要:1、html <el-table :data="tableData" @selection-change="handleSelectionChange" class="my-table" :row-key="getRowKeys" border v-loading="loading" highlig 阅读全文
posted @ 2022-11-17 16:56 浮生如梦似离殇 阅读(820) 评论(0) 推荐(0)
摘要:const list = [ { id: 1, name: "手机1", orderNo: "6901443393268", sku: "51095BKR" }, { id: 2, name: "手机2", orderNo: "6901443393262", sku: "51095BBQ" }, { 阅读全文
posted @ 2022-11-14 17:19 浮生如梦似离殇 阅读(1139) 评论(0) 推荐(0)
摘要:/** * 下载文件以及自定义文件名称 */ const downFile = (url, fileName) => { const xhr = new XMLHttpRequest(); xhr.open("GET", url, true); xhr.responseType = "blob"; 阅读全文
posted @ 2022-11-02 17:25 浮生如梦似离殇 阅读(1454) 评论(0) 推荐(0)
摘要:let arr = [2, 3, 6, 7, 2, 5, 3]; /** * 找出数组中重复的数字。 * @param {*} arr */ const findRepeatNumber = (arr) => { let map = new Map(); for (let i of arr) { i 阅读全文
posted @ 2022-11-02 09:58 浮生如梦似离殇 阅读(175) 评论(0) 推荐(0)
摘要:1、递归方式 const list = [ { id: '001', name: '节点1' }, { id: '0011', parentId: '001', name: '节点1-1' }, { id: '00111', parentId: '0011', name: '节点1-1-1' }, 阅读全文
posted @ 2022-11-01 16:45 浮生如梦似离殇 阅读(624) 评论(0) 推荐(0)
摘要:1、封装权限指令permission import { useRoutesStore } from "@/store/modules/routes"; export const permission = { mounted(el, binding) { const routesStore = use 阅读全文
posted @ 2022-11-01 14:00 浮生如梦似离殇 阅读(215) 评论(0) 推荐(0)