摘要: npm add vue-template-compiler // npm upgrade –latest vue-template-compiler 阅读全文
posted @ 2023-06-30 17:46 热心市民宗某§ 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 1、定义数据 optionsisAgent: [ //事项咨询 群众标识 { id: '1630396469564334081', name: '高危', url: require('@/assets/err.png') }, { id: '1630396631468662786', name: ' 阅读全文
posted @ 2023-06-07 10:33 热心市民宗某§ 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 根据arr数组里面的对象的相同type值去重 const res = new Map(); let objArr = arr.filter( (arr) => !res.has(arr.type) && res.set(arr.type, 1) ) 阅读全文
posted @ 2023-05-26 10:17 热心市民宗某§ 阅读(3) 评论(0) 推荐(0) 编辑
摘要: http://echarts.zhangmuchen.top/#/detail?cid=xmdUcWohr8 关系图:http://www.relation-graph.com/#/options-tools 阅读全文
posted @ 2023-03-24 17:36 热心市民宗某§ 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1、下载好的字体文件放入src子目录文件text(名称随意) 2、text文件夹下包含字体文件和text.less文件 3、text.less文件: @font-face { font-family: "思源黑体"; src: url('./思源黑体\ CN\ Medium.otf'); } 4、m 阅读全文
posted @ 2023-03-17 15:42 热心市民宗某§ 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 1、定义好拖拽元素 ref标识,以及 row-key="id" (row-key拖拽标识,拖拽后数据不会乱, id为tableDataNew数据对象id) 2、下载cnpm install sortablejs --save 插件,并引入 import Sortable from 'sortable 阅读全文
posted @ 2023-02-15 13:24 热心市民宗某§ 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 例: let arr = [ { situationId: '666666666666666666666', cloundClass: '999', }, { situationId: '1608655741214162944', cloundClass: '123', }, { situation 阅读全文
posted @ 2023-01-17 13:30 热心市民宗某§ 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 1、建立webscoket.js: import Vue from 'vue' import { Message } from 'element-ui' let v = new Vue() v.$message = Message; var webSocket = null; var isConne 阅读全文
posted @ 2023-01-05 13:27 热心市民宗某§ 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 1、cnpm i vue-print-nb 2、触发事件:v-print="printObj" 3、触发的是个对象: printObj:{ id: 'print', //需要打印的盒子 popTitle: this.$route.query.matterName, //打印的文件名称title } 阅读全文
posted @ 2023-01-05 13:19 热心市民宗某§ 阅读(703) 评论(0) 推荐(0) 编辑
摘要: 1、在页面挂载钩子中写入,全局App文件 this.keepRatio() window.addEventListener('resize', () => { this.keepRatio() }); 2、定义禁止缩放函数 keepRatio() { var ratio = 0 // 定义一个缩放比 阅读全文
posted @ 2022-11-17 14:55 热心市民宗某§ 阅读(67) 评论(0) 推荐(0) 编辑