修改通道配置页面
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
<template>
|
||||
<el-dialog title="设备通道配对" v-model="dialogVisible" v-bind="dialogBig">
|
||||
<!-- <el-dialog title="设备通道配对" v-model="dialogVisible" v-bind="dialogBig">
|
||||
<div
|
||||
class="flow-container"
|
||||
style="overflow: hidden; position: relative"
|
||||
:style="{ height: dialogHeight + 'px' }"
|
||||
>
|
||||
<!-- <el-button @click="logConnections">打印当前配对</el-button> -->
|
||||
<VueFlow
|
||||
:nodes="nodes"
|
||||
:edges="edges"
|
||||
@@ -29,18 +28,25 @@
|
||||
></VueFlow>
|
||||
</div>
|
||||
|
||||
<!-- 底部操作按钮 -->
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button @click="dialogVisible = false">取消</el-button>
|
||||
<el-button type="primary" @click="handleNext">下一步</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
</el-dialog> -->
|
||||
<!-- devIdList.value
|
||||
pqStandardDevList.value
|
||||
planIdKey.value -->
|
||||
<!-- 手动检测-勾选检测项弹窗 -->
|
||||
<SelectTestItemPopup ref="selectTestItemPopupRef" @openTestDialog="openTestDialog"></SelectTestItemPopup>
|
||||
<CompareTestPopup ref="testPopup" v-if="CompareTestVisible"></CompareTestPopup>
|
||||
<CompareTestPopup
|
||||
ref="testPopup"
|
||||
v-if="CompareTestVisible"
|
||||
:devIdList="devIdList"
|
||||
:pqStandardDevList="pqStandardDevList"
|
||||
:planIdKey="planIdKey"
|
||||
></CompareTestPopup>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
@@ -192,20 +198,32 @@ const nodes = ref([])
|
||||
const planId = ref('')
|
||||
const devIds = ref<string[]>()
|
||||
const standardDevIds = ref<string[]>()
|
||||
|
||||
const devIdList = ref<Device.ResPqDev[]>([])
|
||||
const pqStandardDevList = ref<StandardDevice.ResPqStandardDevice[]>([])
|
||||
const planIdKey = ref<string>('')
|
||||
const open = async (
|
||||
device: Device.ResPqDev[],
|
||||
standardDev: StandardDevice.ResPqStandardDevice[],
|
||||
fatherPlanId: string
|
||||
) => {
|
||||
console.log('device:', device)
|
||||
edges.value = []
|
||||
devIds.value = device.map(d => d.id)
|
||||
standardDevIds.value = standardDev.map(d => d.id)
|
||||
planId.value = fatherPlanId
|
||||
nodes.value = createNodes(device, standardDev)
|
||||
dialogVisible.value = true
|
||||
onPaneReady()
|
||||
selectTestItemPopupRef.value?.open()
|
||||
devIdList.value = device
|
||||
pqStandardDevList.value = standardDev
|
||||
planIdKey.value = fatherPlanId
|
||||
// edges.value = []
|
||||
|
||||
// devIds.value = device.map(d => d.id)
|
||||
// standardDevIds.value = standardDev.map(d => d.id)
|
||||
// planId.value = fatherPlanId
|
||||
// nodes.value = createNodes(device, standardDev)
|
||||
// edges.value = []
|
||||
|
||||
// devIds.value = device.map(d => d.id)
|
||||
// standardDevIds.value = standardDev.map(d => d.id)
|
||||
// planId.value = fatherPlanId
|
||||
// nodes.value = createNodes(device, standardDev)
|
||||
// dialogVisible.value = true
|
||||
// onPaneReady()
|
||||
}
|
||||
|
||||
const handleNext = async () => {
|
||||
|
||||
Reference in New Issue
Block a user