|
|
@ -22,7 +22,10 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="commManagement-line-first" />
|
|
|
|
<div class="commManagement-line-first" />
|
|
|
|
<div class="commManagement-infoList">
|
|
|
|
<div
|
|
|
|
|
|
|
|
class="commManagement-infoList"
|
|
|
|
|
|
|
|
v-if="activeTab != 'heartbeat' && activeTab != 'response'"
|
|
|
|
|
|
|
|
>
|
|
|
|
<div class="commManagement-infoList-title">
|
|
|
|
<div class="commManagement-infoList-title">
|
|
|
|
<span>{{ currentTabLabel }}</span>
|
|
|
|
<span>{{ currentTabLabel }}</span>
|
|
|
|
<div class="infoList-title-btn" @click="addDevice">+</div>
|
|
|
|
<div class="infoList-title-btn" @click="addDevice">+</div>
|
|
|
@ -46,7 +49,10 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="commManagement-line-second" />
|
|
|
|
<div
|
|
|
|
|
|
|
|
class="commManagement-line-second"
|
|
|
|
|
|
|
|
v-if="activeTab != 'heartbeat' && activeTab != 'response'"
|
|
|
|
|
|
|
|
/>
|
|
|
|
<div class="commManagement-content">
|
|
|
|
<div class="commManagement-content">
|
|
|
|
<!-- 设备表单 -->
|
|
|
|
<!-- 设备表单 -->
|
|
|
|
<DeviceForm v-if="activeTab === 'device'" :form-data="formDeviceInfo" :options="options" />
|
|
|
|
<DeviceForm v-if="activeTab === 'device'" :form-data="formDeviceInfo" :options="options" />
|
|
|
@ -66,6 +72,20 @@
|
|
|
|
:options="options"
|
|
|
|
:options="options"
|
|
|
|
@addRow="handleTableAdd"
|
|
|
|
@addRow="handleTableAdd"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!-- 心跳管理表单 -->
|
|
|
|
|
|
|
|
<HeartBeatForm
|
|
|
|
|
|
|
|
v-if="activeTab === 'heartbeat'"
|
|
|
|
|
|
|
|
:form-data="formHeartBeatInfo"
|
|
|
|
|
|
|
|
:options="options"
|
|
|
|
|
|
|
|
@addRow="handleTableAdd"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!-- 响应配置表单 -->
|
|
|
|
|
|
|
|
<ResponseForm
|
|
|
|
|
|
|
|
v-if="activeTab === 'response'"
|
|
|
|
|
|
|
|
:form-data="formResponseInfo"
|
|
|
|
|
|
|
|
:options="options"
|
|
|
|
|
|
|
|
@addRow="handleTableAdd"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</DSDialog>
|
|
|
|
</DSDialog>
|
|
|
@ -84,6 +104,8 @@ import EventDialog from './eventDialog.vue'
|
|
|
|
import DeviceForm from './deviceForm.vue'
|
|
|
|
import DeviceForm from './deviceForm.vue'
|
|
|
|
import ReceiveEventForm from './receiveEventForm.vue'
|
|
|
|
import ReceiveEventForm from './receiveEventForm.vue'
|
|
|
|
import SendEventForm from './sendEventForm.vue'
|
|
|
|
import SendEventForm from './sendEventForm.vue'
|
|
|
|
|
|
|
|
import HeartBeatForm from './heartBeatForm.vue'
|
|
|
|
|
|
|
|
import ResponseForm from './responseForm.vue'
|
|
|
|
import DeviceIcon from '@/assets/images/common/device.png'
|
|
|
|
import DeviceIcon from '@/assets/images/common/device.png'
|
|
|
|
import DeviceSelectedIcon from '@/assets/images/common/device_selected.png'
|
|
|
|
import DeviceSelectedIcon from '@/assets/images/common/device_selected.png'
|
|
|
|
import SendIcon from '@/assets/images/common/send.png'
|
|
|
|
import SendIcon from '@/assets/images/common/send.png'
|
|
|
@ -247,6 +269,24 @@ const formSendEventInfo = reactive({
|
|
|
|
tableData: []
|
|
|
|
tableData: []
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 心跳管理信息表单
|
|
|
|
|
|
|
|
const formHeartBeatInfo = reactive({
|
|
|
|
|
|
|
|
deviceName: '',
|
|
|
|
|
|
|
|
separator: '',
|
|
|
|
|
|
|
|
lengthCompare: false,
|
|
|
|
|
|
|
|
characterLength: '',
|
|
|
|
|
|
|
|
tableData: []
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 响应配置信息表单
|
|
|
|
|
|
|
|
const formResponseInfo = reactive({
|
|
|
|
|
|
|
|
deviceName: '',
|
|
|
|
|
|
|
|
separator: '',
|
|
|
|
|
|
|
|
lengthCompare: false,
|
|
|
|
|
|
|
|
characterLength: '',
|
|
|
|
|
|
|
|
tableData: []
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
interface CommBar {
|
|
|
|
interface CommBar {
|
|
|
|
label: string
|
|
|
|
label: string
|
|
|
|
value: 'device' | 'receive' | 'send' | 'heartbeat' | 'response'
|
|
|
|
value: 'device' | 'receive' | 'send' | 'heartbeat' | 'response'
|
|
|
@ -341,6 +381,13 @@ const handleTableAdd = () => {
|
|
|
|
type: 'int',
|
|
|
|
type: 'int',
|
|
|
|
result: ''
|
|
|
|
result: ''
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
} else if (activeTab.value === 'heartbeat') {
|
|
|
|
|
|
|
|
formHeartBeatInfo.tableData.push({
|
|
|
|
|
|
|
|
num: formHeartBeatInfo.tableData.length + 1,
|
|
|
|
|
|
|
|
name: 'input',
|
|
|
|
|
|
|
|
type: 'int',
|
|
|
|
|
|
|
|
result: ''
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|