上一页 1 2 3 4 5 6 7 ··· 19 下一页
摘要: const requiredProps = ['legalEntityId', 'businessSegmentId', 'counterpartyId'] requiredProps.forEach(prop => { this.$refs?.formData?.resetFormItemRule 阅读全文
posted @ 2024-07-23 14:11 泽泽生龙 阅读(18) 评论(0) 推荐(0)
摘要: const loading = this.$loading({ lock: true, text: '下载中...', spinner: 'el-icon-loading' }) batchDownload(params).then((res) => { //res格式:{data:二进制文件流 f 阅读全文
posted @ 2024-07-16 17:14 泽泽生龙 阅读(18) 评论(0) 推荐(0)
摘要: 金仕达 页面切换标签,页面刷新重新加载,是由于路由问题,路由应全部小写,不应有大小写 阅读全文
posted @ 2024-06-26 09:30 泽泽生龙 阅读(12) 评论(0) 推荐(0)
摘要: 1:插入数据 ,如果是插入数组,则循环插入 new Promise(resolve => { const promises = [] rows.forEach( () => { promises.push(createUID()) } ) this.dialogVisible = false Pro 阅读全文
posted @ 2024-06-19 10:05 泽泽生龙 阅读(12) 评论(0) 推荐(0)
摘要: this.$dayjs(systemData.date).add(-6, 'month').format('YYYY-MM-DD') moment().startOf('month').format('YYYY-MM-DD') moment().format('YYYY-MM-DD') 阅读全文
posted @ 2024-05-17 17:37 泽泽生龙 阅读(6) 评论(0) 推荐(0)
摘要: // 千分位分隔符 amountFormat(num, format = 2) { num = Number(num).toFixed(format) return Number(num).toLocaleString('zh', { minimumFractionDigits: format }) 阅读全文
posted @ 2024-05-16 10:28 泽泽生龙 阅读(10) 评论(0) 推荐(0)
摘要: moment.js day.js 阅读全文
posted @ 2024-05-08 15:26 泽泽生龙 阅读(8) 评论(0) 推荐(0)
摘要: templateDownload(param).then((res) => { const blob = new Blob([res.data], { type: 'application/octet-stream;charset=utf-8' }) const url = window.URL.c 阅读全文
posted @ 2023-08-14 13:34 泽泽生龙 阅读(27) 评论(0) 推荐(0)
摘要: 1:切换tag,页面刷新, 检查了路由, 配置了 nocache:false, 以及 isKeep:true, 但是在页面tag切换时,还是会刷新,, 在生命周期中打印, 发现能够打印,, 检查了代码,在组件引用中未发现v-if的使用, 最后竟查找,借鉴 https://blog.csdn.net/ 阅读全文
posted @ 2023-07-29 16:47 泽泽生龙 阅读(1834) 评论(0) 推荐(0)
摘要: 在vue项目中,经常会切换tag,或者刷新页面。导致路由中的数据丢失, 可以使用以下方法 1:将需要缓存的数据 存在stroge(session,local)中,这样即使页面刷新也不会丢失 2:将数据保存在url中,eg: { name: 'zlgmmasterdataedit', path: 'z 阅读全文
posted @ 2023-07-27 15:39 泽泽生龙 阅读(1110) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 19 下一页