摘要: 首先最重要的是安装对应版本的swiper和vue-awesome-swiper,不然会有坑。 我安装的是"swiper": "^4.5.1","vue-awesome-swiper": "^3.1.3"。 然后引入 import "swiper/dist/css/swiper.css"; impor 阅读全文
posted @ 2022-01-07 14:53 闰土的土 阅读(1836) 评论(0) 推荐(0) 编辑
摘要: 关于自定义图标 是想在地图上根据经纬度标记点,然后点显示为某logo找了很久没有找到自定义图片的方法,后来想到利用散点图去实现,把图片转为base64利用symbol实现自定义图标。 series: [{ name: '',//series名称 type: 'scatter',//为散点类型 coo 阅读全文
posted @ 2021-12-22 17:18 闰土的土 阅读(1271) 评论(0) 推荐(0) 编辑
摘要: 来源:http://www.ruoyi.vip/ import Vue from 'vue' import SvgIcon from '@/components/SvgIcon'// svg component // register globally Vue.component('svg-icon 阅读全文
posted @ 2021-11-12 16:59 闰土的土 阅读(995) 评论(0) 推荐(0) 编辑
摘要: export function UpLoadImg(file) { console.log(file) const param = new FormData() // 创建form对象 param.append('image', file) // 通过append向form对象添加数据 const 阅读全文
posted @ 2021-11-04 14:11 闰土的土 阅读(21) 评论(0) 推荐(0) 编辑
摘要: request.js /* * @Description: * @Author: Nan * @Date: 2021-04-15 09:24:13 * @LastEditors: nanJ * @LastEditTime: 2021-09-17 15:20:28 * @FilePath: \arch 阅读全文
posted @ 2021-11-04 14:08 闰土的土 阅读(305) 评论(0) 推荐(0) 编辑
摘要: requestService.js import axios from "axios"; import _ from "lodash"; import qs from "qs"; var service = axios.create({ timeout: 40000, headers: { "Con 阅读全文
posted @ 2021-11-04 14:05 闰土的土 阅读(557) 评论(0) 推荐(0) 编辑
摘要: down.js/** * @url 下载地址 * @filename 所需要的文件名称 */ import { getToken } from '@/utils/auth' import { Message } from 'element-ui' export function downFile(u 阅读全文
posted @ 2021-11-04 13:59 闰土的土 阅读(131) 评论(0) 推荐(0) 编辑
摘要: <el-form-item class='fzfp' label='分值分配:' prop='fzfp'> <div v-if='preview'>{{ this.rowData.socreOptionValue }}</div> <div v-else> <el-row class='fzfp_r 阅读全文
posted @ 2021-10-28 10:06 闰土的土 阅读(785) 评论(0) 推荐(0) 编辑
摘要: module.exports = { root: true, parserOptions: { parser: 'babel-eslint', sourceType: 'module' }, env: { browser: true, node: true, es6: true, }, extend 阅读全文
posted @ 2021-10-25 09:32 闰土的土 阅读(123) 评论(0) 推荐(0) 编辑
摘要: uuid() { let s = []; let hexDigits = "0123456789abcdef"; for (let i = 0; i < 36; i++) { s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1); 阅读全文
posted @ 2021-08-09 14:04 闰土的土 阅读(104) 评论(0) 推荐(0) 编辑