点位排序
+ ghostClass="dragClass" :group="{ name: 'people', pull: false, put: true }" itemKey="name">
{{ index + 1 }} 、{{ element.waypointName }}
+
@@ -377,6 +378,11 @@ const cancelPoint = () => {
dialogVisible.value = false;
};
+const removeFromB = (id) => {
+ const index = taskRightList.value.findIndex(item => item.id === id)
+ if (index !== -1) taskRightList.value.splice(index, 1)
+}
+
onMounted(() => {
getList();
getMapArr();
diff --git a/src/views/test/configs/index.vue b/src/views/test/configs/index.vue
index 769e606..589e5f1 100644
--- a/src/views/test/configs/index.vue
+++ b/src/views/test/configs/index.vue
@@ -234,8 +234,7 @@
:list="taskLeftList"
class="draggable-group"
ghostClass="dragClass"
-
- :group="{ name: 'people', pull: 'clone', put: true }"
+ :group="{ name: 'people', pull: 'clone', put: false}"
itemKey="name"
>
@@ -264,6 +263,7 @@
{{ index + 1 }} 、{{ element.name }}
+
@@ -349,7 +349,7 @@ import { flowExecute } from "@/api/flow/flow";
import TableSearch from "@/components/TableSearch/index.vue";
import draggable from "vuedraggable";
import { listDetect } from "@/api/test/detect.js";
-import { Tools } from "@element-plus/icons-vue";
+import { Tools, Delete } from "@element-plus/icons-vue";
import { listGroup } from "@/api/system/group.js";
import { listTerminal } from "@/api/device/terminal.js";
import Run from "./Run.vue";
@@ -679,6 +679,11 @@ function handleGetTerminalGroup(row) {
});
}
+const removeFromB = (id) => {
+ const index = taskRightList.value.findIndex(item => item.id === id)
+ if (index !== -1) taskRightList.value.splice(index, 1)
+}
+
onMounted(() => {
getList();
handleGetSystemGroup();