| | |
| | | /> |
| | | </div> |
| | | <div class="flex m-t-2rem"> |
| | | <div class="label ">端口:</div> |
| | | <div class="label require">端口:</div> |
| | | <input |
| | | class="value input" |
| | | v-model="port" |
| | |
| | | }, |
| | | async submit() { |
| | | //todo 提交设备 |
| | | if (!this.isValidIP(this.ipAddress)) { |
| | | if (this.ipAddress && !this.isValidIP(this.ipAddress)) { |
| | | this.$message.warning("请输入有效的IP地址"); |
| | | return; |
| | | } |
| | | if (!this.name || !this.selectcode || !this.cabinetName || !this.networkPort) { |
| | | if (!this.name || !this.selectcode || !this.cabinetName || !this.networkPort || !this.port ) { |
| | | this.$message.warning("数据未填写完整"); |
| | | return; |
| | | } |
| | |
| | | areaCode: this.selectcode, |
| | | switchName: this.name, |
| | | |
| | | areaRow:this.cur_item?.row, |
| | | areaCell:this.cur_item?.cell, |
| | | areaRow:this.cur_item?.row?this.cur_item?.row:-1, |
| | | areaCell:this.cur_item?.cell?this.cur_item?.cell:-1, |
| | | |
| | | }, |
| | | }; |