diff --git a/frontend/src/views/home/components/table.vue b/frontend/src/views/home/components/table.vue index 1e3c807..4bb7456 100644 --- a/frontend/src/views/home/components/table.vue +++ b/frontend/src/views/home/components/table.vue @@ -55,13 +55,13 @@ type="primary" @click="handleTest" v-if="form.activeTabs === 0" - >自动检测手动检测 手动检测自动检测 不合格项复检生成 数据查看 + { //自动检测 if (form.value.activeTabs === 0) { - ElMessage.success("自动检测"); + ElMessage.success("手动检测"); router.push({ path: "/plan/autoTest", }); diff --git a/frontend/src/views/home/tabs/dashboard.vue b/frontend/src/views/home/tabs/dashboard.vue index 06d61b1..023aef2 100644 --- a/frontend/src/views/home/tabs/dashboard.vue +++ b/frontend/src/views/home/tabs/dashboard.vue @@ -124,7 +124,7 @@ const form: any = ref({ const router = useRouter(); const activeNames = ref(['2']) const tabShow= ref(false); -const tabLabel1 = ref('自动检测') +const tabLabel1 = ref('设备检测') const editableTabsValue = ref('0') const handleChange = (val: string[]) => { // console.log(val) diff --git a/frontend/src/views/plan/autoTest/components/tree.vue b/frontend/src/views/plan/autoTest/components/tree.vue index bcb3ac3..4698a91 100644 --- a/frontend/src/views/plan/autoTest/components/tree.vue +++ b/frontend/src/views/plan/autoTest/components/tree.vue @@ -64,17 +64,21 @@ const getTreeData = (val: any) => { treeRef.value.setCurrentKey(defaultChecked.value); }; + +const getCurrentIndex = (val: number) => { + currentIndex.value = val; +}; const filterText = ref(""); const treeRef = ref(); const currentIndex = ref(0); -const timer = setInterval(() => { - currentIndex.value++; - if (currentIndex.value > 14) - currentIndex.value = 0; - // console.log(currentIndex.value); +// const timer = setInterval(() => { +// currentIndex.value++; +// if (currentIndex.value > 14) +// currentIndex.value = 0; +// // console.log(currentIndex.value); - }, 2000); +// }, 2000); watch( @@ -103,7 +107,7 @@ const detail = (e: any) => { onMounted(() => { console.log(); }); -defineExpose({ getTreeData }); +defineExpose({ getTreeData,getCurrentIndex });