摘要: 版本信息 "@fullcalendar/angular": "^5.11.0", "@fullcalendar/common": "^5.11.0", "@fullcalendar/core": "^5.11.0", "@fullcalendar/daygrid": "^5.11.0", "@ful 阅读全文
posted @ 2023-05-23 09:21 宇智波copy 阅读(116) 评论(0) 推荐(0) 编辑
摘要: // 查状态 checkStatus(test_plan_info): void { const selectData = test_plan_info; // 过滤出和this.modelData中和test_plan_info中test_application_sample_no相等的数据 co 阅读全文
posted @ 2023-05-23 09:18 宇智波copy 阅读(7) 评论(0) 推荐(0) 编辑
摘要: let month = value.month.split('-'); // value 2020-1 let paramsStartTime = ''; let paramsEndTime = ''; paramsStartTime = month[0] + '-' + month[1] + '- 阅读全文
posted @ 2022-09-08 17:49 宇智波copy 阅读(36) 评论(0) 推荐(0) 编辑
摘要: public ngAfterViewInit(): void { this.autoFitScreen(); window.addEventListener('resize', this.autoFitScreen);// 此处this指向window } public ngOnDestroy(): 阅读全文
posted @ 2022-08-26 15:31 宇智波copy 阅读(100) 评论(0) 推荐(0) 编辑
摘要: <div class="ringlike-chart" echarts [options]="options" (chartInit)="onChartInitOne($event)"></div> // 初始化 public onChartInitOne(value: any): void { t 阅读全文
posted @ 2022-08-25 18:56 宇智波copy 阅读(151) 评论(0) 推荐(0) 编辑
摘要: // map() 方法创建一个新数组,其结果是该数组中的每个元素都调用一个提供的函数后返回的结果。 let city = { beijing: 100, shanghai: 200, nanjin: 300, } // wantResult [{name:'beijing',value:100},{ 阅读全文
posted @ 2022-08-22 22:33 宇智波copy 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 树节点跳转 public toTreeNode(position: string, level: number): void { const e = document.querySelectorAll('.container-compare-tree');// 获取dom const left = 阅读全文
posted @ 2022-04-12 16:57 宇智波copy 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 表同步滚动 public listenerScroll(): void { if (this.isListened) { return; } const e = document.querySelectorAll('.ant-table-body'); const left = e[0];// 左侧 阅读全文
posted @ 2022-04-12 16:56 宇智波copy 阅读(32) 评论(0) 推荐(0) 编辑
摘要: base64转blob // 'data:application/apollo-zstd;version=1.1.1;base64,' 注意一下,后端返回的base64 export function base64ToBlob(base64: string): Blob { if (!base64) 阅读全文
posted @ 2022-04-12 16:55 宇智波copy 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 计算字符串长度 let str = "我的aaaa1"; str.replace(/[\u0391-\uFFE5]/g,"aa").length; 截取字符串 \S:匹配任何非空白字符。 *:匹配前面的子表达式零次或多次。 match方法: const str='/leader-view/hospi 阅读全文
posted @ 2022-04-12 16:52 宇智波copy 阅读(15) 评论(0) 推荐(0) 编辑