摘要: vue路由 // 默认没有菜单 var isMenu = false // 路由跳转前触发 router.beforeEach((to, from, next) => { // 加载进度条开始 NProgress.start() // 去获取缓存中的用户信息 const info = vueCook 阅读全文
posted @ 2022-12-24 14:36 小万子呀 阅读(27) 评论(0) 推荐(0)
摘要: 1、建立一个公共的less变量文件 列如 src/publicStyle/varLess.less // src/publicStyle/varLess.less @layout_header: 50px; @layout_foot: 48px; @minWidth: 1366px; //屏幕最小宽 阅读全文
posted @ 2022-12-24 11:05 小万子呀 阅读(2457) 评论(0) 推荐(0)
摘要: 图层的查询条件 CQL_FILTER 直接通过某个值直接查询 列如 CQL_FILTER = `region_code = ${this.row.regionCode}` CQL_FILTER = 'region_code in (xxxx,xxxx,xxxx,xxxx)' 判断某一个地块是否存在某 阅读全文
posted @ 2022-12-24 10:10 小万子呀 阅读(214) 评论(0) 推荐(0)
摘要: watchStyle () { const el_class_parent = document.querySelector('要监听的元素') const observer = new MutationObserver(callback) var that = this function call 阅读全文
posted @ 2022-12-20 16:44 小万子呀 阅读(26) 评论(0) 推荐(0)
摘要: ## Elementui form自定义正则 ```javascript businessCertNo: [ { required: true, message: '请输入xxxxxxx', trigger: 'blur' }, { validator: reg_businessCertNo, tr 阅读全文
posted @ 2022-12-20 16:38 小万子呀 阅读(71) 评论(0) 推荐(0)
摘要: fetch(url).then(res => res.blob()).then(blob => { const a = document.createElement('a') document.body.appendChild(a) a.style.display = 'none' const ur 阅读全文
posted @ 2022-12-10 10:38 小万子呀 阅读(36) 评论(0) 推荐(0)
摘要: module.exports = function(data, filename, mime, bom) { var blobData = (typeof bom !== 'undefined') ? [bom, data] : [data] var blob = new Blob(blobData 阅读全文
posted @ 2022-12-10 09:00 小万子呀 阅读(142) 评论(0) 推荐(0)
摘要: 主要是通过定时器去设置margin-top的数据,然后动态push到数组最后面去并删除第一项 <template> <div> <div class="mian" @mouseenter="mouseenter" @mouseleave="mouseleave"> <div class="title 阅读全文
posted @ 2022-09-25 22:18 小万子呀 阅读(60) 评论(0) 推荐(0)
摘要: ### 安装 ```javascript npm install postcss-pxtorem -D ``` ### 在utils文件夹中建立一个 rem.js文件 ```javascript // 基准大小 const baseSize = 32 // 设置 rem 函数 function se 阅读全文
posted @ 2022-09-24 14:33 小万子呀 阅读(39) 评论(0) 推荐(0)
摘要: //使用百度地图 <script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&type=webgl&ak=自己的key"></script> function gets () { var geolocation = 阅读全文
posted @ 2022-08-04 17:06 小万子呀 阅读(39) 评论(0) 推荐(0)