Element this.$message({...l

由于博客内容为空,暂无法提供包含关键信息的摘要。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在这里插入图片描述

submit() { this.$refs.ruleForm.validate(valid => { if (valid) { let errMsg = ‘’ let detectorList = [] const now = moment().valueOf() let configs = this.configArr.filter(item => item.isCheck) const selectData = this.$refs.transferRef.getSelectedData() || [] try { if (selectData.length == 0) { errMsg = this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 26: …') }̲ else { …{item.systemAddress}@ i t e m . p a r t U n i t L o o p C o d e @ item.partUnitLoopCode@{item.channelNo}, detectorCode: item.detectorCode, detectorName: item.detectorName, imei: item.imei, deviceCode: item.deviceCode, } } } for (let i = 0; i < configs.length; i++) { const element = configs[i] const { configValue, configTypeName } = element if (!configValue.cmd) { errMsg = ${this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 9: t('请选择')}̲{configTypeName}${this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 9: t('分合闸')}̲` …{this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 9: t('请选择')}̲{configTypeName}${this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 8: t('时间')}̲` …{this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 9: t('请选择')}̲{configTypeName}${this.$t(‘周期’)}` break } configValue.excTime = moment(element.excTime, ‘HH:mm’).valueOf() configValue.time = now ;[‘weekList’, ‘isCheck’, ‘excTime’].forEach(prop => delete element[prop]) } if (errMsg) { this.$message.destroy() this.$message.warning(errMsg) return } } catch (error) { return } let params = { commandMode: '0', // 配置模式 主机0 探测器1 issueType: '1', // 1为首次下发 2为重新下发 jobName: this.modalData.taskName, userCode: localStorage.getItem('userId'), detectorList, configs, } console.log(params) factory.batchConfig(params).then(res => { if (res.success) { this.$message.destroy() this.$message.success('新增成功') this.handleCancel() } }) } }) }, 优化逻辑 使用vue2优化逻辑
最新发布
07-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值