08 2021 档案
摘要:背景:列表的详情页做tab,在router.config.js自定义路由; 使用TabLayout会默认缓存数据,tab切换不更新;所以需要在router.config.js, meta加上keepAlive: true在TabLayout.vue文件进行以下修改
阅读全文
摘要:项目需求: 数据没有经纬度,展示廊坊市地图;存在标记; <template> <div id='MapBox'> <div class='mapDiv' :id='params.id' ref="mapShow"></div> </div> </template> <script> let tile
阅读全文
摘要:<!--引入需要的js和css--> <link rel="stylesheet" href="http://www.dituyi.com.cn/wmap/wmap.css"> <script src="http://www.dituyi.com.cn/wmap/wmap.js"></script>
阅读全文
摘要:main.js引入封装好的print import {print} from '@/components/print.js' Vue.prototype.print = print print.js 1 import printJS from 'print-js' 2 3 function remo
阅读全文
摘要://比较日期大小 function compareDate(checkStartDate, checkEndDate) { var arys1= new Array(); var arys2= new Array(); if(checkStartDate != null && checkEndDat
阅读全文
摘要:$.validator.addMethod("checkText",function(value,element,params){ var reg01 = /^[\u4e00-\u9fa5]+$/; return this.optional(element)||(reg01.test(value))
阅读全文