|
@@ -335,7 +335,6 @@ const addDevice = () => {
|
|
|
|
|
|
// sn不能重复
|
|
|
const isRepeatSn = (sn) => {
|
|
|
- console.log(sn)
|
|
|
for (let i = 0; i < regionData.value.length; i++) {
|
|
|
for (let j = 0; j < regionData.value[i].devices.length; j++) {
|
|
|
if (regionData.value[i].devices[j].sn === sn) {
|
|
@@ -407,7 +406,6 @@ const switchLoop = async(val) => {
|
|
|
val.state = val.state === 1 ? 0 : 1
|
|
|
|
|
|
await deviceLoopSwitch(val).then(res => {
|
|
|
- console.log(res)
|
|
|
// 开关回路
|
|
|
if (res.msg === "设备连接丢失") {
|
|
|
ElMessage.error("设备离线")
|
|
@@ -425,7 +423,6 @@ const switchDevice = async(val, state) => {
|
|
|
device: val,
|
|
|
state: state
|
|
|
}).then(res => {
|
|
|
- console.log(res)
|
|
|
// 开关设备
|
|
|
for (let i = 0; i < val.deviceLoops.length; i++) {
|
|
|
val.deviceLoops[i].state = state
|
|
@@ -471,7 +468,6 @@ const batchDeviceSwitch = async (state) => {
|
|
|
const selectedDevices = ref([])
|
|
|
const handleSelectionChange = (val) => {
|
|
|
selectedDevices.value = val
|
|
|
- console.log(val)
|
|
|
// 选中设备
|
|
|
}
|
|
|
|