| | |
| | | this.editForm.sample = JSON.parse(this.editForm.sample) |
| | | this.editForm.radiusList = this.editForm.radiusList && JSON.parse(this.editForm.radiusList) |
| | | this.editForm.method = JSON.parse(this.editForm.method) |
| | | this.$set(this.editForm, 'deviceId', this.editForm.deviceIds && this.editForm.deviceIds.split(",")) |
| | | const ids = this.editForm.deviceIds && this.editForm.deviceIds.split(",") || []; |
| | | const numericIds = ids.map(Number); |
| | | this.$set(this.editForm, 'deviceId', numericIds); |
| | | } |
| | | }, |
| | | // 提交编辑 |
| | |
| | | search({ status: 0 }).then((res) => { |
| | | if (res.code === 200 && res.data) { |
| | | this.equipOptions = res.data.map((m) => { |
| | | m.value = m.managementNumber; |
| | | m.value = m.id; |
| | | m.label = m.deviceName; |
| | | return m; |
| | | }); |