摘要: exportStatistics () { let usercode = getStorage('usercode') // url 为正常文件下载地址 return axios.get(`/hrssc/portal/plantform/prove/downloadPdf?typeId=0001&u 阅读全文
posted @ 2022-01-24 09:18 爱放屁的菜鸟 阅读(713) 评论(0) 推荐(0) 编辑
摘要: index.tsx import React from 'react'; import { BrowserRouter, HashRouter, Route, Link, NavLink, Switch, Redirect, } from 'react-router-dom'; import Hea 阅读全文
posted @ 2021-12-23 18:11 爱放屁的菜鸟 阅读(497) 评论(0) 推荐(0) 编辑
摘要: 问题如图所示(产生该问题的主要原因是因为本地的npm版本太高了) 解决办法对npm进行降级 npx -p npm@6 npm i --legacy-peer-deps 运行完后会生成一个 package-lock.json 的文件,该文件主要作用就是锁定安装包的版本号,以确保项目其他成员在npm i 阅读全文
posted @ 2021-12-02 14:39 爱放屁的菜鸟 阅读(7775) 评论(0) 推荐(2) 编辑
摘要: 第一步 先创建组件目录结构 第二步 封装组件 index.vue <template> <div class="tree-select-box"> <air-cell type="text" :label="label" :placeholder="placeholder" :downIcon="d 阅读全文
posted @ 2021-09-06 15:24 爱放屁的菜鸟 阅读(5961) 评论(1) 推荐(0) 编辑
摘要: 组件代码 <template> <div class="air-calendar-box"> <table class="sn-calendar-table"> <thead> <th class="fc-day-header">日</th> <th class="fc-day-header">一< 阅读全文
posted @ 2021-07-08 11:17 爱放屁的菜鸟 阅读(3274) 评论(0) 推荐(0) 编辑
摘要: 由于是老项目echarts版本太低,不符合设计要求,于是我想升级下echarts版本,可是这样又会导致原有的功能不兼容,于是我想到同时安装多个版本的echarts 首先安装最新版本的echarts npm install echarts5@npm:echarts@5 执行完之后,同时在node_mo 阅读全文
posted @ 2021-05-21 17:28 爱放屁的菜鸟 阅读(2759) 评论(1) 推荐(1) 编辑
摘要: 1、安装插件 npm install worker-loader --save-dev 2、配置vue.config.js module.exports = { configureWebpack: { module: { rules: [ { test: /\.worker\.(c|m)?js$/i 阅读全文
posted @ 2021-03-12 15:03 爱放屁的菜鸟 阅读(1744) 评论(0) 推荐(0) 编辑
摘要: let objs = { a: { text: 'a', b: { text: 'b', c: { text: 'c', d: { text: 'd' } } } } } function getText (name, obj = objs) { if (!name) return let keys 阅读全文
posted @ 2021-03-09 10:33 爱放屁的菜鸟 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 1、首先安装插件vue-i18n npm install vue-i18n --save-dev 2、创建文件 en.ts 文件内容 module.exports = { language: { name: '英文', }, about: { title: 'I am English', }, }; 阅读全文
posted @ 2021-03-02 11:24 爱放屁的菜鸟 阅读(2679) 评论(0) 推荐(0) 编辑
摘要: <el-form-item label="照片"> <el-upload v-if="operType !== 'details'" ref="upload" class="upload-demo" accept='.jpg,.png' :action="`${httpConfig.hashUrl} 阅读全文
posted @ 2021-02-24 10:00 爱放屁的菜鸟 阅读(426) 评论(0) 推荐(0) 编辑