From bb731dfcd43886ff1d73c4f4f5172a939f8eb908 Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 17 Nov 2023 14:56:43 +0800 Subject: [PATCH] add custom tree --- .../components/CustomBomList.vue | 109 ++++++++++++++++++ .../components/CustomTransfer.vue | 7 +- .../components/CustomTransferBox.vue | 42 ++++++- .../processFlowView/components/CustomTree.vue | 65 +++++++++++ 4 files changed, 215 insertions(+), 8 deletions(-) create mode 100644 src/views/extend/processFlowView/components/CustomBomList.vue create mode 100644 src/views/extend/processFlowView/components/CustomTree.vue diff --git a/src/views/extend/processFlowView/components/CustomBomList.vue b/src/views/extend/processFlowView/components/CustomBomList.vue new file mode 100644 index 00000000..d1243363 --- /dev/null +++ b/src/views/extend/processFlowView/components/CustomBomList.vue @@ -0,0 +1,109 @@ + + + + + + + diff --git a/src/views/extend/processFlowView/components/CustomTransfer.vue b/src/views/extend/processFlowView/components/CustomTransfer.vue index 9c8bb234..52498647 100644 --- a/src/views/extend/processFlowView/components/CustomTransfer.vue +++ b/src/views/extend/processFlowView/components/CustomTransfer.vue @@ -11,8 +11,8 @@ key="left" class="left-ctb" title="设备列表" - :candidate-list="[]" - :selected-list="[]" + :candidate-list="candidateList" + :selected-list="selectedList" @selected-list-change="handleChange" />
-
- +
+ + + + + +
+ @@ -70,7 +100,9 @@ export default { flex: 1; padding: 12px; } + .ctb-footer { + user-select: none; min-height: 12px; padding: 12px; border-top: 1px solid #ccc; diff --git a/src/views/extend/processFlowView/components/CustomTree.vue b/src/views/extend/processFlowView/components/CustomTree.vue new file mode 100644 index 00000000..ecf7ee37 --- /dev/null +++ b/src/views/extend/processFlowView/components/CustomTree.vue @@ -0,0 +1,65 @@ + + + + + + +