摘要: 点击标签关闭后返回空白页 原因是 路由的path 中包含 /see /add /edit 等,会被默认是新增编辑查看页面, 从而返回对应的列表页,返回空白页 阅读全文
posted @ 2024-08-05 15:16 泽泽生龙 阅读(2) 评论(0) 推荐(0) 编辑
摘要: this.data = this.data.filter((item, index, self) => { // 根据id 去重 return index self.findIndex(obj => obj.id item.id) }) 阅读全文
posted @ 2024-07-26 10:13 泽泽生龙 阅读(1) 评论(0) 推荐(0) 编辑
摘要: computed: { getsourceOfGoodsLabel() { return val => { return this.getLocationList.find(item => item.value == val)?.label } }, } 阅读全文
posted @ 2024-07-24 09:18 泽泽生龙 阅读(1) 评论(0) 推荐(0) 编辑
摘要: const requiredProps = ['legalEntityId', 'businessSegmentId', 'counterpartyId'] requiredProps.forEach(prop => { this.$refs?.formData?.resetFormItemRule 阅读全文
posted @ 2024-07-23 14:11 泽泽生龙 阅读(2) 评论(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 泽泽生龙 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 金仕达 页面切换标签,页面刷新重新加载,是由于路由问题,路由应全部小写,不应有大小写 阅读全文
posted @ 2024-06-26 09:30 泽泽生龙 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1:插入数据 ,如果是插入数组,则循环插入 new Promise(resolve => { const promises = [] rows.forEach( () => { promises.push(createUID()) } ) this.dialogVisible = false Pro 阅读全文
posted @ 2024-06-19 10:05 泽泽生龙 阅读(0) 评论(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 泽泽生龙 阅读(2) 评论(0) 推荐(0) 编辑
摘要: // 千分位分隔符 amountFormat(num, format = 2) { num = Number(num).toFixed(format) return Number(num).toLocaleString('zh', { minimumFractionDigits: format }) 阅读全文
posted @ 2024-05-16 10:28 泽泽生龙 阅读(2) 评论(0) 推荐(0) 编辑
摘要: moment.js day.js 阅读全文
posted @ 2024-05-08 15:26 泽泽生龙 阅读(2) 评论(0) 推荐(0) 编辑