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 6097cef..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) @@ -357,6 +357,8 @@ onMounted(() => { background: #fff; border-radius: 4px; display: flex; + // justify-content: space-around; + // justify-content: space-evenly; justify-content: space-between; align-items: center; margin-bottom: 10px; @@ -366,7 +368,7 @@ onMounted(() => { .function_item { flex: none; width: 6%; - height: 50px; + height: 40px; display: flex; justify-content: space-between; align-items: center; @@ -377,8 +379,8 @@ onMounted(() => { padding: 0px 30px; .item_img { - width: 60px; - height: 60px; + width: 30px; + height: 30px; border-radius: 50%; // background-color: #607eab; display: flex; @@ -386,7 +388,7 @@ onMounted(() => { justify-content: center; margin-right: 5px; img { - width: 40px; + width: 20px; height: auto; } } @@ -403,7 +405,7 @@ onMounted(() => { .item_text { p { - width: 40px; + width: 80px; margin: 0; font-weight: 800; color: var(--el-color-primary); 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 });